![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| list the files but exclude the files in subdirectories | shyjuezy | UNIX for Dummies Questions & Answers | 8 | 10 Hours Ago 10:42 AM |
| List only the files | chandran.m | SUN Solaris | 5 | 12-06-2007 11:03 AM |
| list of files | bkan77 | UNIX for Advanced & Expert Users | 7 | 08-15-2007 08:09 AM |
| list files | alisevA3 | UNIX for Dummies Questions & Answers | 2 | 03-20-2007 10:40 PM |
| list files | avadhani | UNIX for Dummies Questions & Answers | 7 | 06-20-2005 11:25 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
Hello everybody;
I am new to unix. Thanks for creating such a informative forum, I wanted to know that how can i list top 10 files in my current dir. which were accesed recently by using ls command. Thank You. |
| Forum Sponsor | ||
|
|
|
|||
|
Re: How to list top 10 files
if u typed ls -al, u can use:
ls -al | head - 11 as the first line is the total size while if u just typed ls, u can use ls | head as head command shows first 10 line head -n 20, shows 20 line, an so on ... I hope this will solve your problem |