Handling the filesystem in Kali
I could write a whole book for this section, but I will do my best to show you the commands that you're going to need in your arsenal as a penetration tester.
Before I start listing all of the commands, I would like to share a unique command-line utility that you'll need to master before starting with any of the utilities in this chapter. You can probably guess it; it's called the Help switch! This option will give you a handful of information regarding the command that you are going to execute.
For example, if you want to list the contents of a directory and you're not sure of the options for the command, all you need to do is append the --help
switch, and you can visualize all of the possible functionalities of the command:

Are you ready? This is going to be a long list (a sort of cheat sheet). Let's start:
- To list the directory and files, use the following:
ls
- To list hidden items (
-a
) in a formatted way (-l
), use the following:
ls -la
- To list files and directories...