Google Cybersecurity Certificate: Linux Reference Guide

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/46

flashcard set

Earn XP

Description and Tags

Vocabulary flashcards detailing essential Linux commands, flags, and utilities covered in the Google Cybersecurity Certificate reference guide.

47 Terms

1
New cards

cd

Navigates between directories.

2
New cards

cd ..

Navigates to the directory that is one level above the current working directory.

3
New cards

ls

Displays the names of the files and directories in the current working directory.

4
New cards

ls -a

Displays hidden files when displaying the names of files and directories inside the current working directory.

5
New cards

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.

6
New cards

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.

7
New cards

pwd

Prints the working directory to the screen, such as /home/analyst.

8
New cards

whoami

Returns the username of the current user, such as analyst or fgarcia.

9
New cards

cat

Displays the content of a file.

10
New cards

head

Displays just the beginning of a file, by default 10 lines.

11
New cards

head -n

Option used with head that allows users to specify the number of lines to return from the beginning of a file.

12
New cards

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.

13
New cards

tail

Displays just the end of a file, by default 10 lines.

14
New cards

tail -n

Option used with tail that allows users to specify the number of lines to return from the end of a file.

15
New cards

cp

Copies a file or directory into a new location; the file will not be removed from the previous location.

16
New cards

mkdir

Creates a new directory.

17
New cards

mv

Moves a file or directory to a new location (removing it from the previous location) or renames a file.

18
New cards

nano

Opens or creates a file in the nano command-line file editor.

19
New cards

rm

Removes, or deletes, a file.

20
New cards

rmdir

Removes, or deletes, a directory; only removes directories if they are empty.

21
New cards

touch

Creates a new file.

22
New cards

find

Searches for directories and files that meet specified criteria.

23
New cards

-name (find option)

Option for the find command that searches for a specified string in file names and is case-sensitive.

24
New cards

-iname (find option)

Option for the find command that searches for a specified string in file names and is not case-sensitive.

25
New cards
  • (wildcard)

Represents zero or more unknown characters.

26
New cards

-mtime (find option)

Option for the find command that bases its search for files or directories that were modified on days.

27
New cards

-mmin (find option)

Option for the find command that bases its search for files or directories that were modified on minutes.

28
New cards

grep

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

29
New cards

| (piping)

Sends the standard output of one command as standard input to another command for further processing; accessed using the pipe character (|).

30
New cards

chmod

Changes permissions on files and directories.

31
New cards

chown

Changes ownership of a file or directory; used with sudo.

32
New cards

groupdel

Deletes a group from the system; used with sudo.

33
New cards

sudo

Temporarily grants elevated permissions to specific users; users must be in a sudoers file to have access to sudo.

34
New cards

useradd

Adds a user to the system; used with sudo.

35
New cards

-g (useradd/usermod option)

Option used with useradd or usermod to set or change an existing user's primary group.

36
New cards

-G (useradd/usermod option)

Option used to add a user to supplemental groups (or replace existing supplemental groups when used alone in usermod).

37
New cards

userdel

Deletes a user from the system; used with sudo.

38
New cards

userdel -r

Deletes a user from the system and deletes all files in their home directory; used with sudo.

39
New cards

usermod

Modifies existing user accounts; used with sudo.

40
New cards

usermod -a -G

Uses the -a -G options to add an existing user to a supplemental group without removing them from other supplemental groups.

41
New cards

usermod -d

Uses the -d option to change an existing user's home directory.

42
New cards

usermod -L

Uses the -L option to lock an existing user's account so they cannot log in.

43
New cards

usermod -l

Uses the -l option to change an existing user's login name.

44
New cards

apropos

Searches the manual page descriptions for a specified string.

45
New cards

apropos -a

Option that specifies to only return commands that contain all specified strings in their manual page descriptions.

46
New cards

man

Displays information on other commands and how they work; the output is called a "man page," which is short for "manual page."

47
New cards

whatis

Displays a description of a command on a single line.