• HiddenLayer5@lemmy.ml
    link
    fedilink
    English
    arrow-up
    48
    ·
    edit-2
    1 year ago

    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.