I’m crossposting this here

A) So I can see if I know how to cross post lol

B) To bring attention to the !linux4noobs@lemmy.world community here, as it it woefully small and could use some publicity, especially to those who can help more than the noobs seeking it out

C) Hopefully get the answer I seek.

…did the crosspost work? (Ayy alright!)

  • lvl@kbin.social
    link
    fedilink
    arrow-up
    3
    ·
    1 year ago

    If you use them for your use only, or want them “cleanly” organized, consider prefixing it with something personal to you (or a generic one such as my_). For example, I’d prefix them with l_: my_rename_photos.sh, my_lightson.sh, etc.

    If there’s a lot of them, write a wrapper script which would call the individual scripts from a common location (/usr/share/my-scripts/). Then, you can only make sure your wrapper script is aliased/moved in the PATH. Example: my rename, my lightson, etc.

  • _HR_@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    1 year ago

    If you’re using a Debian based distro, you can search through contents of packages to see if there’s a conflict:

    E.g. apt-file search /usr/bin/sh

  • Eager Eagle@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 year ago

    frankly if I already had the names, I would just search for " cli" or " bash" and see what comes up.

    • ArcaneSlime@lemmy.dbzer0.comOP
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      Genius, now I just need to think of the names for one or two. No clue why I just didn’t think of that lol. Thanks!

      I need to learn to bookmark shit like this [link I can’t find].

  • palordrolap@kbin.social
    link
    fedilink
    arrow-up
    2
    ·
    1 year ago

    which commandname will tell you if there’s a command already by that name on your system without having to run anything.

    This only finds things in places stored in the $PATH environment variable, though.

    You could query your package manager to see what packages for your distribution might contain the command name, but 1) that will also turn up support files and the like and 2) Not all distros have the same commands, especially once you get beyond the core Unix/Linux command set.

    e.g. on a system with apt, I can run apt contains commandname and get a list of everything containing “commandname”

    Another user suggested prefixing with my_, but you might consider using your initials, a short form of your username or some other identifier instead. e.g. Everyone is “me/my” to themselves, but fewer people share your initials.

    Also, a suffix might actually be a marginally better choice depending on your tab-completion preferences.

    There’s precedent for some actual “official” commands using a .suffix style, especially when multiple packages have their own version of a particular command, or a minor variant. On my computer I have things such as uncompress.real, vim.tiny, lzip.plzip and telnet.netkit, for example.

    Something like scriptname.arcslime would fit right in, whether or not scriptname is a thing in its own right or not.

  • GustavoM@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    My script names are basically

    downloadallmystuffbackplease.sh
    
    
    bbutimnotonmyrpi4.sh
    
    
    aptthewholething.sh
    
    

    jesusimfuckingdum.sh