Site icon i2tutorials

Basic Ubuntu Commands – Quiz

This Quiz contains totally 25 Questions each carry 1 point for you.

1.Which command is used in a terminal to change directories?
mv
cd
rm
ls

Correct!

Wrong!

2.How would you list all the files in the current directory?
find
ls
pwd
cd

Correct!

Wrong!

3.What does the 'pwd' command do?
Moves a file
Deletes a file
Prints the current working directory
Changes the file permissions

Correct!

Wrong!

4.How do you copy a file in the terminal? 
cp
mv
ls
cd

Correct!

Wrong!

5.Which command is used to remove a file?
mv
rm
ls
cp

Correct!

Wrong!

6.How can you display the contents of a file in the terminal?
cp
mv
cat
rm

Correct!

Wrong!

7.Which command is used to change file permissions?
chown
chmod
ls
cd

Correct!

Wrong!

8.What does 'touch' command do?
Touches a file
Deletes a file
Creates a new file
Copies a file

Correct!

Wrong!

9.How can you find the manual of a command in Unix or Linux?
find
man
history
less

Correct!

Wrong!

10.Which command can display the last part of a file?
head
tail
cat
less

Correct!

Wrong!

11.How can you see the command history in Unix or Linux terminal?
tail
head
history
cat

Correct!

Wrong!

12.What does the 'chown' command do?
Changes file permissions
Changes file ownership
Deletes a file
Copies a file

Correct!

Wrong!

13.How to change the group ownership of a file?
chmod
chown
chgrp
cp

Correct!

Wrong!

14.Which command is used to move a file?
cp
mv
rm
ls

Correct!

Wrong!

15.What does the 'find' command do?
Finds a specific file
Lists all files
Changes the directory
Displays the contents of a file

Correct!

Wrong!

16.Which command lets you scroll through a long output in the terminal?
less
ls
cd
pwd

Correct!

Wrong!

17.How do you display the beginning of a file?
head
tail
cat
less

Correct!

Wrong!

18.What is the purpose of the command-line interface?
To provide a graphical interface
To execute commands
To change file permissions
To navigate the web

Correct!

Wrong!

19.Which command is used to see the full path of the directory you're currently in?
mv
pwd
ls
cd

Correct!

Wrong!

20.How to create a blank file or update the access time of a file?
touch
rm
cp
mv

Correct!

Wrong!

21.Which command is used to search for a specific command in the history?
less
find
history
man

Correct!

Wrong!

22.Which command is used to view the contents of a file page by page?
cat
less
ls
mv

Correct!

Wrong!

23.How can you get a brief summary and options of a command?
find
man
history
pwd

Correct!

Wrong!

24.What command would you use to change a file's group and owner at the same time?
chmod
chown
chgrp
ls

Correct!

Wrong!

25.How to move to the parent directory in terminal?
cd ..
cd /
cd –
cd

Correct!

Wrong!

Share the quiz to show your results !

Subscribe to see your results

Ignore & go to results

Basic Ubuntu Commands – Quiz

You got %%score%% of %%total%% right

%%description%%

%%description%%

Loading...

Exit mobile version