CS 351 Laboratory 2

Due session 9


    1. Purpose: to use advanced unix utilities

    2. Equipment: system w/unix

    3. Procedure:

    a. Download or get from the instructor the two files(filea and fileb).

    b. If you have access to a unix system with crypt, decrypt the file, Fileax is encrypted. The password is "1234". Decrypt it and save as filea. Download the crypt.zip file and run it from the command line in Windows.

    c. "filebx" is uuencoded. Decode it and call it "fileb".

    d. Using the "diff" utility, print the difference between the files.

    e. Using the ping command, ping saltmine.radix.net and explain the uses of ping. Ping some other places, ie aol.com, park.edu, etc. Explain the switches for ping.

    f. Use the finger command. Discuss how it could be useful.

    g. Write a shell program called sum that adds two numbers and displays their sum.

    h. Write a shell program called "whereami". When executed, it will display the user's name, the name of the machine the user is on, what directory user is in, the files in the directory.

    i. Write a shell program that will locate a file anywhere in a users directory.

    j. Write half page report on the advantages and disadvantages of unix. Use nroff formatting. That is, the report will be displayed using nroff.

    k. Use uname to determine the name of your machine. Send the instructor a mail message.

    l. Write the statement(s) to search a subtree and delete every file whose name matches a specified pattern.

    m. Explain what mime is.

    n. Explain what NFS refers to.

    m. Write a script file to use with the sed command to change Burma to Mynamar in all files you have. What is the sed command? Try this on your system.

    o. Explain the tar and cpio commands.