
Introductory Command Line And Bash Scripting

Quiz
•
Computers
•
KG - University
•
Hard
Used 10+ times
FREE Resource
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
Similar Resources on Wayground
18 questions
RHA Sample 2024

Quiz
•
University
20 questions
Linux Variables and Commands

Quiz
•
11th Grade
20 questions
U01 - Command Line & Binary/Decimal Test

Quiz
•
9th - 12th Grade
15 questions
Got Git?

Quiz
•
University
22 questions
Linux2-Quiz 3 - permissions, rights

Quiz
•
1st - 5th Grade
15 questions
Linux-2 Quiz 2 -- LAMP

Quiz
•
1st - 12th Grade
18 questions
Git-it?

Quiz
•
Professional Development
20 questions
Linux Directory Structures

Quiz
•
10th Grade - University
Popular Resources on Wayground
15 questions
Hersheys' Travels Quiz (AM)

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
30 questions
Lufkin Road Middle School Student Handbook & Policies Assessment

Quiz
•
7th Grade
20 questions
Multiplication Facts

Quiz
•
3rd Grade
17 questions
MIXED Factoring Review

Quiz
•
KG - University
10 questions
Laws of Exponents

Quiz
•
9th Grade
10 questions
Characterization

Quiz
•
3rd - 7th Grade
10 questions
Multiply Fractions

Quiz
•
6th Grade
Discover more resources for Computers
15 questions
Hersheys' Travels Quiz (AM)

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
30 questions
Lufkin Road Middle School Student Handbook & Policies Assessment

Quiz
•
7th Grade
20 questions
Multiplication Facts

Quiz
•
3rd Grade
17 questions
MIXED Factoring Review

Quiz
•
KG - University
10 questions
Laws of Exponents

Quiz
•
9th Grade
10 questions
Characterization

Quiz
•
3rd - 7th Grade
10 questions
Multiply Fractions

Quiz
•
6th Grade