Module 3-04 Challenge Flashcards
What are the arguments in “ mv Q1users.txt /home/analyst/reports “? Select two answers.
1) Q1users.txt
2) /home/analyst/reports
3) .txt
4) mv
1) Q1users.txt
2) /home/analyst/reports
Which of the following items represents the root directory?
1) /
2) *
3) *home
4) /home
/
A security analyst enters “ grep OS updates.txt “ into the command line. What does this tell the operating system to do?
- 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
- 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
Which of these commands creates a new file?
1) touch
2) mkdir
3) cd
4) chmod
touch
Which of the following are types of permissions? Select all that apply.
- Execute
- Authorize
- Read
- Write
- Execute
- Read
- Write
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 group for the “ access.txt “ file
- Add write permissions to the group for the “ access.txt “ file
- Add write permissions to the user for the “ access.txt “ file
- Remove read permissions from the user for the “ access.txt “ file
- Remove read permissions from the group for the “ access.txt “ file
- Add write permissions to the user for the “ access.txt “ file
A user is not a root user, but needs elevated privileges to use certain commands. What should they do?
- Use the “ chmod “ command
- Assign themselves execute permissions
- Assign themselves write permissions
- Use the “ sudo “ command
Use the “ sudo “ command
What should you specify in the argument following the cd command?
- The string you want to search for
- Your current directory
- The directory you want to navigate to
- The file you want to create
The directory you want to navigate to
Which of the following commands searches the manual page descriptions for a specified string?
1) apropos
2) cp
3) man
4) pwd
apropos
Given the following permissions “ drw-rw-r– “, what does the fourth character represent?
- The user has execute permissions for this directory
- The owner does not have execute permissions for this directory
- The group has execute permissions for this directory
- The group does not have execute permissions for this directory
- The owner does not have execute permissions for this
Fill in the blank: The highest-level directory in Linux is called the _____.
- root directory
- home directory
- sudo
- permissions
root directory
What does the “ grep “ command do?
- Prints the working directory to the screen
- Searches a specified file and returns all lines in the file * containing a specified string
- Creates a new directory
- Temporarily grants elevated permissions to specific users
Searches a specified file and returns all lines in the file * containing a specified string
What does the “ touch “ command do?
- Creates a new file
- Opens a file editor
- Changes permissions on files and directories
- Moves a file or directory to a new location
Creates a new file
What are the three types of permissions?
- Root, user, and group
- Read, write, and save
- User, group, and other
- Read, write, and execute
Read, write, and execute
Which command can you use to change your current directory?
1) cat
2) ls
3) cd
4) pwd
cd