1/46
Vocabulary flashcards detailing essential Linux commands, flags, and utilities covered in the Google Cybersecurity Certificate reference guide.
cd
Navigates between directories.
cd ..
Navigates to the directory that is one level above the current working directory.
ls
Displays the names of the files and directories in the current working directory.
ls -a
Displays hidden files when displaying the names of files and directories inside the current working directory.
ls -l
Displays permissions to files and directories in the current working directory; also displays additional information, including owner name, group, file size, and the time of the last modification.
ls -la
Displays permissions to files and directories in the current working directory, including hidden files; also displays additional information, including owner name, group, file size, and the time of last modification.
pwd
Prints the working directory to the screen, such as /home/analyst.
whoami
Returns the username of the current user, such as analyst or fgarcia.
cat
Displays the content of a file.
head
Displays just the beginning of a file, by default 10 lines.
head -n
Option used with head that allows users to specify the number of lines to return from the beginning of a file.
less
Returns the content of a file one page at a time; changes the terminal window to a display that allows users to easily move forward and backward through content.
tail
Displays just the end of a file, by default 10 lines.
tail -n
Option used with tail that allows users to specify the number of lines to return from the end of a file.
cp
Copies a file or directory into a new location; the file will not be removed from the previous location.
mkdir
Creates a new directory.
mv
Moves a file or directory to a new location (removing it from the previous location) or renames a file.
nano
Opens or creates a file in the nano command-line file editor.
rm
Removes, or deletes, a file.
rmdir
Removes, or deletes, a directory; only removes directories if they are empty.
touch
Creates a new file.
find
Searches for directories and files that meet specified criteria.
-name (find option)
Option for the find command that searches for a specified string in file names and is case-sensitive.
-iname (find option)
Option for the find command that searches for a specified string in file names and is not case-sensitive.
Represents zero or more unknown characters.
-mtime (find option)
Option for the find command that bases its search for files or directories that were modified on days.
-mmin (find option)
Option for the find command that bases its search for files or directories that were modified on minutes.
grep
Searches a specified file and returns all lines in the file containing a specified string.
| (piping)
Sends the standard output of one command as standard input to another command for further processing; accessed using the pipe character (|).
chmod
Changes permissions on files and directories.
chown
Changes ownership of a file or directory; used with sudo.
groupdel
Deletes a group from the system; used with sudo.
sudo
Temporarily grants elevated permissions to specific users; users must be in a sudoers file to have access to sudo.
useradd
Adds a user to the system; used with sudo.
-g (useradd/usermod option)
Option used with useradd or usermod to set or change an existing user's primary group.
-G (useradd/usermod option)
Option used to add a user to supplemental groups (or replace existing supplemental groups when used alone in usermod).
userdel
Deletes a user from the system; used with sudo.
userdel -r
Deletes a user from the system and deletes all files in their home directory; used with sudo.
usermod
Modifies existing user accounts; used with sudo.
usermod -a -G
Uses the -a -G options to add an existing user to a supplemental group without removing them from other supplemental groups.
usermod -d
Uses the -d option to change an existing user's home directory.
usermod -L
Uses the -L option to lock an existing user's account so they cannot log in.
usermod -l
Uses the -l option to change an existing user's login name.
apropos
Searches the manual page descriptions for a specified string.
apropos -a
Option that specifies to only return commands that contain all specified strings in their manual page descriptions.
man
Displays information on other commands and how they work; the output is called a "man page," which is short for "manual page."
whatis
Displays a description of a command on a single line.