this post was submitted on 10 Oct 2023
798 points (93.8% liked)

Memes

45657 readers
751 users here now

Rules:

  1. Be civil and nice.
  2. Try not to excessively repost, as a rule of thumb, wait at least 2 months to do it if you have to.

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] HiddenLayer5@lemmy.ml 59 points 1 year ago* (last edited 1 year ago) (3 children)

Terminal has plenty of convenience benefits over GUI as well. For example you can queue up long-running commands to go one after the other, something I didn't realise how useful it was until I was using Linux full time.

I use this one all the time for archiving stuff and moving it from my PC to my file server. Tar archive a folder, generate a checksum, move the new files over to the server, and then delete the original folder:

tar -cvf folder.tar folder && cat folder.tar | sha256sum > folder.tar.sha256 && mv folder.tar folder.tar.sha256 /path/to/remote/file/server/ && rm -rf folder

The && part stops execution if there is any error so the folder is only deleted once everything else is done without issues.

Can't do that with a GUI. Just make sure to proofread before you press enter.

[–] dingus@lemmy.ml 54 points 1 year ago* (last edited 1 year ago) (1 children)

Powershell, released in 2006: Am I a fucking joke to you?

Linux users: Ehhhh, kinda?

[–] ComradeKhoumrag@infosec.pub 8 points 1 year ago

Wsl is proof powershell is a joke

[–] marhensa@lemmy.world 11 points 1 year ago

for this part yes, automated process often better runs on terminal not GUI.

but that terminal is not exclusive to Linux right? and Windows is not always about GUI.

[–] trailing9@lemmy.ml 10 points 1 year ago (1 children)

Sha256 doesn't protect your files when bits flip and they are corrupted. If you want that, add a par2 checksum.

[–] HiddenLayer5@lemmy.ml 3 points 1 year ago

Good advice. Thank you!