Part 1

  1. Use help to find out what compilers are available on linux.ox.ac.uk and to discover how to use the Fortran NAG library.
  2. Use man more to find out how to get help whilst running the more program (hint : whilst in man pages or more you can search by pressing / and typing a search string such as 'help'). Use the help command inside more to find out how to scroll backwards.
  3. Find out who is logged in and send someone (choose one of the people on the course, with usernames from unix01-unix50):
    1. a message typed interactively within mail
    2. a message from a file
  4. Display an alphabetically sorted list of users currently logged in (pipe the result through more to see each screen at a time). Repeat again but this time create a file of the output called users_today.
  5. Create a new file called poem which consists of all the verses currently stored in separate files. Check the spelling of this file. Comment on the effectiveness of spell. One of spell's options is invoked with the -b qualifier. Try this. What does it do?
  6. The filter wc has an option invoked by using -l. Try this interactively with who and on the file users_today. How many people are currently logged in?
  7. All users are listed in a file called /etc/passwd. How many are there?
  8. Find the palindromes in /usr/dict/words.
  9. For everyone currently logged in, print out which port and at what time they logged in.
  10. List the files in /var/spool/mail in order of owner's username. Pipe the output through more.
  11. Use cal to print out the calendar for July 1996. Create a text file of the calendar for the whole year.
  12. Create a simple text file called staff with about 5 lines, each one containing a record of a person's surname, initial, department, extension number. Separate each of the fields with a colon. Use awk to extract the surname and phone number to a file called phone_nos without the colons.