Links and scripts are different. A link could point to just about anything. It could be a file, command, script, even a device.
Links and aliases are great, they can save you a lot of time, moreover a LOT of typing!
If your scripts are all within your $PATH variable, You'll probably have little use for links. When you enter a command, the $PATH variable is searched first. However, if you want to run something that not in $PATH a link can save you time / typing.
Another helpful tool is your .profile I use ksh, so it may something else in bash. Your profile can setup variables to make your life easier, create alias for scripts, executables, et al.
Here's what I use in my .profile. It may have to be converted.
PATH="$PATH:/sbin:/usr/sbin:/util/:.:/usr/local/bin:$HOME/bin"
# PS1='`id -un`-`hostname -s`:$PWD'\>
PS1='`id -un`:$PWD'\>
set -o vi
EDITOR="vi"
LS_OPTIONS='--color'
# TERM=mate-terminal
TERM=xterm
LESS=MMr
export LS_OPTIONS TERM LESS EDITOR
# Alias commands to what you want to call them.
alias ll='ls -lh $LS_OPTIONS'
alias llm='ls -alh $LS_OPTIONS| less'
alias lrt='ls -alhrt $LS_OPTIONS'
alias ls='ls $LS_OPTIONS'
alias lsd='ls -lhd */ 2>/dev/null $LS_OPTIONS'
alias lsnd='ls -lh |grep -v ^d $LS_OPTIONS'
alias lsl='ls -l $LS_OPTIONS'
alias ipcalc='ipcalc.pl -b'
alias ping='ping -n $1'
cd $HOME
You may or may not find these useful, just thought I'd throw it out there. Someone might be able to get something out of it.![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
Links and aliases are great, they can save you a lot of time, moreover a LOT of typing!
If your scripts are all within your $PATH variable, You'll probably have little use for links. When you enter a command, the $PATH variable is searched first. However, if you want to run something that not in $PATH a link can save you time / typing.
Another helpful tool is your .profile I use ksh, so it may something else in bash. Your profile can setup variables to make your life easier, create alias for scripts, executables, et al.
Here's what I use in my .profile. It may have to be converted.
PATH="$PATH:/sbin:/usr/sbin:/util/:.:/usr/local/bin:$HOME/bin"
# PS1='`id -un`-`hostname -s`:$PWD'\>
PS1='`id -un`:$PWD'\>
set -o vi
EDITOR="vi"
LS_OPTIONS='--color'
# TERM=mate-terminal
TERM=xterm
LESS=MMr
export LS_OPTIONS TERM LESS EDITOR
# Alias commands to what you want to call them.
alias ll='ls -lh $LS_OPTIONS'
alias llm='ls -alh $LS_OPTIONS| less'
alias lrt='ls -alhrt $LS_OPTIONS'
alias ls='ls $LS_OPTIONS'
alias lsd='ls -lhd */ 2>/dev/null $LS_OPTIONS'
alias lsnd='ls -lh |grep -v ^d $LS_OPTIONS'
alias lsl='ls -l $LS_OPTIONS'
alias ipcalc='ipcalc.pl -b'
alias ping='ping -n $1'
cd $HOME
You may or may not find these useful, just thought I'd throw it out there. Someone might be able to get something out of it.