The Linux Terminal

Common Linux Commands

sudo

ls

Command Function
ls List the files and folders in the current directory
ls -l -l flag is used with ls to list files and folders in the current directory with their permissions.
ls -la -la flag is used to list all the files and folders including hidden ones with their permissions.

mkdir

Usage Result
mkdir folder1 folder2 This command will create two folders, folder1 and folder2 in current directory.

cd

Usage Result
cd ~ This will take to to /home/ directory. In UNIX, tilde ~ is used to represent home directory.
cd ~/colcon_ws This will take you inside a folder named colcon_ws in home directory