LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-27-2001, 06:27 PM   #1
brianm
LQ Newbie
 
Registered: Mar 2001
Posts: 4

Rep: Reputation: 0
Exclamation


Could someone please tell me what this means i see it in a lot of scripts but i don't know what it does and i can't find anything about it in any of my books or on any websites?

the command is:
2>&1

Thanks a lot.
 
Old 03-27-2001, 11:05 PM   #2
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,823

Rep: Reputation: 120Reputation: 120
It redirects both stdout and stderr. This is directly from the bash man page.

Quote:
Redirecting Standard Output and Standard Error
Bash allows both the standard output (file descriptor 1)
and the standard error output (file descriptor 2) to be
redirected to the file whose name is the expansion of word
with this construct.

There are two formats for redirecting standard output and
standard error:

&>word
and
>&word

Of the two forms, the first is preferred. This is seman-
tically equivalent to

>word 2>&1
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can someone please tell me what this means... :) xbill311x Linux - Newbie 7 05-11-2005 07:37 AM
Does anyone know what this means? mrchaos Slackware 8 04-23-2005 02:32 PM
Help what does it means.. jhar Linux - Newbie 1 02-16-2005 02:44 AM
does anyone know what this means? macewan Linux - Hardware 4 02-10-2004 11:35 AM
does anyone know what this means ? Infinite_Pizza Linux - General 8 10-14-2003 06:15 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration