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
usermod
Modifies a user account.
26
addgroup
Adds a group to the system.
27
delgroup
Removes a group from the system.
28
passwd
Changes user password.
29
dpkg
Install, remove and configure Debian-based packages.
30
apt
High-level package management command-line utility.
31
aptitude
Alternative to apt.
32
snap
Install, remove and configure snap packages.
33
gem
Standard package manager for Ruby.
34
pip
Standard package manager for Python.
35
git
Revision control system command-line utility.
36
systemctl
Command-line based service and systemd control manager.
37
ps
Prints a snapshot of the current processes.
38
journalctl
Query the systemd journal.
39
kill
Sends a signal to a process.
40
bg
Puts a process into background.
41
jobs
Lists all processes that are running in the background.
42
fg
Puts a process into the foreground.
43
curl
Command-line utility to transfer data from or to a server.
44
wget
An alternative to curl that downloads files from FTP or HTTP(s) server.
45
python3 -m http.server
Starts a Python3 web server on TCP port 8000.
46
ls
Lists directory contents.
47
cd
Changes the directory.
48
clear
Clears the terminal.
49
touch
Creates an empty file.
50
mkdir
Creates a directory.
51
tree
Lists the contents of a directory recursively.
52
mv
Move or rename files or directories.
53
cp
Copy files or directories.
54
nano
Terminal based text editor.
55
which
Returns the path to a file or link.
56
find
Searches for files in a directory hierarchy.
57
updatedb
Updates the locale database for existing contents on the system.
58
locate
Uses the locale database to find contents on the system.
59
more
Pager that is used to read STDOUT or files.
60
less
An alternative to more with more features.
61
head
Prints the first ten lines of STDOUT or a file.
62
tail
Prints the last ten lines of STDOUT or a file.
63
sort
Sorts the contents of STDOUT or a file.
64
grep
Searches for specific results that contain given patterns.
65
cut
Removes sections from each line of files.
66
tr
Replaces certain characters.
67
column
Command-line based utility that formats its input into multiple columns.
68
awk
Pattern scanning and processing language.
69
sed
A stream editor for filtering and transforming text.
70
wc
Prints newline, word, and byte counts for a given input.
71
chmod
Changes permission of a file or directory.
72
chown
Changes the owner and group of a file or directory.