mac | How to create files with a specific filesize
May 3rd, 2009 at 0:05
Sometimes you need files with a specific filesize for testing issues – not that hard if you are able to work with your terminal
The Terminal in Mac OS X is located in
/Applications/Utilities/Terminal.app
The command you need to create files in Terminal is
mkfile
So if you need a quick overview about mkfile just enter
man mkfile
in Terminal.app.

So lets assume we need a file with the size of 10 MB

Let’s check the result

Some additional notes
If you want some additional output while creating the file you could use the verbose parameter -v

Linux users might prefer dd
Tags: create files with a specific filesize, dd, how to, mkfile



May 5th, 2009 at 09:52
Danke, das kann man bestimmt mal irgendwann brauchen. Eine Möglichkeit wäre vll den Datendurchsatz einer Netzwerkverbindung zu testen – gibt es da ne Möglichkeit das bei OSX mit Boardmitteln zu machen?
May 5th, 2009 at 10:12
hi,
ich greif da gerne auf iftop zurück – was letzlich via macports installierbar ist.
Infos zu iftop gibt’s da: http://www.ex-parrot.com/pdw/iftop/
Den reinen Durchsatz mit Boardmitteln prüfen … .mh Im Activity Monitor wird der Durchsatz angezeigt, ist aber sicherlich keine elegante Lösung.
ansonsten greifen viele für reine Darstellung des Durchsatzes und ähnlicher Infos auch auf istatsMenus zurück …. ist aber halt auch nicht ab Werk dabei.
Gruss
fidel