Ubuntu Linux- Working with Files (Text & Directory)

Ubuntu Linux- Working with Files (Text & Directory)

Professional Development

20 Qs

quiz-placeholder

Similar activities

Git_Python

Git_Python

Professional Development

20 Qs

DSP_Midterm Quiz

DSP_Midterm Quiz

Professional Development

20 Qs

NM-BIG DATA Course

NM-BIG DATA Course

Professional Development

20 Qs

Round-1 Technical Aptitude

Round-1 Technical Aptitude

11th Grade - Professional Development

20 Qs

Cloudbinary_OS_Basics_1_Unix-Linux-Windows

Cloudbinary_OS_Basics_1_Unix-Linux-Windows

Professional Development

19 Qs

Linux Essentials

Linux Essentials

Professional Development

22 Qs

Linux Quiz

Linux Quiz

Professional Development

15 Qs

Linux Quiz 5

Linux Quiz 5

Professional Development

20 Qs

Ubuntu Linux- Working with Files (Text & Directory)

Ubuntu Linux- Working with Files (Text & Directory)

Assessment

Quiz

Computers

Professional Development

Medium

Created by

Azaxole Mbingeleli

Used 2+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command is used to create an empty file in Ubuntu Linux?

mkdir

cat

touch

nano

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the cat command do when used with a filename?

Deletes the file

Displays the contents of the file

Edits the file in terminal

Creates a new directory

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you save changes and exit in the vi editor?

CTRL + X, then Y, then Enter

:wq

CTRL + S

ALT + F4

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command can be used to create and write text to a file in one step?

cat filename

touch filename

echo "Hello World" > filename

mv filename

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the nano command do?

Opens a file in a simple text editor

Copies a file to another directory

Creates a new directory

Compiles a program

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you create a new directory in Ubuntu Linux?

mkdir <directory_name>

touch <directory_name>

nano <directory_name>

cd <directory_name>

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following commands appends text to an existing file without overwriting its content?

echo "Hello" > file.txt

echo "Hello" >> file.txt

cat file.txt

touch file.txt

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?