Ravindra BagaleCourses & study guides मराठी Track your progress

Ravi Sir's Cyber Security Cards › Revision Cards

Navigation

Navigation Navigation means moving around folders in the Linux terminal. pwd : show where you are. ls : list files. cd /var/log : go to a folder. cd - : go back. cd : go home. Typing every name in full and making typos (“No such file or directory”). Press Tab . It completes the name. If it doesn’t,

Navigation Navigation means moving around folders in the Linux terminal. pwd : show where you are. ls : list files. cd /var/log : go to a folder. cd - : go back. cd : go home. Typing every name in full and making typos (“No such file or directory”). Press Tab . It completes the name. If it doesn’t,
Navigation · Download PNG
Read card text

What this card says

What it is

Navigation means moving around folders in the Linux terminal.

Key commands

pwd: show where you are. ls: list files. cd /var/log: go to a folder.

cd -: go back. cd: go home.

Common mistake

Typing every name in full and making typos (“No such file or directory”).

Press Tab. It completes the name. If it doesn’t, the path is wrong.

CommandMeaningExample
pwdPrint working (current) directorypwd → /home/ubuntu
lsList filesls, ls -l, ls -la, ls -lh /var/log
cdChange directorycd /etc, cd .., cd ~, cd -
treeShow folder tree (install package tree)tree -L 2 /etc/nginx
historyPrevious commandshistory | tail -20, then !45 to re-run no. 45

Learn more in the lesson: 5.2 Navigation

See all Ravi Sir's Cyber Security Cards