# **************************************************************************** # **************************************************************************** # trivial alias definitions # **************************************************************************** # **************************************************************************** # # **************************************************************************** # Start and Stop for Samba. Must be in root. # smbd - file and print services to SMB (Server Message Block) clients # nmbd - NetBIOS nameserving and browsing support # **************************************************************************** alias stopnmb='/etc/rc.d/nmb stop' alias startnmb='/etc/rc.d/nmb start' alias stopsmb='/etc/rc.d/smb stop' alias startsmb='/etc/rc.d/smb start' # # **************************************************************************** # Start and Stop for MySQL. Must be in root. # **************************************************************************** # alias startmysql='mysqld_safe --user=mysql &' alias stopmysql='mysqladmin shutdown' # # **************************************************************************** # Little cheats of my own. Ones that begin with '_' are calls to items in # my .function file. # **************************************************************************** # alias copy='cp' alias rm='rm -i' alias d='less' alias md='mkdir' alias cls='clear' alias tl='_set_title' alias del='rm -i' alias net='/sbin/ifconfig' alias disp='_show_disp' alias tome='cd /home/ctaylor' alias totr='cd /home/ctaylor' alias tosrc='cd /home/ctaylor/src' alias toscr='cd /home/ctaylor/scripts' alias todocs='cd /home/ctaylor/Documents' alias pubht='cd /home/ctaylor/public_html' alias find_file='find . -print | xargs grep $1 2> /dev/null' alias xscrn='xscreensaver-demo &' # **************************************************************************** # Fire up timidity and play some music. # **************************************************************************** # alias playmusic='/usr/bin/timidity -iatv &' # ***************************************************************************** # # Make ls, list defaults command, # F - notes files types using # / (slash) it is a directory # * (asterisk) if the file can be executed # = (equal sign) if the file is a socket # | (pipe) sign if the file is a FIFO # @ for a symbolic link # C - Sorts output vertically (confuses things). # a - Lists all files including those prefixed with "." (dot). # A - List all . prefixed files except "." and "..". # ***************************************************************************** alias lsa='ls -FA' # include hidden files alias ldir='_ldir' # only list the directories alias ldm='ls -ltF' # list by modification time alias ldh='ls -ltFh' # list by modification time - sizes human format alias ldsi='ls -ltF --si' # list by modification time - 1000 not 1024 alias ldma='ls -ltFA' # list by modification time - include hidden alias ldr='ls -ltrFA' # list by modification time - reverse order alias ldmm='_ldmm' # pageable listing alias lsd='ls -F' # short form - no hidden # ***************************************************************************** # Report the PATH environment variable line by line. # ***************************************************************************** alias path='echo $PATH | tr ":" "\12" | more' alias mounted='_mounted' # ***************************************************************************** # TR Specials # ***************************************************************************** # Clean up - remove temp and backup files alias rmb='rm -f *~;rm -f .*~;rm -f *.bak;rm -f *.bkp;rm -f .*.bak;rm -f \#*\#;rm -f .\#*' # List all temp and back up files. alias lmb='ls -lt *~;ls -lt .*~;ls -lt *.bak;ls -lt *.bkp;ls -lt .*.bak;ls -lt \#*\#;ls -lt .\#*' # alias ren='mv $1 $2' # Rename a file alias rd='rm -fr $1' # Remove dir alias pem='_pem' # Emacs alias pem2='_pem2' # Emacs alias pe='_pe' # Call to Xwpe Editor alias xpe='_pe' # Call to Xwpe editpr alias ne='_ne' # Call to Nedit alias trmt='_trmt' # Experimentation ... alias blu='_blu' # BlueFish HTML editor # ***************************************************************************** # Fire off terminal widows of various colors.... just because!! alias trmp1='xterm -geometry 100x35+110+50 -bg LightSteelBlue3 -fg Black -font 8x13 -rightbar -T BlueWin &' alias trmp2='xterm -geometry 100x35+80+130 -bg RoyalBlue4 -fg White -font 8x13 -rightbar -T RoyalBlue &' alias trmp3='xterm -geometry 100x35+80+130 -bg Salmon -fg Black -font 8x13 -rightbar -T Miscellaneous &' alias trmp4='xterm -geometry 80x25+90+230 -bg NavajoWhite -fg Black -font 8x13 -rightbar -T For_ftping &' # # Calls to functions in the function file alias trmp5='_trm5' alias trmp6='_trm6' alias trmp7='_trm7' alias trmp8='_trm8' alias trmp9='_trm9' alias trmp10='_trm10' alias trmp11='_trm11' alias trmp12='_trm12' alias trmp13='_trm13' alias trmp14='_trm14' alias trmp15='_trm15' alias trmp16='_trm16' alias trmp17='_trm17' alias trmp18='_trm18' alias trmp19='_trm19' alias trmp20='_trm20' # # ***************************************************************************** # Open for two different root windows. Used when I need to make some root changes. # ***************************************************************************** alias goroot='xhost + local:root; xterm -geometry 100x35+130+90 -bg Red3 -fg White -font 8x13 -rightbar -T InRoot -e su &' alias goroot2='xhost + local:root; xterm -geometry 100x35+130+90 -bg firebrick -fg White -font 8x13 -rightbar -T InRoot -e su &' # ***************************************************************************** # Don't remember ... but it was something important. (grin) # ***************************************************************************** alias trmvnc='xterm -geometry 45x10+90+230 -bg Cyan4 -fg White -font 8x13 -rightbar -T VNCViewer &' # # ***************************************************************************** # This one will open a window into my Oracle user so that I can play with Oracle. # ***************************************************************************** alias ora8='xhost + local:root; xterm -geometry 100x35+90+230 -bg RosyBrown -fg White -font 8x13 -rightbar -T Oracle8i -e su - oracle'