Username/Email:  Password: 
TwitterFacebookFlickrRSS

Commandline 101: Redirecting Output

FAIL (the browser should render some flash content, not this).

Linux Journal's Shawn Powers shows you how to redirect commandline output to a file.

Download in .ogv format

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

stdout stderr redirection?

Stu's picture

I'd love to see the Shawn Powers, Clear and Concise, Tech Tip of the Day, description of how stdout and stderr redirection is done. For example, how both can be redirected to file.

great example

Tuxly_Tuxford_McTuxtington's picture

There are so many powerful, useful commands that come out of the box with every linux installation. Shawn, your short video tip collection is perfect for beginner and intermediate users who may not otherwise know this stuff. Keep up the great work!

Using the "clear" command

Gumnos's picture

In case you're lazy like me, you can use control+L to perform a screen-clearing instead of typing clear each time. Advantages include the ability to use it in the middle of typing a command to clear the screen and not littering your .bash_history file with clear commands.

-Tim

Thanks!

Shawn Powers's picture

Cool! Thanks Tim. :)

Shawn Powers is an Associate Editor for Linux Journal. You might find him chatting on the IRC channel, or Twitter