Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 08-16-2003, 12:13 PM   #1
Registered: Jul 2003
Location: Lithuania
Posts: 45

Rep: Reputation: 15
Unhappy 2>/dev/null && {...} need explanation

Hi everybody who read this message. I am beginer and I need a little help...

ifconfig eth1 up 2>/dev/null && {...

please explain this 2>/dev/null && {...

Old 08-16-2003, 01:10 PM   #2
Registered: Aug 2003
Distribution: Latest Gentoo; Mandrake 9.1
Posts: 37

Rep: Reputation: 15
"2>" redirects standard error messages to an output.
You can think it as the normal redirection.

/dev/null means you're redirecting your error messages to "trash". See for further info.

Then, "&&" says to wait for the first part of the command to complete before starting what comes after "&&".
Old 08-16-2003, 01:31 PM   #3
Registered: Jul 2003
Location: Lithuania
Posts: 45

Original Poster
Rep: Reputation: 15
Thank you tchernobog for help


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
Phục hồi dữ liệu bị mất???, cứ pollsite General 1 06-27-2005 01:39 PM
Segmentation fault on toplevel = XtVaAppInitialize(&app, "Email", NULL, 0, &argc, cbranje Programming 0 02-19-2005 01:06 PM
Creating a printer, but sending to a script & /dev/null, how to? cougar694u Linux - Software 1 09-24-2004 02:38 PM
> /dev/null 2>&1 blackzone Linux - Newbie 2 09-20-2004 05:10 AM
> /dev/null 2>&1 Sammy2ooo Linux - Software 2 07-16-2003 10:20 AM

All times are GMT -5. The time now is 04:10 AM.

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