ITU UNIX Operating System

ITU UNIX Operating System

<p> ITU – UNIX Operating System Assignment #2</p><p>UNIX UTILITIES</p><p>1. Write a command to determine who is logged in on a specific terminal.</p><p>2. List some differences between pine and write. Describe a situation where it makes sense to use:</p><p> a) pine instead of write b) write instead of pine</p><p>3. Make a new copy of mars.txt called marsx. What happens if you give the following commands when the files bio and marsx both already exist? Don't guess, try it!</p><p> a) cp bio marsx b) mv bio marsx</p><p>4. Write a command to determine which utilities are available on your system for editing files. Is the command sed among them?</p><p>5. Write a command to determine whether the name “bob” is in the file “Addresses.”</p><p>6. Write a command to display the entire file “Addresses” in alphabetical order. </p><p>7. Use gzip to compress your bio file, and then compress a text file called “food.” What happens if you use diff to compare these two binary files that are not identical? When you are done, uncompress the two files.</p><p>8. Use man to determine what the grep command does for you. Report on your results.</p><p>9. The date command comes with an ability to format the output in different ways. Determined and explain the result of the following commands: date "+%D" date "+%H" date "+%D %H" date "+%b %B"</p><p>10. The echo command can be used with back quotes (under the ~ Character in upper left corner of keyboard). Determine and explain the result of the following commands: echo date echo `date` (notice both are ` -- back-quotes, not ' --single quotes) echo dats is `date` echo `$$$`</p><p>11. Determine and explain the result of the following commands: date ; who ( can you guess the effect of ";" here?) date; date "+%D" who ; whoami cal 2005; date</p>

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    2 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us