Bash Exercises
Test your Bash skills with exercises from all categories:
Exercises
Tip: Sign in to track your progress - it's free.
Get Started3 exercises
ls3 exercises
cd3 exercises
pwd1 exercises
echo2 exercises
cat3 exercises
cp3 exercises
mv3 exercises
rm3 exercises
touch3 exercises
mkdir3 exercises
alias3 exercises
grep3 exercises
awk3 exercises
sed3 exercises
cut3 exercises
sort4 exercises
tail3 exercises
head3 exercises
ps3 exercises
top4 exercises
df4 exercises
du4 exercises
free4 exercises
kill2 exercises
uptime2 exercises
ping4 exercises
curl4 exercises
wget4 exercises
ssh4 exercises
scp4 exercises
rsync4 exercises
zip4 exercises
unzip4 exercises
tar2 exercises
Permissions3 exercises
chmod3 exercises
chown3 exercises
chgrp3 exercises
Syntax3 exercises
Variables3 exercises
Data Types3 exercises
Conditions3 exercises
Loops3 exercises
Functions3 exercises
Arrays3 exercises
cron3 exercises
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.