Q: What are the arguments in grep bmoreno Q4users.txt? Select two answers.
- 4users.txt
- grep
- bmoreno
- .txt
Q: What is the root directory?
- The highest-level directory in Linux
- The command to navigate between directories
- The home directory of a specific user with no privileges
- A subdirectory of the home directory
Q: 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 file named updates.txt in the OS directory
- Search through the updates.txt file and return all lines containing the string OS (CORRECT)
- Create a new directory named OS and a new file named updates.txt
Q: A security analyst enters touch updates.txt into the command line.
What does this tell the operating system to do?
- Open the updates.txt file
- Create a new file named updates.txt in their current directory
- Move the updates.txt file out of their current directory
- Create a new file named updates.txt and move it to the root directory
Q: What are the three types of permissions?
- Root, user, and group
- User, group, and other
- Read, write, and execute
- Read, write, and save
Q: A security analyst enters chmod u+w,g-r access.txt into the command
line. What does this command do?
- It adds write permissions for the group and removes read permissions for the user on the access.txt file.
- It adds write and read permissions for the user and 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 user and removes read permissions for the group on the access.txt file.
Q: Which of the following commands require the user to be a root user or
have sudo privileges? Select two answers.
- cd
- useradd
- grep
- userdel
Q: Given the following permissions drw-rw-r–, what permissions does the
group have? Select all that apply.
- Write
- Use
- Read
- Execute
Q: What are the arguments in cp vulnerabilities.txt
/home/analyst/projects? Select two answers.
- vulnerabilities.txt
- cp
- /home
- /home/analyst/projects
Q: Which command searches a specified file and returns all lines in the
file containing a specified string?
- sudo
- pwd
- grep (CORRECT)
- mkdir
Q: Which of the following are types of permissions? Select all that
apply.
- Write
- Execute
- Read
- Authorize
Q: 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.
- Remove read permissions from the user for the access.txt file
- Add write permissions to the user for the access.txt file
- Add write permissions to the group for the access.txt file
- Remove read permissions from the group for the access.txt file
Q: What does sudo do?
- Changes the owner associated with a particular file
- Temporarily grants elevated permissions to specific users
- Adds users to the system
- Deletes users from the system
Q: Which of the following commands searches the manual page
descriptions for a specified string?
- cp
- apropos
- man
- pwd
Q: 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
Q: What are the arguments in mv Q1users.txt /home/analyst/reports?
Select two answers.
- mv
- Q1users.txt
- /home/analyst/reports
- .txt
Q: Fill in the blank: The highest-level directory in Linux is called
the _____.
- sudo
- permissions
- root directory
- home directory
Q: 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+rw,g-rw access.txt
- chmod access.txt u+w,g-r
- chmod u-w,g+r access.txt
Q: Which command can you use to change your current directory?
- ls
- cat
- pwd
- cd