Linux Scroll

Just another WordPress.com site

Linux channels

Channel:

1. Standard input (stdin)          0

2. Standard output (stout) 1
3. Standard error output (stderr) 2

Redirect:

< = redirect std input

> = redirect std output
2> = redirect std error output

Ignore standard error output:

$ command 2> /dev/null

Redirect standard error output to file:

$ command > log 2>&1

2>&1 = redirect std error output to std output

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: