Linux Commands Flashcards

1
Q

how do you ask for help in linux?

A

man

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

how do you list the directory?

A

ls

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

how can you create long output?

A

pipe it. ex: ls -l | more

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

how can you show what the current directory you’re working in is?

A

pwd

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

how do you rename a file?

A

mv

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

what is the syntax for a mv command?

A

mv SOURCE DESTINATION

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

how do you create duplicate files or directories?

A

cp

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

what is the syntax for cp command?

A

cp SOURCE DESTINATION

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

how do you remove a file?

A

rm if the directory is not empty is must be removed with -r

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

how do you change the mode of a file system object?

A

chmod

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

what is the administrator command?

A

sudo

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

how do you install or uninstall a package?

A

apt-get

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

what is an example of a command if you wanted to install a package called wireshark?

A

apt-get install wireshark

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

what is the install or uninstall command on a red hat distribution of linux?

A

yum

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

whats the command for managing the network?

A

ip

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

how do you view an interface address?

A

ip address

17
Q

how do you view the ip routing table?

A

view the ip routing table

18
Q

how do you configure the ip address of an interface?

A

sudo ip address add 192.168.131.241/24 dev eth0

19
Q

how can you determine how much disk space is free?

A

df to view number of blocks

20
Q

how can you view free disk space in human readable form?

A

df -h

21
Q

how can you find text in a file?

A

grep

22
Q

how can you view all the current systems running?

A

ps

23
Q

how can you view CPU and RAM utilizations?

A

top (considered the task manager for linux)

24
Q

how do you find a file by name or extension?

A

find

25
Q

how can you look up information from a DNS server

A

dig

26
Q

how do you concatenate a file?

A

cat

27
Q

what is the command for a full screen text editor?

A

nano