How do I create a shortcut/alias in fedora? For example this is the path to my netbeans IDE
netbeans-8.2/bin/netbeans
I am a lazy person, and I don't want to type all this out in the terminal, is there a way so I can type something else and it "equals" whatever I want? Example If I type
SOMECOMMAND = netbeans-8.2/bin/netbeans
Whatever somecommand actually is, it will act as though I actually typed out the full
netbeans-8.2/bin/netbeans
netbeans-8.2/bin/netbeans
on its own actually do what you want? – SauceCode Feb 07 '17 at 00:16alias nb ='netbeans-8.2/bin/netbeans'
. If you have an alias set,alias <something>
prints what that alias is. Andalias <something> <somethingelse>
prints the value of both aliases. So your shell thought you were trying to print the value of both aliases, instead of assigning an alias. That should help understand your error message. – SauceCode Feb 07 '17 at 00:34netbeans-8.2
. It would probably make more sense to put a full path there. But in fact what would make the most sense would be to add…/netbeans-8.2/bin
to your PATH. – Gilles 'SO- stop being evil' Feb 07 '17 at 22:47