Linux Commands Flashcards

1
Q

ls

A

Lists directory contents.
ls -l | more - pipes more through

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/Renames a file.
mv [First Text] [Second Text]

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

cp

A

Copies a file.
cp [First Text] [Second Text]

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

rm

A

Deletes files but not directories.

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

chmod

A

Change mode of a file system object.
chmod ### Object

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

chown

A

Change file owner and group.

Sudo chown [OWNER:GROUP] Object

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

su/sudo

A

Elevates permissions.

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

apt -get

A

Handles application packages.

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

yum

A

Handles Red Hat application packages.

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

ip

A

Manage network interface
ip address
ip route

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

df

A

Disk Free. Shows file systems and free space.

df -h shows human readable sizes

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

grep

A

File text in a file.

grep PATTERN [FILE]

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

ps

A

View current user processes.

ps -e | more - shows all processes.

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

man

A

Help command.

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

top

A

View computer resource use. Linux Task Manager.

17
Q

find

A

Find a file by name or extension

18
Q

dig

A

Lookup info from DNS servers.

19
Q

cat

A

Link together files.

20
Q

nano

A

Full screen text editor.

21
Q

Backup Options

A

tar and rsync