Command line tools (Linux) Flashcards

(36 cards)

1
Q

ls

A

Lists files and directories

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

pwd

A

Displays the current working directory

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

mv

A

Moves or renames files and directories

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

cp

A

Copies files and directories

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

rm

A

Deletes files or directories

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

chmod

A

Changes files or folder permissions

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

chown

A

Changes file/folder ownership

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

grep

A

Searches text using patterns

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

find

A

Searches for files/directories

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

fsck

A

Checks and repairs the filesystem / storage device (like “chkdsk” in Windows)

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

mount

A

Attaches a filesystem or device to the directory tree

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

su

A

Switches to another user account (often root)

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

sudo

A

Runs a command as another user, usually root (with permissions)

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

apt

A

Installs, updates, or removes packages (Debian-based systems like Ubuntu)

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

dnf

A

Manages packages on RPM-based systems like Fedora and RHEL

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

ip

A

Displays and configures network interfaces and routing

17
Q

ping

A

Tests network connectivity

18
Q

curl

A

Retrieves data from a URL (web/server requests)

19
Q

dig

A

Queries DNS records (like “nslookup” in Linux)

20
Q

traceroute

A

Shows the path packets take to a destination

21
Q

man

A

Displays the manual for a command (help)

22
Q

cat

A

Displays the contents of a file

23
Q

top

A

Shows running processes and system resource usage

24
Q

ps

A

Displays current running processes

25
du
Shows disk space used by files/directories
26
df
Shows free and used disk space by filesystem
27
nano
Simple terminal-based text editor
28
/etc/passwd
Stores basic user account info (usernames, UID, home dir)
29
/etc/shadow
Stores encrypted user passwords
30
/etc/hosts
Maps hostnames to IP addresses locally
31
/etc/fstab
Defines how filesystems are mounted at boot
32
/etc/resolv.conf
Defines DNS servers for the system
33
systemd
Initializes the system and manages services after boot
34
kernel
The core of the operating system: manages hardware and system processes
35
bootloader
Loads the OS kernel at startup (e.g. GRUB)
36
(root)
The "superuser" account with full control over the system