Exercises



next up previous contents
Next: Editors Up: Commands I Previous: clear: Clear the

Exercises

  1. How do you give option(s) to a command
  2. You would like to change your password. How do you do it Change it to my pssd. Logout, then log back in to make sure it worked. Change it back to something only you know.
  3. You would like to use the rm command, but do not know how to use it. You do not have system manuals close by. What command can you use to get help Try it.
  4. Now that you know how to move within the directory structure of your system, go and see where the dictionary resides. Which directory is it in How big is the words file Who owns it
  5. How do you find out which directory you are currently in Issue the command and see what happens.
  6. Assume you are lost. How do you return to your home directory Assuming you don't remember the full pathname of your home directory, how can you get there
  7. In your account, create a new directory, called temp.dir. Copy the two files /etc/hosts and /etc/fstab into it as hosts and fstab respectively.
  8. Again from your home directory, create a second directory, called temp2.dir. Copy the content of temp.dir into it.
  9. Remove the entire temp.dir and temp2.dir.
  10. You have a file called list.names in your directory. How can you find out the last time you wrote to that file
  11. Everyone has files beginning with a dot (.). These are called hidden files. How can you list them
  12. Create a file called myfile, with length zero.
  13. Now rename myfile to hisfile.
  14. Do a long listing of all files in the /bin directory and place it into file hisfile.
  15. How can you look at the content of the file, one screenful at a time
  16. You want to see the first twenty lines of that file. Which command is used Do it.
  17. How about the last fifteen lines
  18. Who is logged on to the system at the moment
  19. You want to communicate interactively with one of those users. Which commands could you use


next up previous contents
Next: Editors Up: Commands I Previous: clear: Clear the



Super-User
Fri Feb 17 15:55:40 EST 1995