Kali Study Notes

Posted byTodd M Fletcher Posted on10 Jul 2019 Comments0
a hand holding kali linux sticker in close up photography

Terminal is Bash
Trailing $ = normal user
Trailing # = super user

Commands:
pwd = print working directory
cd = change directory
cd – = return to previous directory
.. = parent directory
. = current directory
ls = list contents
mkdir = new directory
rmdir = remove directory
mv = move, rename files & directory
rm = remove file
cp = copy
echo $PATH = see content of PATH environmental variable
which = location of executable
type = what kind of command or see location (i’d run this one instead of which)

Environmental Variables:
-system wide = /etc/profile
-per user = ~/.profile
-non-specific = /etc/enviornment

Locations:
/bin/  basic programs
/boot/  kali linux kernel
/dev/  device files
/etc/  configuration files
/home/  user’s personal files
/lib/  basic libraries
/media/*  mount points for removable media
/mnt/  temporary mount point
/opt/  extra apps from 3rd parties
/root/  administrators (roots) personal files
/run/  volitile runtime data
/sbin/  system variables
/srv/  data used by servers
/tmp/  temp files
/usr/
/var/  variable data
/proc/  &  /sys/  used by kernel

~  refers to the home directory. stored in HOME var. (echo $HOME does same)

cat – dumps file contents to window
find
grep

Category

Leave a Reply