Basic Navigation Commands:

- pwd

- cd

cd ..

cd .

cd -

cd /

- ls

ls -a

ls -al

ll

File Handling Commands:

- mkdir [directory name]

mkdir .[directory name]

- rm

rm -rf *

rmdir


- touch

- nano

- cat

- vi

- mv

- cp


System Information:

- uname

uname -r (kernel number)

uname -a (All details of your system)


User Information & Permissions:

- whoami

- sudo su #not preferable to be used

exit

- sudo [command]

- chmod -x [filename]

- chown root:root [Filename]

- chmod 444 [filename]

if you exit as root and try to edit the file as a normal user it will deny permissions as you don't have access.

- chmod 777 [filename]

this will give it all information


Miscallaneous Commands & Shortcuts:

- [TAB] auto-fill

- History  (different for different users)

- htop

- tree [needs installation]

- echo "Hello WOrld"

- cal

- bc

- sh [directory].sh

Internet commands:

- wget

- curl

- tar zxf

- java --version

- ping google.com



Installing Packages:

- sudo apt update

- sudo apt upgrade

- sudo apt install [name of package] -y

- sudo apt remove [name of package] -y