Cheat Sheet Flashcards

1
Q

Opens man pages for the specified tool.

A

man <tools>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Prints the help page of the tool.

A

<tool> -h

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Searches through man pages’ descriptions for instances of a given keyword.

A

apropos <keyword>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Concatenate and print files.

A

cat

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Displays current username.

A

whoami

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Returns users identity.

A

id

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Sets or prints the name of the current host system.

A

hostname

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Prints operating system name.

A

uname

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Returns working directory name.

A

pwd

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Used to assign or view an address to a network interface and/or configure network interface parameters.

A

ifconfig

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

A utility to show or manipulate routing, network devices, interfaces, and tunnels.

A

ip

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Shows network status.

A

netstat

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Another utility to investigate sockets.

A

ss

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Shows process status.

A

ps

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Displays who is logged in.

A

who

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Prints environment or sets and executes a command.

A

env

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Lists block devices.

A

lsblk

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Lists USB devices.

A

lsusb

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

Lists opened files.

A

lsof

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

Lists PCI devices.

A

lspci

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

Execute command as a different user.

A

sudo

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

The utility requests appropriate user credentials via PAM and switches to that user ID (the default user is the superuser). A shell is then executed.

A

su

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

Creates a new user or update default new user information.

A

useradd

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

Deletes a user account and related files.

A

userdel

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q

Modifies a user account.

A

usermod

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
26
Q

Adds a group to the system.

A

addgroup

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
27
Q

Removes a group from the system.

A

delgroup

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
28
Q

Changes user password.

A

passwd

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
29
Q

Install, remove and configure Debian-based packages.

A

dpkg

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
30
Q

High-level package management command-line utility.

A

apt

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
31
Q

Alternative to apt.

32
Q

Install, remove and configure snap packages.

33
Q

Standard package manager for Ruby.

34
Q

Standard package manager for Python.

35
Q

Revision control system command-line utility.

36
Q

Command-line based service and systemd control manager.

37
Q

Prints a snapshot of the current processes.

38
Q

Query the systemd journal.

A

journalctl

39
Q

Sends a signal to a process.

40
Q

Puts a process into background.

41
Q

Lists all processes that are running in the background.

42
Q

Puts a process into the foreground.

43
Q

Command-line utility to transfer data from or to a server.

44
Q

An alternative to curl that downloads files from FTP or HTTP(s) server.

45
Q

Starts a Python3 web server on TCP port 8000.

A

python3 -m http.server

46
Q

Lists directory contents.

47
Q

Changes the directory.

48
Q

Clears the terminal.

49
Q

Creates an empty file.

50
Q

mkdir

51
Q

Lists the contents of a directory recursively.

52
Q

Move or rename files or directories.

53
Q

Copy files or directories.

54
Q

Terminal based text editor.

55
Q

Returns the path to a file or link.

56
Q

Searches for files in a directory hierarchy.

57
Q

Updates the locale database for existing contents on the system.

58
Q

Uses the locale database to find contents on the system.

59
Q

Pager that is used to read STDOUT or files.

60
Q

An alternative to more with more features.

61
Q

Prints the first ten lines of STDOUT or a file.

62
Q

Prints the last ten lines of STDOUT or a file.

63
Q

Sorts the contents of STDOUT or a file.

64
Q

Searches for specific results that contain given patterns.

65
Q

Removes sections from each line of files.

66
Q

Replaces certain characters.

67
Q

Command-line based utility that formats its input into multiple columns.

68
Q

Pattern scanning and processing language.

69
Q

A stream editor for filtering and transforming text.

70
Q

Prints newline, word, and byte counts for a given input.

71
Q

Changes permission of a file or directory.

72
Q

Changes the owner and group of a file or directory.

73
Q

Go back to the previous directory.

74
Q

Simplest way to go to the users Home directory.

75
Q

Way to go to the users Home directory using a special character.

76
Q

Way to go to the users Home directory by using an environment variable.