1. Technology
You can opt-out at any time. Please refer to our privacy policy for contact information.

Discuss in my forum

Introduction to Linux

By Machtelt Garrels

7.7.1. Shell environment

  • Print out your environment settings. Which variable may be used to store the CPU type of your machine?

  • Make a script that can say something on the lines of "hello, world." Give it appropriate permissions so it can be run. Test your script.

  • Create a directory in your home directory and move the script to the new directory. Permanently add this new directory to your search path. Test that the script can be executed without giving a path to its actual location.

  • Create subdirectories in your home directory to store various files, for instance a directory music to keep audio files, a directory documents for your notes, and so on. And use them!

  • Create a personalized prompt.

  • Display limits on resource usage. Can you change them?

  • Try to read compressed man pages without decompressing them first.

  • Make an alias lll which actually executes ls -la .

  • Why does the command tail testfile > testfile not work?

  • Mount a data CD, such as your Linux installation CD, and have a look around. Don't forget to unmount when you don't need it anymore.

  • The script from Section is not perfect. It generates errors for files that are directories. Adapt the script so that it only selects plain files for copying. Use find to make the selection. Do not forget to make the script executable before you try to run it.

* License

* Introduction to Linux Index

  1. About.com
  2. Technology
  3. Linux

©2014 About.com. All rights reserved.