NEW
Font size
WorksheetsLinux/Unix Command List
Total questions: 14
Worksheet time: 7mins
Which command is used to display the current working directory?
pwd
cd
ls
echo
Which command is used to list files and directories?
ls
cd
rm
mkdir
Which command lists all files with permissions, ownership, and metadata?
ls -la
ls -lS
ls -lh
ls -lt
Which command is used to change the current directory?
cd
ls
pwd
mkdir
Which command is used to move up one directory level?
cd ..
cd /
cd ~
cd .
Which command is used to create a new directory?
mkdir
rmdir
cd
ls
Which command is used to delete an empty directory?
rmdir
del
remove
erase
Which command is used to remove a file?
rm
cp
mv
cat
Which command is used to force delete directories and their contents?
rm -rf
rm -r
del /f
rmdir
Which command is used to copy files from one location to another?
cp
mv
rm
ls
Which command is used to copy directories recursively?
cp -r
mv -r
copydir
cpdir
Which command is used to move or rename files and directories?
mv
cp
rm
ls
Which command is used to create an empty file or update timestamps?
touch
mkdir
rm
cat
Which command is used to view detailed file metadata?
stat
ls
cat
touch
