Part 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.
- 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.
- Find out who is logged in and send someone (choose one of the people
on the course, with usernames from
unix01-unix50):
- a message typed interactively within mail
- a message from a file
- 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.
- 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?
- 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?
- All users are listed in a file called
/etc/passwd. How
many are there?
- Find the palindromes in
/usr/dict/words.
- For everyone currently logged in, print out which port and at what
time they logged in.
- List the files in
/var/spool/mail in order of owner's
username. Pipe the output through more.
- Use
cal to print out the calendar for July 1996. Create
a text file of the calendar for the whole year.
- 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.