Back

Basic Commands (pwd, ls, cd, mkdir, rm)

The terminal lets you control your computer with text commands. Every developer uses it daily: running servers, installing packages, managing files.

pwd              # show current directory
ls               # list files
ls -la           # list all files including hidden

cd projects      # go into folder
cd ..            # go back one level
cd ~             # go to home directory

mkdir my-app     # create folder
touch index.js   # create file
rm file.txt      # delete file
rm -rf folder/   # delete folder (careful!)

cat file.txt     # read file contents
echo "hello"     # print text

Roadmap