Basic Linux Commands Flashcards

1
Q

Used for searching “text” in files

A

grep

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

Changes the current directory

A

cd

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

Changes file permissions

A

chmod

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

Changes the file owner and group

A

chown

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

Copies files

A

cp

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

Displays the contents of a directory

A

ls

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

Creates a directory

A

mkdir

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

Renames a file and moves the file from one directory to another

A

mv

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

Delete files

A

rm

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

Displays the current directory

A

pwd

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

Copies blocks of data from one file to another. Used to copy data from devices

A

dd

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

Searches for regular expressions in a text file

A

grep

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

Download files from a repository site

A

apt-get

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

Shuts down Linux

A

shutdown

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

Starts the visual file editor, which can be used to edit files

A

vi

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

Changes the password

A

passwd

17
Q

Starts a new shell as another user

A

su (root directory if not used with any other argument)

18
Q

Runs a command as another user (usually the root user)

A

sudu

19
Q

Allows you to display and configure info related to the network interface card (NIC)

A

ifconfig

20
Q

Same as ifconfig, except used for wireless

A

iwconfig

21
Q

Quit command

A

q

22
Q

Displays a list of the current running processes

A

ps

23
Q

Terminates a process

A

kill

24
Q

Command to change to root (superuser) in order to administer a system

A

su -