< All Advanced Penetration Testing Notes

morgan0711 | Advanced Penetration Testing | Module 1 - Linux

By: morgan0711 | Related Course: Advanced Penetration Testing | Published: September 20, 2017 | Modified: September 20, 2017
Join Cybrary

NotepadModule 1 Kali Linux Commands

Commands

pwd(Print Working Directory) 

man(Manual)- options for a command 

Example

man pwd

man ls (-list directory content)

 ls  / [/=Root]

ls add – a etc. then / -shows hidden files

Change directory- cd 

cd /

cd ..[..= parent]

adduser 

Make general user have root privledges

adduser georgia sudo

 

 

 

 


NotepadModule 1 Linus Directories, myfile, and Nano

Creating file 

touch myfile

mkdir (Make Directory)

Move file

mv(move)

mv myfile myfile2 -change name

Copy File

cp(Copy of file) 

cp ../myfile . (Copy file and move it back) or

cp /home/georgia/myfile . or

cp /home/georgia/myfile /home/georgia/mydirectory/myfile

Remove File

rm(Remove File)

rm myfile2 -erases file

Enter Txt into File

echo hi hello > myfile

cat(Concatenate files)

cat myfile(See whats in file)

echo hi hello >> myfile (will keep existing txt too)

Nano

nano myfile -(Txt editor )[^=control key]

 

 

 

 

 


NotepadModule 1 Linux chmod, manipulation and Packages

chmod– change privileges 

(Change Mod) integers 0-7

0. no permission 1. execute 2. write  3.write/execute  4. read 5. read/ execute 6. read/write 7. full permission

ls -l – bring up permissions owner group everyone else

chmod 750 myfile  7-owner 5-group everyone else

Manipulation – shows certain pars of file

cat myfile | grep B- lines with B

cat myfile | cut -d ” ” -f 1 – first words through lines down

cat myfile | grep B | cut -d ” ” -f 1 -combine to show second words down with letter B in it


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

Continue
Cancel