NEW
Font size
WorksheetsCommanding the Command Line Quiz
Total questions: 15
Worksheet time: 3mins
What command is used to display the current working directory?
showdir
pwd
dir
currentdir
Which command is used to create a new directory in Linux?
mkdir
newdir
mkd
makedir
To navigate to the parent directory, which command should be used?
cd ~
cd ..
cd /
cd home
Which command is used to remove a file in Linux?
delete
remove
rm
del
To display the contents of a file in the terminal, which command is used?
show
cat
display
view
What is the purpose of the `touch` command in Linux?
Creates a new file
Modifies file permissions
Renames a file
Deletes a file
To copy a file from one directory to another, which command is used?
mv
cp
copy
move
How can you recursively remove a directory and its contents in Linux?
rmdir
rm -r
remove -R
del /s
Which command is used to highlight the specified word in a text?
grip
hl
mark
grep
How can you display the disk space usage of a file or directory?
df
du
diskusage
showspace
To rename a file in Linux, which command is used?
rename
change
mv
ren
What does the ls -a command do?
Lists all files, including hidden ones
Lists only hidden files
Lists files in alphabetical order
Lists all files in long format
Which command is used to display the inode of a file?
inode
ls -i
showinode
fileinode
To view the last few lines of a text file, which command is used?
tail
view
last
end
What command is used to display the file type of a given file in Linux?
filetype
ftype
type
file
