Ls
From LinuxIntro
ls is a command that list files in a given directory. If no directory is given, it lists the files in the current working directory:
tweedleburg:~/svn/kdepim # ls .emacs-dirvars README.Kolab kdgantt1 ktimetracker .kateconfig akonadi kitchensync lib [...]
Contents |
[edit] How to...
[edit] only list directories
ls -d */
[edit] Sort by date
List with the latest changed files below:
ls -ltr
[edit] find out the free disk space
You do not use ls, but df:
df -h
tells you how much disk space is left.
[edit] find out the size of a directory
You do not use ls, but du:
du -sh directory
[edit] See also
- ls' man page
- stat -- date of last access, change and modification