Bash Exercises
Exercises
Test your Bash skills with exercises from all categories:
Get Started
ls
cd
pwd
echo
cat
cp
mv
rm
touch
mkdir
alias
grep
awk
sed
cut
sort
tail
head
ps
top
df
du
free
kill
uptime
ping
curl
wget
ssh
scp
rsync
zip
unzip
tar
Permissions
chmod
chown
chgrp
Syntax
Variables
Data Types
Conditions
Loops
Functions
Arrays
cron
Log in to track your progress
If you haven't already, sign up to become a W3Schooler, and get points for every exercise you complete.
As a logged on W3Schools user you will have access to many features like having your own web page, track your learning progress, receive personal guided paths, and more.
The Exercise
The exercises are a mix of "multiple choice" and "fill in the blanks" questions. There are between 3 and 9 questions in each category. The answer can be found in the corresponding tutorial chapter. If you're stuck, or answer wrong, you can try again or hit the "Show Answer" button to see the correct answer.
If you don't know Bash, we suggest that you read our Bash Tutorial from scratch.