
Introductory Command Line And Bash Scripting
Computers
KG - University
Used 10+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
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?
Similar Resources on Wayground
20 questions
Information & Communication Technology Class IX
Quiz
•
9th Grade
19 questions
Le Quiz Récap
Quiz
•
1st Grade
20 questions
Teste WINDOWS
Quiz
•
7th Grade
15 questions
Microcontroller
Quiz
•
University
20 questions
empowerment quiz 5 3rd q
Quiz
•
1st - 5th Grade
15 questions
IntroductionInSWE
Quiz
•
KG
20 questions
Pengayaan Informatika
Quiz
•
12th Grade
16 questions
Scorciatoie Tastiera & Estensioni
Quiz
•
10th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade