< 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

mkdir

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

 

Cybrary|0P3N

Is Linux Worth Learning in 2020?
Views: 870 / December 14, 2019
How do I Get MTA Certified?
Views: 1424 / December 12, 2019
How much does your PAM software really cost?
Views: 1861 / December 10, 2019
How Do I Get into Android Development?
Views: 2250 / December 8, 2019

We recommend always using caution when following any link

Are you sure you want to continue?

Continue
Cancel