Commands Flashcards

1
Q

passwd

A

Changes the password of the user’s account. Often used for updating or setting a new password.

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

pwd

A

Prints the current working directory’s path, helping users identify where they are in the filesystem.

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

faillog

A

Displays the faillog record or sets limits on the number of login failures before a user is denied access. This could be what pom_tally was aiming for, though faillog is a closer match to standard commands.

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

su

A

Switches user context to another user, optionally running a shell without changing the home directory if - is used with no username.

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

adduser or useradd

A

Adds a new user to the system. useradd is the basic command, while adduser is a more user-friendly interactive script on many distributions.

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

top

A

Displays real-time information about running processes, CPU usage, memory usage, and more.

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

ifconfig

A

Used to configure, manage, and display network interface parameters. Being replaced by ip.

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

ls -l

A

Lists directory contents in long format, showing detailed information about files and directories.

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

systemctl

A

Controls the systemd system and service manager, used for inspecting and controlling the system state.

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

ps -elf

A

Displays information about all running processes in full-format listing.

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

ls

A

Lists the contents of a directory.

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

cd

A

Changes the current directory. Used to navigate through the filesystem.

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

rm

A

Removes files or directories. Use with caution as deleted files are typically not recoverable.

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

cp

A

Copies files or directories from one location to another.

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

mv

A

Moves or renames files or directories.

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

echo

A

Displays a line of text/string that is passed as an argument. Also used to move data into files.

17
Q

grep

A

Searches for patterns within text. It is a powerful tool for searching through data and logs.

18
Q

chmod

A

Changes the file mode bits of each given file according to mode, which can be symbolic or numeric.

19
Q

chown

A

Changes the owner and/or group of each given file to a new owner and/or group.

20
Q

man

A

Displays the manual pages for other commands. It’s used to get help and understand command options.