1. Navigation & Directory Management
These commands allow you to move around the file system, view contents, and manage folders.
pwd(Print Working Directory)- Usage:
pwd - Meaning: Displays the absolute path of the current working directory you are in. Learn more via the GNU Coreutils Documentation.
- Usage:
ls(List)- Usage:
ls -la(Lists all files, including hidden ones, in a detailed list format) - Meaning: Lists directory contents. Common flags include
-l(long format) and-a(all hidden files). Check out this DigitalOcean Linux Command Cheat Sheet for more options.
- Usage:
cd(Change Directory)- Usage:
cd /path/to/directoryorcd ~(goes to home) - Meaning: Changes your current working directory. Typing
cd ..moves you up one level.
- Usage:
mkdir(Make Directory)- Usage:
mkdir my_folderormkdir -p path/to/nested/folder - Meaning: Creates a new directory. The
-pflag creates parent directories as needed without throwing an error if they already exist.
- Usage:
