LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 02-24-2004, 10:10 PM   #1
harryo
LQ Newbie
 
Registered: Aug 2003
Distribution: Redhat
Posts: 4

Rep: Reputation: 0
Question Can you create an empty file and specify the byte length?


I would like to create a dummy file for a CDRom distribution for some database software.

I was wondering if I could specifically create an empty 409,600 kb in length for CD verification.

Thanks,
HarryO
 
Old 02-24-2004, 10:39 PM   #2
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Yeah - with 'dd' you can specify the 'bs' and 'count' options and write from /dev/zero.
 
Old 02-25-2004, 03:21 AM   #3
harryo
LQ Newbie
 
Registered: Aug 2003
Distribution: Redhat
Posts: 4

Original Poster
Rep: Reputation: 0
Thumbs up

Excellent, works a charm
-=h=-
 
Old 02-25-2004, 10:01 PM   #4
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Glad it worked out for you. Cool tool, dd is.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Zero-length bash .history file! revmyo Linux - Security 1 12-03-2005 08:09 PM
Can I create a empty /etc/ld.so.preload ? michael_util Linux - Software 1 01-20-2005 06:10 PM
problems reading in fixed-length record file naijaguy Programming 1 08-24-2004 02:34 PM
csv to fixed-length file roballen Programming 0 03-11-2004 03:12 AM
0 byte file size and lost chains with 200GB firewire drive eviscerate Linux - Software 1 11-24-2003 02:08 AM


All times are GMT -5. The time now is 11:33 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration