Ubuntu Linux- Working with Files (Text & Directory)

Ubuntu Linux- Working with Files (Text & Directory)

Professional Development

20 Qs

quiz-placeholder

Similar activities

Python to Access Data Quiz

Python to Access Data Quiz

Professional Development

15 Qs

Java sve

Java sve

Professional Development

22 Qs

Quiz_Matérias

Quiz_Matérias

Professional Development

20 Qs

A+ - 19D - Identify Basics of Scripting

A+ - 19D - Identify Basics of Scripting

Professional Development

21 Qs

Sec+ Quiz - 1

Sec+ Quiz - 1

Professional Development

15 Qs

Linux AS

Linux AS

Professional Development

20 Qs

VMware Certified Professional - DCV 2V0-21.23

VMware Certified Professional - DCV 2V0-21.23

Professional Development

20 Qs

Linux-2

Linux-2

Professional Development

15 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?