Skip to main content

Posts

Showing posts with the label CLI

Uncompress tar.gz tar.bz2 the easy way.

Usually uncompressing a tar'ed compressed file requires the use of two utility and pipe '|' through each other. Today, I found an easy way to to that. Traditionally, to extract tar.bz2 , we use  bzip2 -cd files.tar.bz2 | tar xvf -    and so with .gz files the easy way is this way,

Ping in interval on Windows with commandline

How do you ping in interval in Windows ? This is how you do it. Just type this in Start => Run cmd /c "for /L %i in (1,0,2) do @ping 1.2.3.4 > nul & sleep 10" This would ping an address in interval of 10 seconds without echo the results but if you do then use this next command cmd /c "for /L %i in (1,0,2) do @ping 1.2.3.4 & sleep 10 " Notice the '>nul' is exclude. Happy trying and now you don't need all those fancy utilities.