Visit Our UNIX and Linux User Community


using ls -lrt instead of ls


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers using ls -lrt instead of ls
# 8  
Old 08-14-2009
Quote:
Originally Posted by praviper
hi that is working...i dont have GNU...

so is used ls -lrt with ur logic..its working....
do u mean to say it will give better perfromance ...

thanks a lot again
ls -l prints extended information. Read my previous post. Do not use -l unless you actually need it for something for it is a waste of time and, if your program isn't built to filter the extra stuff out, will feed your program dozens of garbage filenames.
# 9  
Old 08-14-2009
ok then i may use only ls -rt....i am a novice in unix...could u please
suggest a best book (e-book and a book) for unix
# 10  
Old 08-14-2009
The best book on UNIX usually comes with it. You can access manual pages on nearly any command with the 'man' command. Try 'man ls'.
# 11  
Old 08-15-2009
hi corona ,

your logic is perfectly working.thanks much for ur help
# 12  
Old 08-16-2009
Please practice the difference between:

Code:
ls -l

(ls hyphen ell)

and

Code:
ls -1

(hyphen one)

It will help you when writing these scripts.

Last edited by methyl; 08-16-2009 at 02:22 PM.. Reason: layout
 

Previous Thread | Next Thread
Test Your Knowledge in Computers #772
Difficulty: Medium
An arcade system board is a dedicated computer system created for the purpose of running video arcade games.
True or False?

6 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

What does total no. of files in ls -lrt o/p means?

when we fire ls -lrt command we see o/p as total 16 drwx------ 9 root root 8192 May 8 2002 lost+found drwxr-xr-x 2 root root 512 Jun 14 2002 TT_DB drwxrwxr-x 2 root root 512 Jul 31 2002 mail here total no. of files is always greater than... (4 Replies)
Discussion started by: Jcpratap
4 Replies

2. Shell Programming and Scripting

want to concatenate multiple files based on the rest of ls -lrt

uadm@4132> ls -lrt -rw------- 1 uadm uadm 3811819 Jun 6 04:08 data_log-2010.05.30-10:04:08.txt -rw------- 1 uadm uadm 716246 Jun 13 01:38 data_log-2010.06.06-10:04:08.txt -rw------- 1 uadm uadm 996 Jun 13 04:00 data_log-2010.06.06-10:04:22.txt -rw------- 1 uadm uadm 7471 Jun 20 02:03... (5 Replies)
Discussion started by: mail2sant
5 Replies

3. Shell Programming and Scripting

Problems with ls -lrt

I am doing ls -lrt and it does not respond and have to close the xterm ls works ok (4 Replies)
Discussion started by: kristinu
4 Replies

4. UNIX for Dummies Questions & Answers

" ls -lrt " not working ! --- Need a insight from a expert .

Hi ! All This might be a silly question.. to experts in unix. but defintely its a interesting question and I want to know the root cause. Here is the problem.... I have a Linux OS box. It has diff files systems. When I go to a DIR like this /RootDIR/NFS/myDIR and give ls -lart .. it... (4 Replies)
Discussion started by: dashok.83
4 Replies

5. Shell Programming and Scripting

find command nonrecurslu listing ls -lrt

---------------------------------------------------------------------- I have tried find . type -f -exec ls -lrt {} \; but it listed files recursively ,I need only that dir files not internal dir file. --------------------------------------------------------------------- (8 Replies)
Discussion started by: RahulJoshi
8 Replies

6. HP-UX

sem_open(), -lrt and creating a library

I am on HP-UX delta B.11.11 I am using sem_open() and compiling/linking the library by specifying -lrt. Then, I am creating library like below: ar cr $libdir/liboscfe.a `cat fe.libs.$$ com.libs.$$` ranlib $libdir/liboscfe.a Now, I am compiling another utility sch2db which requires this... (1 Reply)
Discussion started by: apadha
1 Replies

Featured Tech Videos