this post was submitted on 09 Aug 2023
61 points (94.2% liked)

Programming

17668 readers
177 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities [email protected]



founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 8 points 1 year ago (4 children)

Progress indicators. Typing out a long command only to have it just sit there with no report is frustrating.

[–] [email protected] 9 points 1 year ago* (last edited 1 year ago)

Depending on what one is doing, placing pv in between (usually with -s to specify size of data if known in advance) gives a progress bar, with speed and size of data passing through.

Say you have an SQL dump of 1048576 bytes:

cat dump.sql | pv -s 1048576 | mysql somedb

and now you know how far it is instead of just waiting :)

[–] agilob 3 points 1 year ago

On BSDs you can do ctrl+T and it prints progress, there were plants to implemented this on Linux, but it didn't get enough traction.

[–] [email protected] 1 points 1 year ago

even a spinning icon would be nice. It's hard to tell if I should kill something or if it's still in progress / finishing up

[–] [email protected] 1 points 1 year ago

I'm about 20% competent in Linux so thank you all for the comments. I pretty much dabble and spend a lot of time using snapshots lol

Saving this post!