Tsallaka zuwa abun ciki
Justice Tech School

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 -l

Result

a.txt
b.txt
sub
a.txt
a.txt
c.txt
sub
1

Exercise

List files.

Quiz Test

Which command prints the current folder?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.