Shell Basics
The shell runs commands. Common ones: pwd (where am I), ls (list), cd (move), mkdir, cp, mv, rm and cat. Options follow a dash, as in ls -l.
Example
mkdir -p demo/sub
cd demo
touch a.txt b.txt
ls
cp a.txt sub/
mv b.txt c.txt
ls sub
ls
rm a.txt c.txt
ls | wc -lResult
a.txt b.txt sub a.txt a.txt c.txt sub 1
Exercise
List files.
Quiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.