Professional Documents
Culture Documents
KL
KL
Lesson 1:
- Taking notes
*take notes with alot of child pathes
*always screenshot
*Be orgenized
- Linux
Navigation Commands:
*passwd - change password
*ls = list directory (Can point at any point on the machine) (-la a flag
that lists all + premissions and hidden files)
*pwd - print working directory - check where I am at
*cd - change directory (Can adress at any point on the machine)
*mkdir - make directroy
*rmdir - remove a directory
*rm - remove files
*echo sends data (if not destenation is given the echo will print the data to
the terminal)
*cp - copy a file (source] [destanation])
*mv - move a file ([source] [destanation])
*locate - locate a file (locate [filename] )
*updatedb - updates the directory database (must run this before running
locate)
*man - manual page of any command
*grep - search for the following words ( can be used to check if a file
contains specific info)
Network Commands:
*ifconfig - print network information
*iwconfig - wireless networkj information
*ping - ping an ip adress (-c flag lets you say how much times you want to
ping a machine)
*arp -a - send out an arp request to check for machines on the network
*netstat -a - shows all open ports and what is connected to those ports
*route - shows a routing table
Webserver Commands:
*service apache2 start - start a webserver
*service ssh start - start an ssh server
*service postgresql start - a service that starts with metasploit
*service apache2 stop - stops the webserver
*systemctl enable [program name] - start the service when the machine turns
on