Search Header Logo

ubuntu quiz 20SSL6043

Authored by Roxy Official

Information Technology (IT)

University

ubuntu quiz 20SSL6043
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

1. Which of the following command options will list all files, including hidden files, in the current directory?

ls -l

ls -a

ls -h

ls -r

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

2. What does the mv command do in Linux?

A) It moves files or directories from one location to another.

B) It displays the contents of a file.

C) It creates new directories.

D) It shows the system memory usage.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

3. What happens if you run the following command: mv file1.txt/home/user/docs/?

A) It deletes the file file1.txt.

B) It renames the file file1.txt.

C) It moves the file file1.txt to the /home/user/docs/ directory.

D) It copies the file file1.txt to the /home/user/docs/ directory.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

4. To copy a file named data.txt from the current directory to the /home/user/backup/ directory, which command would you use?

A) ls data.txt /home/user/backup/

B) mv data.txt /home/user/backup/

B) cp data.txt /home/user/backup/

D) rm data.txt /home/user/backup/

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

5. What command would you use to list the contents of a directory with detailed file information like permissions, ownership, and timestamps?

A) ls -v

B) ls -l

C) ls -p

D) ls -a

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

6. Which of the following commands would remove the file file1.txt?

A) cp file1.txt

B) mv file1.txt

C) rm file1.txt

D) ls file1.txt

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

7. How would you copy a directory named folder and its contents to another directory called /home/user/backup/?

A) cp -r folder /home/user/backup/

B) mv folder /home/user/backup/

C) cp folder /home/user/backup/

D) ls -r folder /home/user/backup/

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?