Kali Flashcards
How do I change my password in the terminal?
passwd
What is FHS?
Filesystem Hierarchy Standard
What is in the /bin path?
Basic programs ls, cd, cat, etc.
What is in the /sbin path?
System programs (fdisk, mkfs, sysctl, etc)
What is in the /etc path?
Configuration files
What is in the /tmp path?
Temporary files (typically deleted on boot)
What is in the /usr/bin path?
Applications (apt, ncat, nmap, etc.)
What is in the /usr/share path?
Application support and data files
What is the apropos command used for?
With the apropos command, we can search the list of man page descriptions for a possible
match based on a keyword.
How to create multiple directories?
mkdir -p test/{dir1,dir2,dir3}
Which command
Searches through the directories that are defined in the $PATH environment variable for a given file name. This variable contains a listing of directories that Kali searches when a command is issued without its path.
Locate command
The locate command is the quickest way to find the locations of files and directories in Kali. In
order to provide a much shorter search time, locate searches a built-in database named
locate.db rather than the entire hard disk itself. This database is automatically updated on a
regular basis by the cron scheduler. To manually update the locate.db database, you can use the
updatedb command.
Find command
The find command is the most complex and flexible search tool among the three. Mastering its
syntax can sometimes be tricky, but its capabilities go beyond a normal file search. The main advantage of find over locate is that it can search for files and directories by more than just the name. With find, we can search by file age, size, owner, file type, timestamp, permissions, and more.
How to look at the man page for one of your preferred commands?
man command
How to look for a keyword related to file compression in man?
man -k “file compression”
How to use which to locate the pwd command?
which pwd
How to use locate to locate wce32.exe?
locate wce32.exe
How to use find to identify any file (not directory) modified in the last day, NOT owned by the root
user and execute ls -l on them. Chaining/piping commands is NOT allowed!
find . -user kali -type f -mtime -1 -exec dirname {} \; sort –unique