Skip to main content

pwd, cd, & ls

pwd – present working directory – shows the full path of the current directory you are in

pwd

Screenshot 2022-04-26 220229.png

cd – change directory – navigates to a different directory

cd /path/to/new/directory

cd /etc/default

Screenshot 2022-04-26 220608.png

ls : list the items in the current directory

ls

Screenshot 2022-04-26 220632.png

ls -l :list the items in the current directory with permission, ownership, and time information

ls -l

Screenshot 2022-04-26 221026.png

ls -a : show hidden files

ls -a

Screenshot 2022-04-26 221210.png

ls -R : lists sub-directory items

ls -R

Screenshot 2022-04-26 221415.png