Useful command reference's Flashcards

1
Q

man <tool></tool>

A

Opens man pages for the specified tool.

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

<tool> -h
</tool>

A

Prints the help page of the tool.

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

apropos <keyword></keyword>

A

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

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

cat

A

Concatenate and print files.

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

whoami

A

Displays current username.

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

id

A

Returns users identity.

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

hostname

A

Sets or prints the name of the current host system.

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

uname

A

Prints operating system name.

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

pwd

A

Returns working directory name.

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

ifconfig

A

The ifconfig utility is used to assign or view an address to a network interface and/or configure network interface parameters.

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

ip

A

Ip is a utility to show or manipulate routing, network devices, interfaces, and tunnels.

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

netstat

A

Shows network status.

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

ss

A

Another utility to investigate sockets.

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

ps

A

Shows process status.

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

who

A

Displays who is logged in.

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

env

A

Prints environment or sets and executes a command.

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

lsblk

A

Lists block devices.

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

lsusb

A

Lists USB devices.

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

lsof

A

Lists opened files.

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

lspci

A

Lists PCI devices.

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

sudo

A

Execute command as a different user.

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

su

A

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

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

useradd

A

Creates a new user or update default new user information.

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

userdel

A

Deletes a user account and related files.

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

usermod

A

Modifies a user account.

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

addgroup

A

Adds a group to the system.

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

delgroup

A

Removes a group from the system.

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

passwd

A

Changes user password.

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

dpkg

A

Install, remove and configure Debian-based packages.

30
Q

apt

A

High-level package management command-line utility.

31
Q

aptitude

A

Alternative to apt.

32
Q

snap

A

Install, remove and configure snap packages.

33
Q

gem

A

Standard package manager for Ruby.

34
Q

pip

A

Standard package manager for Python.

35
Q

git

A

Revision control system command-line utility.

36
Q

systemctl

A

Command-line based service and systemd control manager.

37
Q

ps

A

Prints a snapshot of the current processes.

38
Q

journalctl

A

Query the systemd journal.

39
Q

kill

A

Sends a signal to a process.

40
Q

bg

A

Puts a process into background.

41
Q

jobs

A

Lists all processes that are running in the background.

42
Q

fg

A

Puts a process into the foreground.

43
Q

curl

A

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

44
Q

wget

A

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

45
Q

python3 -m http.server

A

Starts a Python3 web server on TCP port 8000.

46
Q

ls

A

Lists directory contents.

47
Q

cd

A

Changes the directory.

48
Q

clear

A

Clears the terminal.

49
Q

touch

A

Creates an empty file.

50
Q

mkdir

A

Creates a directory.

51
Q

tree

A

Lists the contents of a directory recursively.

52
Q

mv

A

Move or rename files or directories.

53
Q

cp

A

Copy files or directories.

54
Q

nano

A

Terminal based text editor.

55
Q

which

A

Returns the path to a file or link.

56
Q

find

A

Searches for files in a directory hierarchy.

57
Q

updatedb

A

Updates the locale database for existing contents on the system.

58
Q

locate

A

Uses the locale database to find contents on the system.

59
Q

more

A

Pager that is used to read STDOUT or files.

60
Q

less

A

An alternative to more with more features.

61
Q

head

A

Prints the first ten lines of STDOUT or a file.

62
Q

tail

A

Prints the last ten lines of STDOUT or a file.

63
Q

sort

A

Sorts the contents of STDOUT or a file.

64
Q

grep

A

Searches for specific results that contain given patterns.

65
Q

cut

A

Removes sections from each line of files.

66
Q

tr

A

Replaces certain characters.

67
Q

column

A

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

68
Q

awk

A

Pattern scanning and processing language.

69
Q

sed

A

A stream editor for filtering and transforming text.

70
Q

wc

A

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

71
Q

chmod

A

Changes permission of a file or directory.

72
Q

chown

A

Changes the owner and group of a file or directory.