Exercise Chapter 3 - Linux Fundamentals

Exercise 1, Chapter 3 - Exploring devices
  1. Use the file command to inspect some devices exported by the kernel in /dev/. Try /dev/sda* and /dev/snd/*.

Exercise 2, Chapter 3 - Job control
  1. Run ping -i 10 localhost & in a terminal.
  2. Next, run ping -i 10 & in a terminal.
  3. List the backgrounded jobs.
  4. Kill the “localhost” ping process.
  5. Now kill the “" process.

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?

Exercise 4, Chapter 3 - Enumerating your hardware

Using lspci, dmesg, and any other logging utilities, discover the following about your Kali host:

  1. Type of CPU on your Kali host.
  2. Type, make and model of Ethernet adapter
  3. Type, make and model Graphics card
  4. Version of the running kernel.
  5. Free memory
  6. Free disk space

Exercise 5, Chapter 3 - Working with hardware
  1. Plug in your USB drive into your Kali instance.
  2. Determine the device name attached to it.
  3. Plug in your Wireless USB card into your Kali instance.
  4. Determine the chipset and model of the wireless card.

Food for thought
  1. What type of device is /dev/urandom ?
  2. Where can you find configuration files for services?