Prerequisites

Figure 987. Shell / Bash Slide presentation

Bash Guide for Beginners


Figure 988. Choosing a text editor Slide presentation

Figure 989. Secure Shell Slide presentation

The definitive guide, also available at SafariOnline

  • Public/private keys, pass phrases

  • Trusted hosts

  • Port forwarding

  • X11 forwarding

  • ssh agent


Figure 990. Working with files Slide presentation

Figure 991. Network Slide presentation

Figure 992. Processes handling Slide presentation

exercise No. 9

Enabling index based file search

Q:

  • Install the plocate package.

  • Index your current file system using the updatedb command

  • Use the locate aptitude command to search for filenames containing the string »aptitude«.

  • Create a new file mylocaltest.txt.

  • Use locate localtest. What do you observe?

  • Rebuild the index and search for localtest again.

  • Delete mylocaltest.txt.

  • Search for localtest again.

A:

  1. The first locate localtest call fails since the mylocaltest.txt file is not part of the index yet.

  2. After rebuilding it will be found.

  3. Upon deletion mylocaltest.txt is still present in the previously built index and will thus erroneously be »found«.

exercise No. 10

Using the tail -f command

Q:

  • Login to your VM

  • Issue tail -f /var/log/auth.log.

  • Ask your partner to log into the same VM and watch for incoming changes.