The -l
flag makes ls
use a long listing format, showing not only the file/directory names but also additional information such as the file size and the time of its last modification. The -h
flag makes the file size "human readable", i.e. display something like 5.3K
instead of 5369
.
The files/directories in each directory are sorted by time of last change.
.
stands for the current directory./
stands for the root directory./Users/amanda
./Users
.~
stands for the user's home directory, in this case /Users/amanda
./Users
.Users/thing/backup
, but with ..
we asked for one level further up.../backup/
refers to /Users/backup/
.ls
Reading Comprehension
pwd
is not the name of a directory.ls
without directory argument lists files and directories in the current directory.