functionsys | Advanced Penetration Testing | Module 1 - Linux

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