LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-01-2009, 11:45 PM   #1
manohare
LQ Newbie
 
Registered: Aug 2007
Posts: 13

Rep: Reputation: 0
What does the command do, &> filename?


Can anyone please reply the output of the command.

&> filename
 
Old 03-02-2009, 12:23 AM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
It redirects the standard output and standard error of a command to a file. IOW, all the output that normally outputs on the terminal will go into "filename" instead.

It's not really a command though, because you don't run it on its own. It's a type of I/O redirection that you tack onto the end of a command when you launch it.
 
Old 03-02-2009, 04:19 AM   #3
manohare
LQ Newbie
 
Registered: Aug 2007
Posts: 13

Original Poster
Rep: Reputation: 0
The link which you have provided is very useful for me.

Thanks a lot David.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Using /bin/mail command with a string for message, not a filename? SirTristan Linux - Newbie 4 03-26-2008 08:22 PM
filename ends in '\' won't open in emacs or with cat command - why? tardo0807 Linux - Newbie 2 02-14-2008 10:11 AM
A command for searching for a filename Macska Linux - Newbie 1 11-24-2007 12:36 AM
Clarifying Linux & filename extensions Gag Halfrunt Linux - Newbie 1 11-28-2004 06:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:35 AM.

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
Open Source Consulting | Domain Registration