Skip Navigation
Just started with linux mint, need help with a command
  • Yea that must be it! It's spitting out just the file name and not the whole path. There is only 1 level of depth, so I want to remove

    • ./folder1/file 3
    • ./folder1/file4
    • ./folder2/file11
    • ./folder2/file12

    so how do I get the whole path into xargs? I tried xargs "$f"/ but fortunately that didn't work because it was trying to delete all the directories lmao XD

  • Just started with linux mint, need help with a command
  • Oh I see, lol. Now I'm getting "Cannot remove: No such file or directory" all the way down! The files are there, I see them, they come up in the terminal, but for some reason xargs rm does not want to delete them. When I put the -f flag, rm doesn't give an error but the files are still there! wtf

  • Just started with linux mint, need help with a command
  • Thank you for the tips, but now I'm getting "Cannot remove: No such file or directory" all the way down! The files are there, I see them, they come up in the terminal, but for some reason xargs rm does not want to delete them. When I put the -f flag, rm doesn't give an error but the files are still there! wtf

  • Just started with linux mint, need help with a command

    As the title says, I just started with linux mint and am falling in love with bash scripts 😍 Actually I'm not sure if it's considered a script, but I want to delete the last 2 files in all subfolders in a folder. So far I've (after great effort) got the terminal to list the files, but I want to delete them. Here is how I get them listed:

    for f in *; do ls $f | tail -n 2; done

    All their names come satisfyingly up in the terminal. Now what? I tried adding | xargs rm but that didn't delete them. I also tried something with find command but that didn't work either. Some folders have 3 items, so I want to delete #2 and 3. Some folders have 15 items so I want to delete #14 and 15. Folders are arranged by name, so it's always the last 2 that I want to delete.

    It's frustrating to be sooooo clooooose, but also very fun. Any help is appreciated!

    15
    Political Memes @lemmy.world skaarl @feddit.nl
    I don't agree with him, he agrees with me
    10
    Is LineageOS without GApps basically the same as /e/OS?
  • Hey thanks for the info. Are you saying that just standard LineageOS without gapps or MicroG will be unable to have a functioning OsmAnd (for example)? I remember a few years ago you had to install Mozilla location services seperately from F-Droid to get OsmAnd to work without Google stuff, but I've personally been out of the loop for a while.

  • Is LineageOS without GApps basically the same as /e/OS?

    I have to update a phone that currently has LOS, and degoogle it at the same time. If I just upgrade to the latest version (by flashing) and not install mind the gapps, is it basically a degoogled phone? It seems that installing /e/ over the current LOS would require me to flash stock rom first, which takes more time. The current LOS version on the phone was just 1 or 2 iterations below the latest version, 20 or 21 I don't remember.

    TIA

    12
    InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)SK
    skaarl @feddit.nl
    Posts 4
    Comments 12