Linux Hybrid Quiz 1-2

pdf

School

Algonquin College *

*We aren’t endorsed by this school

Course

CST8102

Subject

Computer Science

Date

Feb 20, 2024

Type

pdf

Pages

3

Uploaded by ProfessorStrawMouse21

Report
Question 1 (1 point) Saved A file named data contains the following information: one,two,three,four five,six Using a single command, output only the text four five from the file. IMPORTANT: Use options before the file name when writing your command. [ cut -d ' -f 4,5 data ] Ay Question 2 (1 point) Saved Which Linux command can you use to see usage 1nformation for built-in commands? Question 3 (1 point) Saved The following fictional command can accept both options and arguments. From the point of view of the command, how many options are received? (Answer 1n digilits) S hello a -b c E | & Question 4 (1 point) Saved
Write the following path i1n a shorter form. Do not add ending / /home/student/dirl/.. [ /home/student ] Ay Question 5 (1 point) Saved How would you run the same command you used 2 commands earlier? = B pressing the up arrow key twice and hitting enter Question 6 (1 point) Saved The synopsis section 1n the manual page for a fictional command called salad shows the following: salad --tomato|--cucumber Which of the following is a wvalid use of the command? [:)salad ——cucumber --tomato [:)salad —-—tomato —--cucumber salad —--tomato salad —--cucumber Question 7 (1 point) Saved The following fictional command can accept both options and arguments. From the point of view of the command, how many non option arguments are received? (Answer 1n digits) S hello one two —--three four
E v Question 8 (1 point) Saved You are in the directory /home/student/dirl Write the command that changes directory to the dir2 sub- directory using the shortest absolute pathname. Do not use ~. [cd /home/student/dirl/dir2 ] Ay Question 9 (1 point) Saved Write the following path in a shorter form. /dirl/.././../£file I g Question 10 (1 point) Saved Write the followling path in the shortest form: /../today/we/./turn/phones/../laptops/on/off/./../. [ /today/we/turn/laptops/on ] Ay m 10 of 10 questions saved
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help