Linux Commands Flashcards

(15 cards)

1
Q

What does ‘ls’ do?

A

Lists directory contents.

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

What does ‘cd’ do?

A

Changes the current directory.

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

What does ‘pwd’ display?

A

Shows the current working directory path.

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

What does ‘cp’ do?

A

Copies files or directories.

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

What does ‘mv’ do?

A

Moves or renames files or directories.

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

What does ‘rm’ do?

A

Deletes files or directories.

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

What does ‘chmod’ do?

A

Changes file or directory permissions.

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

What does ‘chown’ do?

A

Changes file or directory ownership.

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

What does ‘sudo’ do?

A

Executes a command with elevated (root) privileges.

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

What does ‘apt-get update’ do?

A

Updates package lists from repositories.

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

What does ‘apt-get upgrade’ do?

A

Upgrades all upgradable installed packages.

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

What does ‘df -h’ show?

A

Displays disk space usage in human-readable format.

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

What does ‘top’ do?

A

Displays running processes and system resource usage.

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

What does ‘ps aux’ show?

A

Lists all running processes on the system.

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

What does ‘grep’ do?

A

Searches text or output for matching patterns.

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