what does the ls -ltr command list


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers what does the ls -ltr command list
# 1  
Old 11-14-2006
what does the ls -ltr command list

Hi,

THe following is the output when i run the command ls -ltr
can anyone explain the meaning of the field in red

-rw-r----- 3 orca orca 20924 Sep 08 19:21 BTL027SASI.gnt
-rw-r----- 3 orca orca 20924 Sep 08 19:21 BTL027RITD.gnt
-rw-r----- 3 orca orca 20924 Sep 08 19:21 BTL027.gnt
# 2  
Old 11-14-2006
check "man ls" ...
# 3  
Old 11-21-2006
Hi Ranjitha,

ls -ltr lists the content of the directory in longlisting, time stamped in reverse order.

l====> Longlisting
t====> time stamp
r====> in reverse order

3 in the below list indicates there are 3 links to that file.

txs,
jam
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

I have two commands “ls -h” and “ls -ltr”. How do i make sure “ls -ltr” is run after “ls -h” is suc

help me (2 Replies)
Discussion started by: sonu pandey
2 Replies

2. Shell Programming and Scripting

Ls -ltr in scripting

Hi All, I wrote below script for i in `ls` do echo "list of files $i" done but i want display as like ls -ltr,it's displaying as one column Thanks (14 Replies)
Discussion started by: bmk
14 Replies

3. UNIX for Advanced & Expert Users

ls -ltr a list of filenames-with-spaces within a text file

OS: RHEL 5.8 shell: bash 3.2.25 Directory /home/guest/ contains these files: file a file b file c fileD fileE fileF testFile.txt I'm trying to find the syntax to run ls -ltr against this list of files that is contained within a text file, testFile.txt. The file testFile.txt has... (4 Replies)
Discussion started by: uschaafm
4 Replies

4. UNIX for Dummies Questions & Answers

Not able to run ls -ltr

Hi , Whenever i try to execute ls with l as an option the system hangs. The workload on server is not more than 1. What could be the reason . Normal ls works fine but ls -l causes the system to hang. This is happening when i m in /usr/local/sbin directory. I can see that the... (4 Replies)
Discussion started by: pinga123
4 Replies

5. Shell Programming and Scripting

How to parse the listing (ls -ltr)

Hi, I need to parse the listing (ls -ltr) in a given directory and get a particular value to see the success or failure. e.g drwxr-xr-x 5 sensr vpnuser 512 Nov 7 07:46 disc_001811. Here i need to take the value 5 which is after drwxr-xr-x . how to so the same in shell... (1 Reply)
Discussion started by: MuthuAlagappan
1 Replies

6. Shell Programming and Scripting

Printing Year in ls -ltr command

Hi, When retrieving parameters of a file using ls command i need to print the year part . When i do ls -ltr the following output is displayed -rwxrwxrwx 1 d_infd d_infd 1711 Jan 8 2004 wf1.class. Here the year part is not displayed only Jan 8 is displayed. Can any one... (9 Replies)
Discussion started by: ragugct
9 Replies

7. Shell Programming and Scripting

ls -ltr command On Remote server

I am writing a script where in i have to log into a remote machine and check for necessary file by typing (ls -ltr *200505) (this gets all 05month of 2008 yr files) and if files are found get them to the local machine. If not found print a message saying no files on local machine. When i was... (2 Replies)
Discussion started by: vasuarjula
2 Replies

8. Shell Programming and Scripting

ls -ltr help

i have to list some file with certain exemption suppose for example i have two files file1.log.1 file1.log.1.123 i want ls -ltr command to list only 1st type of files so i want like this ls -ltr *.log.*---------it should grep 1st kind of files but this command greps all the files... (4 Replies)
Discussion started by: ali560045
4 Replies

9. UNIX for Dummies Questions & Answers

Extracting only file size of the ls -ltr command.

All, I only need to get the file size when I do an ls -ltr filename.txt Could you give me the exact syntax. Thanks KOP (6 Replies)
Discussion started by: kingofprussia
6 Replies

10. UNIX for Advanced & Expert Users

ls -ltr, TIME DETAILS ??

when I write the command ls -ltr it shows the detail of the files. Like -rwxrwxrwx 1 mqsiadm mqbrkrs 0 Aug 29 14:03 dspmq_temp -rwxrwxrwx 1 mqsiadm mqbrkrs 666 Aug 30 06:12 dspmq_script In this,DATE TIME is shown, Now the question is : how can I see the all the times... (5 Replies)
Discussion started by: varungupta
5 Replies
Login or Register to Ask a Question