Exercise 3-3: Searching [in/for] files

Exercise 3, Chapter 3 – Searching [in/for] files
  1. Try out the dmesg command which prints the message buffer of the kernel. The output of this command typically contains the messages produced by the device drivers.
  2. Use the find command to find the file named rockyou.txt.gz on the filesystem.
  3. Use the locate command to find the file named rockyou.txt.gz on the filesystem
  4. Which completed faster: find or locate? Why?
  5. Can you figure out how to “time” the commands to figure out the actual amount of time it takes for the commands to complete?

Please note that if you are having trouble with basic Linux commands and concepts, you should strongly consider taking a free Linux course (like this one) before continuing your Kali training. Remember, Kali Linux in not for Linux beginners!