Linux Hybrid Quiz 1-3

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 Which Linux command can you use to see usage information for commands (except built-i1n commands) Question 2 (1 point) Saved The file 1tol00.txt contains 100 lines with the numbers 1 through 100 in order, one number per line. What 1s the output of the following command? S tail -2 1tol00.txt | head -1 OlOO QZ Ol <:)99 <:)98 Question 3 (1 point) Saved Enter the full command that will create an empty file named toast in the current directory. Assume that the file does not exist. [touch full ] Ay Question 4 (1 point) Saved Enter a command to remove the file removeme.txt in the current directory
rm removeme.txt Question 5 (1 point) Saved The following command can be used to extract the word hello from the line: one;two;three;hello; four;five;six Q extract Question 6 (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 digilts) S hello one two three four o | & Question 7 (1 point) Saved When viewing a command's manual page 1n the terminal, to exit you would press: [ K Question 8 (1 point) Saved Write the following path 1n a shorter form. Do not add ending /
/dirl/dir2/dir3/../../dir4 [ /dir1/dir4 ] Ay Question 9 (1 point) Saved The file /hello.txt contains one line with the word: one What 1s 1n the file after the following command: echo two >> /hello.txt "one" followed by "two" 1n separate lines (:)"two" followed by "one" in seperate lines "one" followed by "two" 1n one line (:)The file only contains "two" (:)The command has a mistake (:)The file only contains "one" (:)"two" followed by "one" in one line Question 10 (1 point) Saved How many options are there for the following fictional command? (Answer 1n digits) $ hello -a b -cd -e fg E g - 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