Linux commands Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

How to view ip address and related information?

A

ifconfig or ip a

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

How to view wireless informtion?

A

iwconfig

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

How to view IP addresses a machine is talking to, on what port and the MAC addresses?

A

arp -a or ip n

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

How to show active connections on a machine?

A

netstat

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

How to show routing table and what is it?

A

route or ip r; shows where traffic exits - need to know where to attack

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

How to create new file with content?

A

echo ‘hey’ > text.txt

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

How to append text at the end of a text file?

A

echo ‘bye’&raquo_space; text.txt

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

How to print contents of a file to the console?

A

cat content.txt

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

How to create a new file without writing anything to it?

A

touch newfile.txt

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

How to create new file and open it in in-console text editor?

A

nano newfile.txt

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

How to use external note editor?

A

geddit newfile.txt

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