Command line
Last updated
Last updated
rsync
is a better cp
. You can easily get a copy with progress bar by just using rsync -P file_a file_b
It also has a ton of other useful functions. Originally picked it up from this post:
To get the full processor name on Mac:
To create a zero-filled file of specified size:
To run a program and report its maximum memory usage and other interesting things we can use usual GNU time
(on Mac: brew install gnu-time
will install it as gtime
).
Or even simpler, to just print maximum resident set size at the end: gtime -f %M program_name
Convert an SVG files to multiple PNG files with different resolutions and pack them all in an ICO file:
Run a command every 5 seconds: watch -n5 command
Convert GPS routes from .gpx to .kml without creating lots of points: