How to change unix prompt?

C-shell (csh) Example: set prompt=”[%n@%m %c] \! %” oracle@localhost ~] 39 % In this above example sets prompt to display username, hostname, current working directory and history number. %n – username, %m – hostname, %c – pwd, \! – history number K-shell (ksh) Example: $ export PS1=’$USER [$PWD] $ ‘ oracle [/home] $ In the above example, sets prompt to display username and current working … Continue reading How to change unix prompt?

whereiz – find all version of a command

Using the following script it will find all version of a command in $PATH (from Unix Power Tools) $ cat /tmp/whereiz #!/bin/sh testx=”test -x” fixpath=”`echo $PATH | sed \ -e 's/^:/.:/' \ -e 's/::/:.:/g' \ -e 's/:$/:./'`” # echo $fixpath IFS=”: ” for command do where=”” for direc in $fixpath do $testx $direc/$command && where=”$where $direc/$command” done case “$where” in ?*) echo $where ;; esac … Continue reading whereiz – find all version of a command