So just to be clear I went with a very lazy move to linux from windows. I was not looking to use my day to day in a unixy type way and wanted something that I can install and go without much muss or fuss. So I went with zorin and yeah I have dropped to the command line for some apt installs or such but bascially it was only as needed. Very minimal. Anyway today Im messing with folders and files and suddenly it hit me. Im on linux I can do a lot of this easier with the command line. I know its stupid but my day to day sorta has a mouse brain guie mode and I sorta forget how much easier it is to do some stuff using syntax. So going forward im going to be bringing up the command line to do the things that are quicker.

EDITED - guys I have used command line for years. before there even was a gui. Im trying to say I grew out of the habit but using linux at home is getting me back into it.

  • ArcaneSlime@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    3
    ·
    edit-2
    14 hours ago

    I find sometimes the gui takes a while to manipulate say 300 folders. Like if I want to move all the mp4 files from a folder structure into another directory but leave everything else you can use something like

    find /path/to/piracy/directory/ -name '*.mp4' -exec cp -r {} /path/to/piracy/storage/ \;
    

    And it’ll send em on over.

    And I didn’t remember that command, I had it in a script, so to find it to post here I just typed:

    cat ~/Documents/scripts/scriptname/
    

    And hit enter, and it gave me the info in the file. Tbh it was even easier than that, with tab completion I just had to type:

    cat Doc[tab]/sc[tab]/sc[tab]

    But back to the piracy, then to delete everything left over from that first script (like .nfo files) just

    cd ~/piracy/directory/
    rm -r *
    exit
    

    And will remove everything instantly.

    To make it easier you can make a script with the first command, even chain it with the same for avi etc, and you could probably have it auto clean the source directory afterwards, but I like to do that manually. You can also (in most piracy programs) tell it to run a script on complete, so you could have that all automated by that process (if you don’t store them in an external drive like me.) And you can get way fancier with it too, I’m very much still learning, there’s way more that can be done pretty easily. I do still use the GUI sometimes too though and for some stuff it is easier, it’s definitely not an all or nothing thing, both is better!

    Also I’m totally not a pirate that was just an example…cough cough.