Linux exercise 5 - Editors and utilities

  1. Create the tar archive from dir2 directory created in previous exercise (Linux exercise 4 - Basic commands) and compress it using gzip.
  2. Open one of the files you have created earlier with text editor of your choice. Add text to the file and save it with different name.
  3. Open some file using less command. Find out how search feature works in less command.
  4. Download and extract the Apache web server package: Apache web server.
  5. Use Vim editor in this task. Open CHANGES file from extracted Apache web server directory and add this line to the beginning of the file:
    • ====== This file has been edited in current_date ======
    • Save the file and print first 18 lines of the file to the command line.
  6. Open Kernel log file (/var/log/kern.log) using tail command so that new log lines are listed in real-time.
  7. Examine curl program parameter through help feature. Download Funet network's wiki page https://fi.wikipedia.org/wiki/Funet and save the content of the page to the file (Write to file) called funetpage.html. Add screenshot presenting part of this file's content.
  8. In this task curl command will be used to connect to remote servers:
    a) README file is located in the server http://ftp.funet.fi. How do you open this file using curl command so that you can view it page by page (hint: utilize other commands with curl)?
    b) How do you list the content of remote server's folder ftp://ftp.gnu.org/? What files are included in listing?