Command line
rsync
is a bettercp
. You can easily get a copy with progress bar by just usingrsync -P file_a file_b
It also has a ton of other useful functions. Originally picked it up from this post: https://solovyov.net/blog/2011/rsync-better-cp/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 asgtime
).
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:
Last updated