#--------------------------------------------------------# # A sample .profile file for Korn shell and Bash users # #--------------------------------------------------------# # Courtesy of Developer's Daily # # http://www.DevDaily.com # #--------------------------------------------------------# PATH=$PATH:/usr/local/bin:/usr/gnu/bin:. set -o vi # enable the ability to recall previous commands with PS1='$PWD> ' # set the prompt to display the current directory #---------------------------------# # a few Korn/Bash shell aliases # #---------------------------------# alias lc="ls -C" alias lm="ls -al | more" alias dirs="ls -al | grep '^d'" # show the dir's in the current dir alias h=history # show the history of commands issued alias nu="who|wc -l" # nu - number of users alias np="ps -ef|wc -l" # np - number of processes running alias p="ps -ef" # mimick a few DOS commands with these aliases: alias cd..="cd ../.." alias cd...="cd ../../.." alias dir="ls -al" alias edit=vi alias help=man alias path="echo $PATH"