< 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

pwd
man pwd
man ls


Notepadproc

touch myfile – create new file
mkdir
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


Notepadproc

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

sed

awk


Notepadproc

nano etc/network/interfaces
service networking restart


Notepadproc

cron – automate tasks
/etc
ls | grep cron

service cron restart


< All Advanced Penetration Testing Notes
Join Cybrary

Our Revolution

We believe Cyber Security training should be free, for everyone, FOREVER. Everyone, everywhere, deserves the OPPORTUNITY to learn, begin and grow a career in this fascinating field. Therefore, Cybrary is a free 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.

Support Cybrary

Donate Here to Get This Month's Donor Badge

 

We recommend always using caution when following any link

Are you sure you want to continue?

Continue
Cancel