Discussion Locked

what command do I use

0 helpful
6 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

what command can I use to get this results
total 25
drwxr-xr-x 2 dshoe users 2048 May 11 12:04 backups
drwxr-xr-x 2 dshoe users 1024 May 10 10:02 bin
drwxr-xr-x 2 dshoe users 1024 May 7 13:22 c_source
drwxr-xr-x 2 dshoe users 1024 Apr 2 07:52 cgi_files
drwxr-xr-x 2 dshoe users 1024 Apr 2 07:52 cgi_scripts
drwxr-xr-x 4 dshoe users 1024 Jan 12 07:32 ny
-rw-r--r-- 1 dshoe users 1954 May 11 06:49 p1
drwxr-xr-x 2 dshoe users 1024 Apr 2 07:52 perl
-rw-r--r-- 1 dshoe users 1954 May 6 16:42 pers
drwxrwxrwx 2 dshoe users 1024 Apr 7 13:06 public_html
-rw-r--r-- 1 dshoe users 3392 Apr 23 07:25 sales
-rwxr--r-- 1 dshoe users 228 May 10 10:33 sargs
drwx------ 2 dshoe users 1024 Apr 26 06:53 scripts
-rw-r--r-- 1 dshoe users 131 Mar 22 11:20 setup
Total bytes: 17899
Total files: 5
Directories: 9
And scripts: 1

mainlly the last four lines

6 replies

by mike o

If you want to just get the last four lines, pipe ls -l through the tail command. If I recall tail usage correctly, you'll want to type:

ls -l | tail -4

If that's not quite right, check out the man page for tail. It will tell you the proper syntax to just give you the last 4 lines.

Good luck!

This discussion is closed to new replies.