Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Mail Systems
Eclipse Documentation

How To Guides
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Problem Solutions
Privacy Policy




Debian GNU/Linux Reference Guide
Prev Home Next

8.6.34 Dummy files

The following commands will create dummy or empty files:

     $ dd if=/dev/zero    of=filename bs=1k count=5 # 5KB of zero content
     $ dd if=/dev/urandom of=filename bs=1M count=7 # 7MB of random content
     $ touch filename #  create 0B file (if file exists, updates mtime)

For example, the following commands executed from the shell of the Debian boot floppy will erase all the content of the hard disk /dev/hda completely for most practical uses.

     # dd if=/dev/urandom of=/dev/hda ; dd if=/dev/zero of=/dev/hda

Debian GNU/Linux Reference Guide
Prev Home Next

  Published under the terms of the GNU General Public License Design by Interspire