< All Advanced Penetration Testing Notes

atif | Advanced Penetration Testing | Module 1 - Linux

By: atif | Related Course: Advanced Penetration Testing | Published: September 6, 2017 | Modified: September 9, 2017
Join Cybrary

NotepadLinux commands

man pwd
man ls


touch myfile – create new file
cp /home/georgia/myfile /home/georgia/mydir/myfile
mv myfile myfile2 change filename from myfile to myfile2
rm myfile remove the file
echo hi georgia
echo hi georgia > myfile
man cat
echo hi georgia > myfile -overwrites to file
echo hi georgia >>myfile – append to the file


chmod +x myfile
cat myfile
cat myfile | grep : grep looks for a pattern

cat myfile | grep atif this will find atif in the file and display the line

cat myfile | cut -d ” ” -f 1

cat myfile | grep B | cut -d ” ” f 2

cat myfile | grep B | cut -d ” ” f 2 > myfile2




nano etc/network/interfaces
service networking restart


cron – automate tasks
ls | grep cron

service cron restart

< All Advanced Penetration Testing Notes
Join Cybrary

Our Revolution

We believe Cyber Security training should accessible for everyone, everywhere. Everyone deserves the OPPORTUNITY to learn, begin and grow a career in this fascinating field. Therefore, Cybrary is the world's largest community where people, companies and training come together to give everyone the ability to collaborate in an open source way that is revolutionizing the cyber security educational experience.

We recommend always using caution when following any link

Are you sure you want to continue?