1. Home
  2. Computing & Technology
  3. Linux

Tutorial: The Shell

6. Conclusion and Exercises

By Juergen Haas, About.com

This is the power of Linux and UNIX command lines. There is much more to learn, as there are different shells, and different shell syntaxes available. Also, regular expressions are useful, and there are plenty more utilities available, and if a liking towards the shell is taken, shell scripts can be written to perform a lot of tasks, including backing up directories and more!

Exercises

1. Open up a shell on your Desktop and perform the following:

  • find the name of the directory you are in
  • list out the contents of the current directory
  • list out the contents of the directory /usr/bin
  • check the current date and time

2. Change directory to your home directory and make a new sub-directory there named Temp11 and change directory to it

  • copy the following files from the /etc directory to the directory Temp11: services, motd, fstab, hosts
  • concatenate the files copied above into one single file called file1
  • count the number of lines present in the file file1
  • delete the four files listed above in the directory Temp11

---------------------------------------
You are reading
Tutorial: The Shell
1. Getting to a shell
2. Some useful commands
3. A Few More Concepts and Shortcuts
4. Input/output Redirection and Pipes
5. Where do I get help?
6. Conclusion and Exercises

| Previous Tutorial | Lists of Tutorials | Next Tutorial |

Explore Linux

More from About.com

  1. Home
  2. Computing & Technology
  3. Linux

©2008 About.com, a part of The New York Times Company.

All rights reserved.