The blog of Audun Larsen
This is mostly a note for myself, but sharing is caring.
To clear the content of a file:
$ echo "" > filename
To fill a file with junk:
$ cat /dev/urandom > filename
This is easier to write and does the same job: $ > filname Also you can limit how many bites you want in your random junk file like this: cat /dev/random | head -c NUMBER_OF_BITES > file
$ > filname
cat /dev/random | head -c NUMBER_OF_BITES > file
More information about formatting options
my del.icio.us
RSS, XHTML, CSS
This is easier to write and does the same job:
$ > filname
Also you can limit how many bites you want in your random junk file like this:
cat /dev/random | head -c NUMBER_OF_BITES > file
- reply
Submitted by Flexer (not verified) on Wed, 01/02/2008 - 11:02.Post new comment