this post was submitted on 15 Jun 2023
1 points (100.0% liked)

commandline

1726 readers
11 users here now

founded 1 year ago
MODERATORS
 

Any extra tips or tricks are welcome!

Yesterday I learned that set -x enables trace for a bash, sh, or zsh script and prints the trace to the terminal.

you are viewing a single comment's thread
view the rest of the comments
[–] gamma@programming.dev 1 points 1 year ago* (last edited 1 year ago)

pv, which is like cat, simply copying files or stdin to stdout, but prints statistics to the terminal.

A related tip: dd isn't special in the way most people use it. This works too, if you're root: pv my-fav-distro.iso > /dev/sdc