Linux Administration   «Prev 

Linux Command Simulation

/ere are the steps you followed in the sample simulation:
  1. You are currently logged in as user1 and are in your home directory.
    Type ls -l
    at the command line to view a listing of files in your home directory. Using simulations are just like using a real UNIX command line. You must press the Enter key on your keyboard to continue.
  2. If the simulation always told you exactly what command to type, it could get a little boring. In many simulations, you will be given directions on what to do next without being given the exact command. This is your chance to review what you have learned. Type in the command you think should work. Your next task in this simulation is to create a new, empty file named newfile.
    Go ahead. If you do not enter the correct command, you will be given a hint. Do not forget to press the Enter key after typing your command.
    Solution: touch newfile
  3. Now, delete the file.

    rm newfile
  4. Confirm your deletion.
    Solution: y
  5. Notice that you can review each step of the simulation by using the Previous and Next buttons. This is the end of the simulation. Click the Exit link to close the simulation window and continue with the course.

Command-Line Manipulation

tcsh provides functionality for manipulating the command line, including word or command completion and the ability to edit a command line.


The shell automatically completes words and commands when you press the Tab key, and notifies you when a completion is finished by appending a space to complete filenames or commands and a / to complete directories. In addition, tcsh recognizes ~ notation for home directories; it assumes that words at the beginning of a line and following
|, &, ;, ||, or &&
are commands, and modifies the search path appropriately. Completion can be done midword; only the letters to the left of the cursor are checked for completion.