CUSTOMIZING


alias                          Creates a shortcut for a command or series of commands.
Usage: alias displays all specified aliases.
Usage: alias <shortcut> <series of commands>
To include command line arguments in the alias
\!*       for the all command line arguments
\!^      for the first argument
\!$      for the last argument
Eg: alias h ‘history’
alias janus ‘xhost + ; telnet janus.arc.cmu.edu’
alias rm ‘rm -i’
alias my-term ‘xterm -title \!* -bg ivory -fg black’
unalias                     Removes the alias from its bound commands.
Usage: unalias <shortcut>
set                              Sets variables in current shell.
Usage: set <variable>=<value>
echo $variable will print out the value of the variable.
Usage: set: displays all the set variables in the shell.
unset                         Removes value form the variable.
Usage: unset <variable>
stty                             Set the option for a terminal.
Usage: stty erase <desired-key> character erase
stty kill <desired-key> whole line erase
stty werase <desired-key> word erase
set filec                    If filec is set, any partially typed filename can be expanded to its full name whenever esc key is pressed.
Usage: set filec
set prompt              Sets the prompt of the terminal.
Usage: set prompt=<value>.
Eg: set prompt=”[hoda]”
set prompt="\!%“ will show command number
set prompt="<`pwd`> " will show working directory
chsh                          Change Shell.
Usage: chch <username> <newshell>
Eg: chsh hoda tcsh.
source                      Reads commands from a file. Used to reload an updated .cshrc file into the current working shell.
Usage: source filename.


Previous                                                                                                        Next

No comments:

Post a Comment

Copyright © EduRAR @ www.edurar.blogspot.in