WorksheetsUbuntu/Linux Commands Quiz
Total questions: 30
Worksheet time: 15mins
Which command is used to display the current working directory?
pwd
cwd
dir
workdir
Which command lists all files, including hidden ones?
ls -a
list all
dir /all
showfiles
Which command creates a new directory in Linux?
makedir
mkdir
newdir
createdir
Which command is used to remove an empty directory?
rm
rmdir
removedir
delete
Which command is used to create an empty file?
make
newfile
touch
create
Which command shows the manual page for a command?
help
man
info
doc
Which command is used to copy files in Linux?
copy
cp
move
cpy
Which command moves or renames files?
mv
move
rename
shift
Which command is used to display the contents of a file?
show
cat
read
display
Which command clears the terminal screen?
cls
clear
reset
empty
Which command shows the current logged-in user?
whoami
who
me
user
Which command shows disk usage in human-readable format?
df -h
disk -h
du -h
free -m
Which command is used to edit files in a terminal text editor?
nano
edit
writer
gedit
Which command shows running processes?
ps
proc
listproc
tasks
Which command is used to search for a keyword inside files?
find
grep
search
look
Which command is used to change file permissions?
perm
chmod
setperm
access
Which command is used to change the file owner?
own
chown
setowner
owner
Which command is used to check system uptime?
uptime
sysup
time
status
Which command compresses files into a .tar.gz archive?
zip
gzip
tar -czf
pack
Which command extracts files from a .tar.gz archive?
unzip
tar -xzf
extract
unpack
Which command is used to shut down the system immediately?
halt
shutdown now
poweroff
All of the above
Which command is used to check the IP address of the system?
ip addr
ifconfig
netstat -i
All of the above
Which command shows the top running processes?
top
htop
procs
tasks
Which command is used to schedule tasks in Linux?
cron
crontab
schedule
taskset
Which command is used to switch to another user account?
switch
su
login
change
Which command changes the user password?
passwd
password
setpass
changepw
Which command is used to print the first 10 lines of a file?
head
first
toplines
start
Which command is used to print the last 10 lines of a file?
tail
last
bottomlines
end
Which command is used to find a file by name?
locate
search
find
Both a and c
Which command displays the system date and time?
time
date
now
clock
