4.3: Week 3 of Tools of the Trade (Linux Command Line)

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

What does the "grep" command do?

Searches a specified file and returns all lines in the file containing a specified string

he highest-level directory in Linux is called the...

root directory

What command creates a new file called failed_logins.txt?

touch failed_logins.txt

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 user and removes read permissions for the group on the access.txt file.

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

Read, Write

What is an advantage of the "apropos" command?

Users can search for a command even if they do not know the specific command name.

What does the "touch" command do?

creates a file

What does the "whatis" command do?

Display a description of a command on a single line

What does the "cd" command do in Linux?

The cd command navigates between directories.

What two arguments commonly follow the "grep" command?

The grep command is commonly followed by the string to search for and the file to search through. It is used to search files for specified strings.

What does the "man" command do?

The man command displays information on other commands and how they work. For more information about a specific command, enter this other command after man.

In Linux, what does the piping command (|) do?

The piping command (|) sends the standard output of one command as standard input to another command for further processing.

What are read, write, and execute?

The three types of permissions for authorized users

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

Use the sudo command

What does the "mv" command do?

moves a file (also be used to rename files)

What is the pipe character?

pipe character (|)

What are two arguments in cp vulnerabilities.txt /home/analyst/projects?

vulnerabilities.txt, /home/analyst/projects


Ensembles d'études connexes

Programming the World Wide Web - Chapter 1

View Set

Module 15: Weight Status, Fitness, and Motor Competence

View Set

Chapter 20 Fill in the Blank Part A+B

View Set

Pearson Science Topic 2 Water Cycle

View Set

Lesson 2 English Composition II (Assignment 4)

View Set