You can customize your frequently-used alias in your shell configuration. For example, when using CSH ~ /. Cshrc.
General alias:
Alias CD1 'CD .. /'Alias CD2 'CD .. /.. /'Alias cd4' CD .. /.. /.. /.. /'Alias cd3' CD .. /.. /.. /'Alias ls' ls -- color = tty 'Alias ll 'ls-la' alias lt 'LS-lh' alias lz' LS-lhrs 'Alias H' history 'Alias df' DF-H 'Alias du' Du-H' alias grep 'grep-RNE -- color 'Alias VD 'vimdiff 'Alias tf' tail-F' alias CLS 'clear' alias du0' du -- Max-depth = 0 'Alias du1' du -- Max-depth = 1 'Alias JS 'jobs' alias pu' pushd 'Alias PP' popd'
Others:
CD to the specified directory: alias cdxx 'CD/xxxxxxxx'
Rsh to a user: alias XXX 'rsh-l XXX localhost'
You can set alias for Common commands and directories.
Note that the above settings are in CSH. If the bash syntax is different, you need to use something similar to alias pp = 'popd '.
Finally, you can use your custom alias under any other user, as long as you source your. cshrc under another user.
Complete!