![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | 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 !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| list the files but exclude the files in subdirectories | shyjuezy | UNIX for Dummies Questions & Answers | 8 | 10-15-2008 01:42 PM |
| List only the files | chandran.m | SUN Solaris | 5 | 12-06-2007 03:03 PM |
| list of files | bkan77 | UNIX for Advanced & Expert Users | 7 | 08-15-2007 11:09 AM |
| list files | alisevA3 | UNIX for Dummies Questions & Answers | 2 | 03-21-2007 02:40 AM |
| list files | avadhani | UNIX for Dummies Questions & Answers | 7 | 06-21-2005 02:25 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | 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. |
|
||||
|
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 |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|