< All Advanced Penetration Testing Notes

functionsys | Advanced Penetration Testing | Module 1 - Linux

By: functionsys | Related Course: Advanced Penetration Testing | Published: February 16, 2017 | Modified: February 16, 2017
Join Cybrary

Notepadlinux part 2

if you root then you preform -> rm -rf —-> delete file system !

to add user type —> adduser ali

then type password

to change user — to login with new user type

su —> ali

to back to root type exit

to add ali to root users type

addusers ali sudo

then you can have full access

but you have to type sudo first to add users with ali users


Notepadlinux part 3

to create file

touch myfile 

to make directory type


cp –> copy command

mv — to move file

rm — remove file

will create text with hi ali

echo hi ali > myfile

cat myfile —> view text

you will add 2 text no rewrite

echo hi ali >> my file

text editor

nano myfile ————-> this you can edit your file

to save control w for search

to exit control x then type y to save

vi my file —> text editor

to insert text you have to to press I

then press esc — to exit

press DD to delete line in vi editor

to save press shift the : wq — to save and quoit


< 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?