All Coursera Quiz Answers

Tools of the Trade: Linux and SQL Weekly challenge 3 Quiz Answers

In this article i am gone to share Coursera Course: Tools of the Trade: Linux and SQL by Google | Weekly challenge 3 Quiz Answers with you..

Enroll Link: Tools of the Trade: Linux and SQL


Also Visit:ย  Tools of the Trade: Linux and SQL Weekly challenge 2 Quiz Answers


 

Tools of the Trade: Linux and SQL Weekly challenge 3 Quiz Answers

Question 1)
What are the arguments in mv Q1users.txt /home/analyst/reports? Select two answers.

  • /home/analyst/reports
  • mv
  • .txt
  • Q1users.txt

Question 2)
What is the root directory?

  • The command to navigate between directories
  • A specific userโ€™s home directory
  • A subdirectory of the home directory
  • The highest-level directory in Linux

Question 3)
Which command searches a specified file and returns all lines in the file containing a specified string?

  • grep
  • sudo
  • pwd
  • mkdir

Question 4)
A security analyst enters touch updates.txt into the command line. What does this tell the operating system to do?

  • Create a new file named updates.txt in their current directory
  • Move the updates.txt file out of their current directory
  • Open the updates.txt file
  • Create a new file named updates.txt and move it to the root directory

Question 5)
What are the three types of permissions?

  • Read, write, and execute
  • Root, user, and group
  • Read, write, and save
  • User, group, and other

Question 6)
A security analyst is updating permissions on the file access.txt. They want to add write permissions for the user and remove read permissions for the group. What do they enter on the command line?

  • chmod u+rw,g-rw access.txt
  • chmod u-w,g+r access.txt
  • chmod u+w,g-r access.txt
  • chmod access.txt u+w,g-r

Question 7)
Which of the following commands require the user to be a root user or have sudo privileges? Select two answers.

  • cd
  • useradd
  • userdel
  • grep

Question 8)
Which command can you use to change your current directory?

  • ls
  • pwd
  • cat
  • cd

Question 9)
A security analyst enters apropos password into the command line. What does this tell the operating system to do?

  • Display a description of the password command on a single line
  • Change your current directory to /password
  • Output all the commands that contain the word โ€œpasswordโ€ in their man page descriptions
  • Display detailed information on the password command and how it works

Question 10)
Given the following permissions drw-rw-r–, which character indicates if this is a file or directory?

  • Tenth
  • Second
  • First
  • Fifth

Question 11)
What are the arguments in cp vulnerabilities.txt /home/analyst/projects? Select two answers.

  • cp
  • /home/analyst/projects
  • vulnerabilities.txt
  • /home

Question 12)
Fill in the blank: The highest-level directory in Linux is called the _____.

  • root directory
  • sudo
  • permissions
  • home directory

Question 13)
A security analyst enters grep OS updates.txt into the command line. What does this tell the operating system to do?

  • Move the updates.txt file to the OS directory
  • Create a new directory named OS and a new file named updates.txt
  • Search through the updates.txt file and return all lines containing the string OS
  • Create a new file named updates.txt in the OS directory

Question 14)
What does the touch command do?

  • Creates a new file
  • Moves a file or directory to a new location
  • Opens a file editor
  • Changes permissions on files and directories

Question 15)
Which of the following are types of permissions? Select all that apply.

  • Execute
  • Read
  • Write
  • Authorize

Question 16)
A security analyst enters chmod u+w,g-r access.txt into the command line. What does this command tell the operating system to do? Select all that apply.

  • Add write permissions to the user for the access.txt file
  • Remove read permissions from the group for the access.txt file
  • Remove read permissions from the user for the access.txt file
  • Add write permissions to the group for the access.txt file

Question 17)
In which of these situations would you enter cd logs?

  • You want to change to a subdirectory of your current directory named logs.
  • You want to search for the string logs in the files of your current directory.
  • You want to print the first 10 lines of the logs file.
  • You want to list all the files and directories in the logs directory.

Question 18)
Given the following permissions drw-rw-r–, what does the fourth character represent?

  • The group does not have execute permissions for this directory
  • The user has execute permissions for this directory
  • The group has execute permissions for this directory
  • The user does not have execute permissions for this directory

Question 19)
What are the arguments in grep bmoreno Q4users.txt? Select two answers.

  • grep
  • Q4users.txt
  • bmoreno
  • .txt

Question 20)
Which of the following items represents the root directory?

  • *
  • /home
  • /
  • *home

Question 21)
A security analyst enters chmod u+w,g-r access.txt into the command line. What does this command do?

  • It adds write and read permissions for the user and group on the access.txt file.
  • It adds write permissions for the user and removes read permissions for the group on the access.txt file.
  • It removes write and read permissions for the user and group on the access.txt file.
  • It adds write permissions for the group and removes read permissions for the user on the access.txt file.

Question 22)
A user is not a root user, but needs elevated privileges to use certain commands. What should they do?

  • Use the chmod command
  • Use the sudo command
  • Assign themselves write permissions
  • Assign themselves execute permissions

Question 23)
Given the following permissions drw-rw-r–, what permissions does the group have? Select all that apply.

  • Use
  • Execute
  • Read
  • Write

Question 24)
Which of the following commands searches the manual page descriptions for a specified string?

  • cp
  • apropos
  • man
  • pwd

Question 25)
What does the grep command do?

  • Creates a new directory
  • Prints the working directory to the screen
  • Searches a specified file and returns all lines in the file containing a specified string
  • Temporarily grants elevated permissions to specific users

Question 26)
Which of these commands creates a new file?

  • cd
  • touch
  • chmod
  • mkdir

Question 27)
A security analyst is updating permissions on the file access.txt. They want to add write permissions for the user and remove read permissions for the group. What do they enter on the command line?

  • chmod u+w,g-r access.txt
  • chmod u-w,g+r access.txt
  • chmod access.txt u+w,g-r
  • chmod u+rw,g-rw access.txt

Question 28)
What does sudo do?

  • Deletes users from the system
  • Changes the owner associated with a particular file
  • Temporarily grants elevated permissions to specific users
  • Adds users to the system

Question 29)
What does the apropos command do?

  • Searches the manual page descriptions for a specified string
  • Prints the working directory to the screen
  • Displays a description of a command on a single line
  • Displays detailed information on commands and their options

Question 30)
What are read, write, and execute?

  • Different methods for editing files
  • Specific Linux commands used to change file permissions
  • The three types of owners for files and directories
  • The three types of permissions for authorized users

Question 31)
What should you specify in the argument following the cd command?

  • The directory you want to navigate to
  • The string you want to search for
  • The file you want to create
  • Your current directory