
Introductory Command Line And Bash Scripting
Quiz
•
Computers
•
KG - University
•
Hard
Used 10+ times
FREE Resource
Enhance your content in a minute
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You have made changes to .bashrc, how do you initiate the changes in the current shell?
run ~/.bashrc
source ~/.bashrc
exec ~/.bashrc
./bashrc
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You are currently in your home directory, display the files and directories located in the etc directory by date modified where you can see the date
ls /etc -t
ls -ltr
ls -lt /etc
ls -ltr ~/etc
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You are using in a GUI for Ububtu desktop, how do you open a terminal?
Ctrl-Alt-t
Ctrl-Shift-b
Ctrl-Alt-b
Ctrl-Shift-t
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What command creates an empty file?
mk
cat
create
touch
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which one of the following would be best (will return the fewest results) at returning unique results from a file named colors.txt containing the following with each word on it's own line and writing the results to a file called sorted:
green,Green,Blue,Red,Yellow,Purple,red,Purple,green
sort colors.txt | uniq -i | sorted
sort colors.txt | uniq -i > sorted
uniq -i colors.txt >> sorted
sort uniq colors.txt = sorted
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How would you delete a non empty directory named Data located in the directory you are in?
rm Data
rmdir Data
rm -r Data
rm -r ../Data
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Add the line "Ryan" to the file enemies without removing any other data without using a text editor
echo "Ryan" >> enemies
echo "Ryan" > enemies
echo "Ryan" < enemies
cp "Ryan" enemies
Create a free account and access millions of resources
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?
Similar Resources on Wayground
20 questions
L4 Homework
Quiz
•
8th Grade
21 questions
Microsoft Word
Quiz
•
6th - 7th Grade
20 questions
Computer Science - X
Quiz
•
8th - 10th Grade
15 questions
4.6.4 Logic Gates
Quiz
•
10th Grade - Professi...
20 questions
Quiz
•
7th - 12th Grade
20 questions
M1_Final_Quiz1_2017
Quiz
•
7th - 8th Grade
21 questions
Lecture Exercise Topic 1.3
Quiz
•
12th Grade
15 questions
Firewall and Network Security
Quiz
•
University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
