Go Job Hunting at the LQ Job Marketplace
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 03-07-2007, 11:55 PM   #1
LQ Newbie
Registered: Mar 2007
Posts: 15

Rep: Reputation: 0
1+0 records in how to disiable in DD command "1+0 records out"

if i use DD command then it is giving me
1+0 records in
1+0 records out

but i dont want this to display.plz help me to disable this one

Old 03-08-2007, 03:24 AM   #2
Senior Member
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
You could redirect stdout to /dev/null:
dd ... > /dev/null
You'll still get the messages on stderr, but not those on stdout.
Old 03-08-2007, 09:54 AM   #3
Registered: Mar 2003
Location: Cambridge, MA, USA
Distribution: Ubuntu (Dapper and Heron)
Posts: 377

Rep: Reputation: 31
Originally Posted by timmeke
You could redirect stdout to /dev/null:
Timmeke, on what version of dd did you try this out?
The ones I test (dd (coreutils) 5.93 and dd (coreutils) 5.2.1) write the summary to stderr. In that case you need to redirect stderr -- either of
dd ... >& /dev/null              for (t)csh, or
dd ... 2> /dev/null              for (ba)sh.
depending on your shell.

Last edited by Quigi; 03-08-2007 at 12:26 PM.
Old 03-08-2007, 09:57 AM   #4
Senior Member
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
I didn't actually test it. I assumed it would print on stdout, as normal tools do.


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
Shell Script: Find "Word" Run "Command" granatica Linux - Software 5 07-25-2007 08:42 AM
"No DNS records" error nesargha Linux - Server 2 01-19-2007 05:44 AM
cdrecord command-line parentheses "(" ")" coolingtower Linux - Software 1 10-28-2005 12:49 PM
Tiny Sofa 2.0 - I thought "halt", "reboot" were only root command ?? sorcerer Linux - Distributions 1 08-21-2004 04:28 PM
"segmentation error" when issuing "useradd" command through terminal with RH 9.0 kaihuang Linux - General 0 10-22-2003 12:47 AM

All times are GMT -5. The time now is 07:26 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