Hybrid Quiz 2 (Material from w03-w04) 2

.pdf

School

Algonquin College *

*We aren’t endorsed by this school

Course

CST8102

Subject

Computer Science

Date

Feb 20, 2024

Type

pdf

Pages

5

Uploaded by ProfessorStrawMouse21 on coursehero.com

Important: Written answers commands are automatically graded. Enter them accurately according to the following: 1. Use -5 instead of —n 5 with the relevant commands 2. Use only the minimum and absolutely required options 3. Write options before the other arguments (1f the command permits) For example: 1ls -1 1l.txt instead of 1ls 1l.txt -1 4. Use exactly one space to separate arguments, options, pipes, and redirections. For example: echo hello | wc instead of: echo hello|wc 5. Use fgrep 1instead of grep 6. Remove redundant spaces 1n the beginning and end Question 1 (1 point) Saved You are 1n the directory =~ Rename the sub directory subdir (under the current directory) to newsub using absolute pathnames only. [ mv /home/username/subdir /hc ] Ay Question 2 (1 point) Saved Which command searches for text inside files? (e) grep Question 3 (1 point) Saved
Which command searches for files or directories named exactly helloworld in in the current directory and under? Ofind —iname helloworld @find -name helloworld O fname helloworld O find helloworld Ofind -type f helloworld Ofind -type f -name helloworld O search helloworld Question 4 (1 point) Saved Which command can quickly provide search results by keeping a cache of files and directories pathnames? O fastsearch O findnow O isearch O sfind O 1find O gsearch @ locate Question 5 (1 point) Saved What i1s the minimum permission needed on directory dir to do: rm dir/1l.txt
Question 6 (1 point) Saved Which Linux command allows you to change permissions to files/directories? Question 7 (1 point) Saved Which of the following commands outputs the current user name? <:)id @ whoami O who (:)None of the other answers O pwd O groups Question 8 (1 point) 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