Username:
Password:
Red Hat Certified Technician Tutorials

Prerequisite Skills / Managing Input/Output Redirection

Subtitles of the Movie

In this movie we continue on to the use of input out put redirection. By themselves commands can help you maintain a system. With redirection commands can be powerful. There are five basic ways to redirect data. You can direct the output of a command to a file. For example if you've run LS-LTAR the output scrolls by quickly. If you want to review it you can direct the output of that command to a file. The files scroll by quickly or I could direct the output of the command to a file. The second use of the redirection is to take a file and use it as a database as input to a command. For example, when I create new users I can use the new user, user less command. In this particular case I configured the user list in the same way VTC password is configured and then I can direct the contents of that file as input to the new users command and that adds those users with a password named temp pass to my password database file. You can impend output to the end of a file. For example, if you want to preserve the previous list of files you can use the LS-LTAR or Myco command and append the output to the file named file list. As you can see that first works through the files in my root directory and I've added or appended the files for my home MYCO home directory. I can forward error messages with the two forward arrow command. For example I've introduced an error in my x window configuration file so I when I run the start x command I direct the error output to the GUI error file and I get a listing of error messages. Finally I can pipe the output from one command as input to a second command. One common practice is to pipe the output of a long list to the list command which allows me to page up and page down or arrow up and arrow down through a long listing of files or more. So instead of the long listing I can pipe the output to the less command and I can page down page up arrow up or arrow down through the file list. Thank you and on to the next tutorial.

Tutorial Information

Course: Red Hat Certified Technician
Author: Michael Jang
SKU: 33785
ISBN: 1-933736-97-6
Release Date: 2007-07-24
Duration: 7 hrs / 103 lessons
Captions: For Online University members only
Compatibility: Vista/XP/2000, OS X, Linux
QuickTime 7, Flash 8

VTC Sign up & Benefits

  • Unlimited Access
  • 81,350 Video Tutorials (20,800 free)
  • Video Available as Flash or QuickTime
  • Over 782 Courses
  • $30 for One Month Access
  • Multi-User Discounts Available