
Ubuntu Linux- Working with Files (Text & Directory)

Quiz
•
Computers
•
Professional Development
•
Medium
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
Similar Resources on Wayground
25 questions
Quiz for IT position

Quiz
•
Professional Development
20 questions
WEEK 5 REVIEW - Operating Tools

Quiz
•
Professional Development
15 questions
CloudBinary_Jenkins_Quiz- 2

Quiz
•
Professional Development
15 questions
FMT web developing session 4 HTML5 + CSS3

Quiz
•
KG - Professional Dev...
24 questions
Linux commands 2

Quiz
•
Professional Development
15 questions
Coding & Logic - Lesson 1

Quiz
•
Professional Development
15 questions
ITF - Quiz 9.5 - DNS and URLs

Quiz
•
Professional Development
16 questions
Introduction to Cybersecurity + linux

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
11 questions
All about me

Quiz
•
Professional Development
10 questions
How to Email your Teacher

Quiz
•
Professional Development
15 questions
Fun Random Trivia

Quiz
•
Professional Development
22 questions
Anne Bradstreet 1612-1672

Quiz
•
Professional Development
18 questions
Spanish Speaking Countries and Capitals

Quiz
•
KG - Professional Dev...
14 questions
Fall Trivia

Quiz
•
11th Grade - Professi...
15 questions
Disney Characters Quiz

Quiz
•
Professional Development
15 questions
Quiz to Highlight Q types & other great features in Wayground

Quiz
•
Professional Development