Linux Basic Commands - Part II
ls
: List directories and files A to Z
morty@c137:~$ ls
bin Desktop Documents Downloads IdeaProjects Music Pictures Public snap Templates Videos
ls -r
: List directories and files Z to A
ls -a
: Shows all directories and files with the hidden files. Hidden files appear with a .
or ..
ls -t
: List by time. Newest to oldest
ls -tr
: List by time. Oldest to newest
ls (directory name)/(directory name)
: Shows list of naming directory
ls -l
: Display long listing format.(we can command ls -lh
that h
means file size appears from human friendly format)
ls -al
: Details of directories and files
ls -R
: List all directories and subdirectories recursively