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 


 

 

 


 

 

 
 

The UNIX ls command - list files 
Oracle Tips by Burleson Consulting

 

The UNIX ls command

The UNIX ls command is one of the most frequently used UNIX commands. Without any arguments, the ls command will show us a list of all files in our current directory:

root> ls
Mailbox invalid.sql run_rpt.ksh
ad.sql kill_oracle_sessions.ksh run_trunc.lst
adamf_techeops l.ksh run_trunc.sql
admin list.lst schools.dmp
afiedt.buf list2.lst scripts
arsd.dmp lockee.txt sql
bksel.lst lst.lst sqlnet.log


When we add the –a and –l arguments, we can see all of the details for each file in out current working directory:

root> ls -al
total 928188
drwxr-xr-x 21 oracle dba 2048 Aug 22 20:47 .
drwxr-xr-x 10 root root 512 Jul 26 08:49 ..
-rw------- 1 oracle qmail 437 Aug 12 20:43 .bash_history
drwxr-xr-x 11 oracle qmail 512 Sep 3 2000 .dt
-rwxr-xr-x 1 oracle qmail 4381 Jul 16 13:20 .profile
-rwxr-xr-x 1 oracle qmail 3648 Sep 1 2000 .profile_old
-rw------- 1 oracle dba 2264 Sep 3 08:06 .sh_history
drwxr-xr-x 2 oracle dba 512 May 10 11:10 .ssh
-rw------- 1 oracle dba 3861 May 29 06:03 Mailbox
-rw-r--r-- 1 oracle dba 12632 Apr 11 16:09 ad.sql
drwxr-xr-x 2 oracle dba 512 Jan 26 2001 adamf_techeops
drwxr-xr-x 5 oracle dba 512 Sep 4 2000 admin
-rwxr-xr-x 1 oracle dba 55 Aug 22 11:56 afiedt.buf


Let’s take a look at each of the columns in the ls –al command so we understand their meaning.

Column
Data
1
file permissions
3
file owner
4
file group
5
file size
6
last modified date
7
file name

The UNIX ls command

Another very frequently used UNIX command is the ls command.  Without any arguments, the ls command will show a list of all files in the current directory:

root> ls

Mailbox                   invalid.sql               run_rpt.ksh              
ad.sql                    kill_oracle_sessions.ksh  run_trunc.lst            
adamf_techeops             l.ksh                     run_trunc.sql            
admin                     list.lst                  schools.dmp              
afiedt.buf                list2.lst                 scripts                  
arsd.dmp                  lockee.txt                sql                       
bksel.lst                 lst.lst                   sqlnet.log

When the –a and –l arguments are added, all of the details for each file in the current working directory are shown:

root> ls –al

total 928188

drwxr-xr-x  21 oracle   dba         2048 Aug 22 20:47 .
drwxr-xr-x  10 root     root         512 Jul 26 08:49 ..
-rw-------   1 oracle   qmail        437 Aug 12 20:43 .bash_history
drwxr-xr-x  11 oracle   qmail        512 Sep  3  2000 .dt
-rwxr-xr-x   1 oracle   qmail       4381 Jul 16 13:20 .profile
-rwxr-xr-x   1 oracle   qmail       3648 Sep  1  2000 .profile_old
-rw-------   1 oracle   dba         2264 Sep  3 08:06 .sh_history
drwxr-xr-x   2 oracle   dba          512 May 10 11:10 .ssh
-rw-------   1 oracle   dba         3861 May 29 06:03 Mailbox
-rw-r--r--   1 oracle   dba        12632 Apr 11 16:09 ad.sql
drwxr-xr-x   2 oracle   dba          512 Jan 26  2001 adamf_techeops
drwxr-xr-x   5 oracle   dba          512 Sep  4  2000 admin
-rwxr-xr-x   1 oracle   dba           55 Aug 22 11:56 afiedt.buf

Below is a listing of each of the columns in the ls –al command so their meaning is understood.

Column

Data

1

File permissions

3

file owner

4

file group

5

file size

6

last modified date

7

file name

Table 2.5:  The Columns in the ls –al UNIX Command

The first column in the ls –al command shows the file permissions.  The permissions are a set of letters arranged in a group of three, one for the file owner, one for the file group and another for the world (Figure 1-3).

The third and fourth columns of the ls –al command lists the owner and group of the file.   Note that if there is super-user authority (root), change the owner and group of any file with the chown command. The fifth column is the file size in bytes, the sixth column lists the last modified date and the last column is the name of the file.

 
 
 
Get the Complete
Oracle Utility Information 

The landmark book "Advanced Oracle Utilities The Definitive Reference"  contains over 600 pages of filled with valuable information on Oracle's secret utilities. This book includes scripts and tools to hypercharge Oracle 11g performance and you can buy it for 30% off directly from the publisher.
 

 


 

 

 

��  
 
 
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 -  2020

All rights reserved by Burleson

Oracle ® is the registered trademark of Oracle Corporation.