
Linux Fundamentals - Reading Files
Interactive Video
•
Information Technology (IT), Architecture, Mathematics
•
University
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Read more
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What command is used to copy content from the buffer to a new file?
cut
move
copy
paste
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which command can be used to read the first 10 lines of a file?
more
head
tail
cut
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you read the last 5 lines of a file?
head -n 5
more -n 5
tail -n 5
cut -n 5
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the 'more' command allow you to do?
Read a file page by page
Edit a file
Copy a file
Delete a file
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which command is used to monitor live changes in a file?
head -f
tail -f
cut -f
more -f
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of using '>>' in a command?
To append to a file
To overwrite a file
To read a file
To delete a file
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you append a new line to an existing file?
echo 'text' > file.txt
echo 'text' | file.txt
echo 'text' < file.txt
echo 'text' >> file.txt
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?