Simplify Terminal directory listings

05.06.2009

etc...

But if you've got files with lengthy names, this output can get quite wide--and the thing you may be most interested in, the filename, will be a good distance off to the right. The is to use ls -hog instead. This "piggie" version of ls uses three modifiers to simplify the output. The h modifier converts file sizes to human-readable form (4.3K instead of 4352). The next two options work together to eliminate both the owner (robg) and the group (staff) from the output. When you use this version of the command, the output is much cleaner:

$ ls -hog

total 0

drwx------@ 13 442B Jun 5 09:29 Desktop