1/26
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
kali > pwd
shows where you are
kali > whoami
shows which user you are logged in as
kali > cd /etc
changes directories
kali > ..
moves up one level in the file structure
kali > ls
lists the content of the directories
kali ls -l
lists content like permissions, owner, size, and modifications
kali > ls -la
shows hidden files
kali > —help
provides help for commands
kali > man
displays the man pages with a description and synopsis of the command or application
kali > locate
locates every occurrence of the word
kali > whereis
finds location, source, and man page
kali > <command> -h/-?
can also display help file
kali > which
returns the location of binaries in the PATH variable
kali > find / -type f -name apache2
finds a file in the root directory with the name apache2
kali > ps aux
displays the process running on the machine
kali > ps aux | grep apache2
displays one specific process
kali > cat > filename
hacking is the most valuable skill set of the 21st century!
creates a file with specified name and message
kali > cat » hacking skills:
Everyone should learn hacking
Adds more content to an already created file.
kali > touch newfile
creates a file
kali > mkdir newdirectory
creates a new directory
kali > cp oldfile/ root/ new directory/ Newfie
copys an old file in a new directory
kali > mv newfile newfile2
renames a file to newfile2
kali > rm newfile2
removes a file
kali > rmdir newdirectory
removes a directory
kali > rm -r newdirectory
removes the content of the new directory
Use the cat command to create a ne file and then append it
cat > new.fletxt
hello
cat » new.filetxt
how are you
cat new.filetxt
Hello
How are you?
â—ŹÂ Â Â Â Â Creatâ—ŹÂ Â Â Â Â Create a new directory named practicefolder in your home directory using mkdir.
â—ŹÂ Â Â Â Â Inside practicefolder, create a file named examplefile.
â—ŹÂ Â Â Â Â Copy examplefile into another directory (e.g., /tmp) and rename it to renamedfile.
â—ŹÂ Â Â Â Â Finally, verify that both the original and the copied files exist in their respective directories.e a new directory named practicefolder in your home directory using mkdir.
mkdir practice folder
cat > examplefile
Hello
cp examplefile /tmp/renamedfile
cat renamedfile