Command Line Fundamentals
can not survive without knowing these basic commands
print working directory ; where am I ?
pwdwhich user i am currently logged in with
whoamichange directory
cdgo up one directory / go back one directory
cd .. jump to home dir
cd ~ go to last directory
cd - [ concept of absolute path and relative path ]
ls
ls /etc/
ls kali/sharksecurity
mkdir security
to delete recursively
create a file named as hi.txt and put contents inside quotes inside it
mv used to rename files as well
is c opy paste
is cut paste
shark.txt looks / search eerywhere for specific file name
to change password by default of logged in users
passwd shark tochange passwrd of shark nameduser account
to read file contents ; cat means to concat
Linux file permissions
r ->4 w-> 2 x->1
to add new user named shark
Import files :
does not stores password ; only stores users n account information
stores password in hasehd format look into details of both files
Last updated
Was this helpful?