Linux Commands Flashcards

1
Q

View a list of directories on the computer.

A

LS

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

Search for a pattern of text in files and display the results. This command helps you find files with specific words or phrases.

A

grep

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

Show the directory you’re currently in (the working directory). Not to be confused with passwd.

A

pwd

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

Change from one directory to another.

A

cd

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

Move a file to a specific directory.

A

mv

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

Copy a file.

A

cp

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

Delete (remove) a file or directory.

A

rm

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

Change the owner of a particular file or directory.

A

chown

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

Modify file permissions.

A

chmod

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

Shut down the system.

A

shutdown

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

Change the password for a user account.

A

passwd

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

Display information about your wireless network adapters and addressing configuration.

A

iwconfig

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

Display information about your wired network adapters and addressing configuration.

A

ifconfig

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

Display the running system processes. You can use this to troubleshoot system problems.

A

ps

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

Send a signal to end a process or modify its behavior. You can use this to stop malfunctioning programs, or restart system daemons.

A

kill

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

Login as a superuser from your current login.

A

su

17
Q

Execute a command as another user. You can use sudo to execute a command as a user with higher privileges, such as the root user.

A

sudo

18
Q

Updating, upgrading, or installing packages.

A

Apt-get

19
Q

Edit text files.

A

vi

20
Q

Convert and copy a file.

A

dd

21
Q

Clear the Terminal screen.

A

clear