Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-31-2006, 06:11 AM   #1
Registered: Aug 2005
Distribution: Slackware 12
Posts: 106

Rep: Reputation: 15
How to make an xxxx bytes file

well i just wanted to know how do i make an xxxx mb file, it can be any junk.

supposr i want to make a file "test" which is 10 Mb. i dont care what the contents are. so how do i make it in one go.

one rather crude way is find a 10Mb file and rename it test.
Old 12-31-2006, 06:56 AM   #2
LQ 5k Club
Registered: May 2003
Location: London, UK
Distribution: Debian "Testing"
Posts: 6,096

Rep: Reputation: 408Reputation: 408Reputation: 408Reputation: 408Reputation: 408

dd if=/dev/zero of=test bs=1M count=10

man dd !
Old 12-31-2006, 07:27 AM   #3
Registered: Aug 2005
Distribution: Slackware 12
Posts: 106

Original Poster
Rep: Reputation: 15
oops! i should've remembered reading this

thanks for pointing out.


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
make-kpkg --revision=xxxx kernel-image issue divukman Debian 2 03-06-2006 05:52 PM
How to add some bytes to a binary file? kornerr Linux - General 6 02-28-2006 11:23 AM
TX bytes vs. httpd bytes ovrload Linux - Networking 3 10-12-2005 04:19 PM
I accidentally deleted make file in /usr/local/bin, now cannot use make command.... Niceman2005 Linux - Software 2 11-17-2004 07:55 PM
RX bytes: xxxx stop incrementing gyu Linux - Networking 1 03-10-2003 09:42 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:42 PM.

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