Difference between revisions of "Ls"

From Hackepedia
Jump to navigationJump to search
Line 2: Line 2:
  
 
There are many, many options to <code>ls</code>, and they can vary greatly from system to system.  Check the local [[man]] pages for details.
 
There are many, many options to <code>ls</code>, and they can vary greatly from system to system.  Check the local [[man]] pages for details.
 +
 +
ls -lart
 +
 +
is a popular usage with arguements. A long listing which shows .files, reversed by time. You can alternatively [[shell:alias]] this if you use it a lot.

Revision as of 20:57, 24 October 2005

ls is the basic "LiSt me the contents" command used in a unix shell. It operates on the current directory by default, and displays a list of all files, directories, pipes, sockets, symlinks, and devices.

There are many, many options to ls, and they can vary greatly from system to system. Check the local man pages for details.

ls -lart

is a popular usage with arguements. A long listing which shows .files, reversed by time. You can alternatively shell:alias this if you use it a lot.