WorksheetsLinux Fundamentals
Total questions: 7
Worksheet time: 3mins
What does the following command do?
touch media/popular.txt
It creates a file named popular.txt in your working directory
It creates a file named popular.txt in the media directory.
It changes the working directory to the media directory.
This command is not formed correctly.
If the current working directory is home/, which of the following commands will navigate to the movies/ directory in the tree below?
home/
media/
movies/
music/
mkdir media/movies
ls media/movies
cd movies
cd media/movies
What is a directory?
A command to a computer
A tree structure
A file
A folder used to store files
How do you print the current working directory?
pwd
mkdir
cd
ls
How would you create a file named text.txt in your current directory?
touch text.txt
mkdir text.txt
touch home/text.txt
ls text.txt
Which of the following commands in Linux is used to display information about files and directories contained within the current working directory?
pwd
ls
grep
ps
Which of the answers listed below refers to a Unix command for copying files and directories?
pwd
cp
ls
copy
