Call now: 252-767-6166  
Oracle Training Oracle Support Development Oracle Apps

 
 Home
 E-mail Us
 Oracle Articles
New Oracle Articles


 Oracle Training
 Oracle Tips

 Oracle Forum
 Class Catalog


 Remote DBA
 Oracle Tuning
 Emergency 911
 RAC Support
 Apps Support
 Analysis
 Design
 Implementation
 Oracle Support


 SQL Tuning
 Security

 Oracle UNIX
 Oracle Linux
 Monitoring
 Remote s
upport
 Remote plans
 Remote
services
 Application Server

 Applications
 Oracle Forms
 Oracle Portal
 App Upgrades
 SQL Server
 Oracle Concepts
 Software Support

 Remote S
upport  
 Development  

 Implementation


 Consulting Staff
 Consulting Prices
 Help Wanted!

 


 Oracle Posters
 Oracle Books

 Oracle Scripts
 Ion
 Excel-DB  

Don Burleson Blog 


 

 

 


 

 

   

 

  Oracle Tips by Burleson

Using simple ls command options

There will come a time when you will want to know the last file touched or the last file changed or maybe the largest or smallest file within a directory. This type of search can be done using our old friend the ls command. Previously we used the ls command to display directories and files within directories. If we use some of the ls command options, and pipe the output of ls to the head command to limit the number of displayed lines, we can accomplish the following:

Sample directory

The following home directory is used for the next few examples. Using the –A option eliminates the . and .. files from the display.

$ ls -Al

total 44

-rw------- 1 tclark tclark 7773 Feb 2 17:11 .bash_history

-rw-r--r-- 1 tclark tclark 24 Aug 18 11:23 .bash_logout

-rw-r--r-- 1 tclark tclark 191 Aug 18 11:23 .bash_profile

-rw-r--r-- 1 tclark tclark 124 Aug 18 11:23 .bashrc

-rw-r--r-- 1 tclark tclark 237 May 22 2003 .emacs

-rw-rw-r-- 1 tclark tclark 0 Feb 3 09:00 example1.fil

-rw-rw-r-- 1 tclark tclark 0 Jan 13 21:13 example2.xxx

drwxrwxr-x 2 tclark authors 4096 Jan 27 10:17 examples

-rw-r--r-- 1 tclark tclark 120 Aug 24 06:44 .gtkrc

drwxr-xr-x 3 tclark tclark 4096 Aug 12 2002 .kde

-rw-r--r-- 1 tclark authors 0 Jan 27 00:22 umask_example.fil

-rw------- 1 tclark tclark 876 Jan 17 17:33 .viminfo

-rw-r--r-- 1 tclark tclark 220 Nov 27 2002 .zshrc

 

The above book excerpt is from:

Easy Linux Commands
Working Examples of Linux Command Syntax

ISBN: 0-9759135-0-6   

Terry Clark 

http://www.rampant-books.com/book_2005_1_linux_commands.htm 

��  
 
 
Oracle Training at Sea
 
 
 
 
oracle dba poster
 

 
Follow us on Twitter 
 
Oracle performance tuning software 
 
Oracle Linux poster
 
 
 

 

Burleson is the American Team

Note: This Oracle documentation was created as a support and Oracle training reference for use by our DBA performance tuning consulting professionals.  Feel free to ask questions on our Oracle forum.

Verify experience! Anyone considering using the services of an Oracle support expert should independently investigate their credentials and experience, and not rely on advertisements and self-proclaimed expertise. All legitimate Oracle experts publish their Oracle qualifications.

Errata?  Oracle technology is changing and we strive to update our BC Oracle support information.  If you find an error or have a suggestion for improving our content, we would appreciate your feedback.  Just  e-mail:  

and include the URL for the page.


                    









Burleson Consulting

The Oracle of Database Support

Oracle Performance Tuning

Remote DBA Services


 

Copyright © 1996 -  2017

All rights reserved by Burleson

Oracle ® is the registered trademark of Oracle Corporation.

Remote Emergency Support provided by Conversational