Download the plain text (non-html) version.




# ~/.tcshrc.alias


##################################
alias cp     '/bin/cp -dP'
# alias mv     'mv -i'
# alias rm     'rm -i'
alias rm    '/bin/rm --preserve-root'
alias lynx    'links'
alias su     'su -l'
alias ls     'ls -bCF --color=always'
# alias more   'more -d'
# alias less   'less -MC'
alias diff   'colordiff'
alias make   'colormake'
alias gcc    'colorgcc'
alias chmod  '/bin/chmod -c'
alias grep   'grep -n --color=always'
alias cal    'cal -m'
alias shred  'shred -z'
alias dog    'dog -n'
alias nl     'nl -b a -d "\:" -f a -h a -n ln -s "\t" -v 1'
alias df     'df --sync'
alias xauth  'xauth -v'
alias untar  'tar xzfv'
alias md     'mkdir -p'
alias cwd    'pwd'
alias df     '/bin/df -Hl'

alias today  'date "+%d %h %y"'
alias now    'date "+%A, %d %B, %G%t%H:%M %Z(%z)"'
alias msgs   'tail -f /var/log/messages'
alias ff     'find . -name $*'
alias .      'pwd'
alias ..     'cd ..'
alias ../    'cd ../'
alias ...    'cd ../..'
alias .../   'cd ../../'
alias -	   'cd -'
alias /	   'cd /'
# Remove ^M characters from mac and dos/win files.
alias rmmac 'tr \"\r\" \"\n\" '
# alias rmdos 'tr -d "\r" '
# alias rmdos 'tr -d `\15\32`'
alias rmdos 'awk `{ sub("\r$", ""); print }`'

alias bash    '/bin/bash --login'
alias dash    '/bin/dash -iE'
alias pdksh   '/bin/pdksh -l'
alias ksh     '/bin/ksh93 -l'
alias ksh93   '/bin/ksh93 -l'
alias osh     '/usr/bin/osh -l'
# alias tcsh    '/usr/bin/tcsh -l'
alias zsh     '/bin/zsh5 -l'
alias csh     '/bin/bsd-csh -l'
alias bsd-csh '/bin/bsd-csh -l'
alias osh     '/usr/bin/osh'
alias mksh    'mksh -l'

alias xterm 'xterm -rv'

# Create a PostScript file from text, in an economic way
alias enscriptit  'enscript -o out.ps -DDuplex:true -DTumble:true -r -M A4 -2'
alias rfcget      'ncftpget ftp://ftp.isi.edu/in-notes/rfc\!^.txt'
alias rmbkp       'rm -f ./*~ ; rm -f ./.*~'
alias killapache  'kill -TERM | `cat /var/run/apache2.pid`'

alias runpg	'echo "Login to PostgreSQL" ; su -c runpg - postgres'
alias supg	 'su - postgres'
alias mypg	 'psql -d $PGUSER -h '$PGHOST' -p '$PGPORT' -U '$USER

alias updateclam  'sudo freshclam --user clamav --no-dns'
alias easyubuntu  'sudo python $HOME/.local/easyubuntu/easyubuntu.in'

alias upstartdoc 'zcat /usr/share/doc/upstart/README.Debian.gz |less'

alias mountisp '/usr/bin/curlftpfs -o connect_timeout=60,disable_epsv,user=%isp_login%:%isp_passwd%,umask=0022 %isp_login%.%isp_server%/ %isp_mountpoint%'
alias umountisp 'fusermount -u %sp_mountpoint%'
alias mountwork '/usr/bin/curlftpfs -o connect_timeout=60,disable_epsv,user=%work_login%@%work_host%:%work_login%,umask=0022 %work_host% %work_homedir% ; cd %work_mountpoint%'
alias umountwork 'cd ~; fusermount -u $work_mountpoint'

alias rootz 'su -s /bin/zsh4 - root'
alias iddqd 'sudo -i'

alias kill '/bin/kill'

# Common typos
alias maek   'colormake'
alias alais  'alias'
alias sl     'ls -bF --color=always'
alias la     'ls -bF --color=always'
alias dir		'/bin/ls'

alias synctime 'sudo /usr/sbin/ntpdate -u %time_server_addy%'

alias ping 'ping -c 4'


alias updatedb '/usr/bin/updatedb -U $USER -o $USER/.mlocate.db'