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!)
helpmeplease ( @helpmeplease@infosec.pub ) 14•11 months agoJust name your script with your credit card numbers, so you’re pretty sure you won’t have any collisions… Don’t hesitate to let me know when you’ve done it :)
aperson ( @aperson@beehaw.org ) 2•11 months agoThe thing I always forget to include is those pesky numbers on the back.
oldGregg ( @oldGregg@lemm.ee ) 5•11 months agoHahaha when I click the link from /all it takes me to
https://zerobytes.monster/c/beautifulfemales
When I go to the comments first then click the link it goes to
Lmao yeah something is going on with linkage, the other day someone linked me to a lemmy comment but it would only show me a different comment, and others could load the right one correctly. No clue what that’s about.
lvl ( @lvl@kbin.social ) 3•11 months agoIf 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 withl_
: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. palordrolap ( @palordrolap@kbin.social ) 3•11 months agowhich 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 runapt 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 asuncompress.real
,vim.tiny
,lzip.plzip
andtelnet.netkit
, for example.Something like
scriptname.arcslime
would fit right in, whether or notscriptname
is a thing in its own right or not.I like the .suffix idea, I may run with that, thanks!
Ninguém ( @Ninguem@lemmy.pt ) 2•11 months agoDon’t know the site you’re looking for - might have never seen it. But I saw a tip a while back: name YOUR scripts something like “,script” (with a comma, or other confortable to type character as 1st character). It would be odd to ever find a colision.
I just don’t do that though! Too odd!