Useful for testing purposes
Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?
You must be signed in to comment.
commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.
Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.
» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10
Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):
Subscribe to the feed for:
dd if=/dev/null of=testfile.seek seek=5M bs=1 count=0
truncate -s 5M testfile
http://www.commandlinefu.com/commands/view/6850/create-a-file-of-a-given-size-in-linuxdf -h /home
Filesystem Size Used Avail Use% Mounted on /dev/mapper/rootvg-lv_home 1.9G 1.2G 607M 67% /homedd if=/dev/zero of=testfile.seek seek=1G bs=1 count=1
1+0 records in 1+0 records out 1 byte (1 B) copied, 0.000159075 s, 6.3 kB/sll -h testfile.seek
-rw-r--r-- 1 itsys grpit 1.1G Apr 7 16:27 testfile.seekdf -h /home
Filesystem Size Used Avail Use% Mounted on /dev/mapper/rootvg-lv_home 1.9G 1.2G 607M 67% /home