Linux commands Flashcards
How to view ip address and related information?
ifconfig or ip a
How to view wireless informtion?
iwconfig
How to view IP addresses a machine is talking to, on what port and the MAC addresses?
arp -a or ip n
How to show active connections on a machine?
netstat
How to show routing table and what is it?
route or ip r; shows where traffic exits - need to know where to attack
How to create new file with content?
echo ‘hey’ > text.txt
How to append text at the end of a text file?
echo ‘bye’»_space; text.txt
How to print contents of a file to the console?
cat content.txt
How to create a new file without writing anything to it?
touch newfile.txt
How to create new file and open it in in-console text editor?
nano newfile.txt
How to use external note editor?
geddit newfile.txt