Hi,
You can setup a '.bash_profile' & '.bashrc' to support user understandable alias that can be descriptive to that user. This can help with repeated commands along with 'history' to aid within sessions. Please notice 'll' & 'listlong' below to 'ls l'. By placing abbreviated alias you will have association to the command to be executed. Plus you can add path(s) to the alias when needed. Big plus; 'KISS' (Keep It Simple Stupid') is a good rule to follow. Do not make the alias to descriptive.
I let them modify to suit their session needs. I do restrict 'sudo' rights for security reasons. SuperUser on my systems are restricted to me and only me.
My house, my rules!
Code:
I like to provide my users with this;
sample .bash_profile;
~$ cat .bash_profile
#-----------------cut-----------------
# .bash_profile
#08-30-06 12:21
# Source .bashrc
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
#-----------------cut end--------------
Code:
And this,
cat .bashrc
#-----------------cut-------------------
#.bashrc
#08-30-06 12:20
# Add bin to path
export PATH="$PATH:$HOME/bin"
# Dynamic resizing
shopt -s checkwinsize
#
#save bash history so as to share
shopt -s histappend
PROMPT_COMMAND='history -a'
# Custom prompt
#PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
#08-29-06 11:40 gws
if [ `id -un` = root ]; then
PS1='\[\033[1;31m\]\h:\w\$\[\033[0m\] '
else
PS1='\[\033[1;32m\]\h:\w\$\[\033[0m\] '
fi
#
# Add color
eval `dircolors -b`
#Terminus is a very nice Unicode font for the Linux console
#02-02-12 gws
#from dugan's site http://duganchen.ca/writings/slackware/fonts/
#04-30-12 11:41 removed
#
#if [ $TERM = "linux" ]; then
# setfont ter-v16n
#fi
# User defined aliases
alias cls='clear'
alias clls='clear; ls'
alias ll='ls -l'
alias listlong='ls -l' #Same as ll but enhance for understanding
alias lsa='ls -A'
alias lsg='ls | grep'
alias lsp='ls -1 /var/log/packages/ > package-list'
alias na='nano'
alias web='links -g -download-dir ~/ www.google.com'
#08-29-06 11:50
#To clean up and cover your tracks once you log off
#Depending on your version of BASH, you might have to use
# the other form of this command
trap "rm -f ~$LOGNAME/.bash_history" 0
#The older KSH-style form
#trap 0 rm -f ~$LOGNAME/.bash_history
#-----------------cut end--------------
Agree that use will enhance experience as you work with the system. More than one way to skin a 'cat'.
Hope this helps.