Exercises
Next: Editors
Up: Commands I
Previous: clear: Clear the
- How do you give option(s) to a command
- 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.
- 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.
- 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
- How do you find out which directory you are currently in
Issue the command and see what happens.
- 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
- 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.
- Again from your home directory, create a second directory,
called temp2.dir.
Copy the content of temp.dir into it.
- Remove the entire temp.dir and temp2.dir.
- You have a file called list.names in your directory.
How can you find out the last time you wrote to that file
- Everyone has files beginning with a dot (.).
These are called hidden files.
How can you list them
- Create a file called myfile, with length zero.
- Now rename myfile to hisfile.
- Do a long listing of all files in the /bin directory and place
it into file hisfile.
- How can you look at the content of the file, one screenful at a time
- You want to see the first twenty lines of that file.
Which command is used
Do it.
- How about the last fifteen lines
- Who is logged on to the system at the moment
- You want to communicate interactively with one of those users.
Which commands could you use
Next: Editors
Up: Commands I
Previous: clear: Clear the
Super-User
Fri Feb 17 15:55:40 EST 1995