service command service ssh start service ssh stop the service command is a wrapper for the system init scripts in the /etc/init.d directory You can use the init scripts directly: /etc/init.d/ssh start /etc/init.d/ssh stop systemmd / systemctl Many linux distros now use systemmd as an init system manager. Kali usees it. To start a service controlled by systemmd: systemctl start ssh.service (you don't need the .service) systemctl restart ssh systemctl can also be used to enable the service to start at boot: systemctl enable ctl systemctl status ssh tells you the status of Continue Reading
Finding files
Locate Locate searches a database (index) of all the files on the local system. You must update this database using the command: updatedb before running locate Example: updatedb locate shadow.bak Locate, by default, assumes a wildcard string. E.g. if you search for passwd, it actually looks for *passwd*. if you want it to just search for the whole word then use: locate '/passwd'. This will still find passwd.1 and passwd.2 but won't find this_file_has_passwd_ entries.txt for example. Which The which command searches only the directories defined in the $PATH environment Continue Reading
ACLs
ACL - Access Control List Continue Reading
File Permissions
r = READ (View the file/directory) w = WRITE (Change/modify the file/directory) x = EXECUTE (Run code/program or enter directory) rwx = 7 rw- = 6 r-x = 5 r-- = 4 --- = 0 Each group of 3 permissions is in the following order: user:group:others Common Permissions 777 = rwxrwxrwx 770 = rwxrwx--- 755 = rwxr-xr-x 700 = rwx------ 666 = rw-rw-rw 644 = rw-r--r-- 600 = rw------- The numbers stand for 1 or 0 in each group of 3. E.g. 6 in binary is 110 = rw but no x. The first character is either a hyphen or a 'd.' A hyphen denotes a regular file, while a 'd' denotes a Continue Reading