---------------------------------
QuentinFedoraHome updated @ 20-NOV-2010 SAT 07:09Am
-------------------------------------------------------
[q.yang@QuentinFedoraHome ~]$ alias
alias cp='cp -pi'
alias egrepin='egrep -i -n'
alias fd='find . -name'
alias l.='ls -d .* --color=tty'
alias la='ls -all --color=tty'
alias lax='ls -all -X'
alias lct='ls -all -ct'
alias ll='ls -l --color=auto'
alias ls='ls --color=auto'
alias lt='ll -t'
alias lx='ls -X'
alias mda7='mount /dev/hda7 /mnt/hda7 && ls /mnt/hda7 '
alias mda8='mount /dev/hda8 /mnt/hda8 && ls /mnt/hda8 '
alias mda9='mount /dev/hda9 /mnt/hda9 && ls /mnt/hda9 '
alias mv='mv -i'
alias rm='rm -i'
alias sshuni='ssh quentin@thiazi.snrc.uow.edu.au'
alias svnstart='svnserve -d'
alias tardel='tar --delete --file='
alias tartvf='tar -tvf '
alias uda7='umount /mnt/hda7 && echo "successfully unmounted hda7" '
alias uda8='umount /mnt/hda8 && echo "successfully unmounted hda8" '
alias uda9='umount /mnt/hda9 && echo "successfully unmounted hda9" '
alias vi='vim'
alias webstart='/opt/apache/bin/apachectl start'
alias which='alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde'
CREATE YOUR OWN COMMAND WITH ALIAS
---------------------------------------------------
edit file /home/user/.bashrc
Added the short command name for your easy word typing.
[q.yang@QuentinFedoraHome ~]$ vi ./.bashrc# .bashrc
# Source global definitionsif [ -f /etc/bashrc ]; then . /etc/bashrcfi
# User specific aliases and functions
alias mda8='mount /dev/hda8 /mnt/hda8 && ls /mnt/hda8 'alias uda8='umount /mnt/hda8 && echo "successfully unmounted hda8" '
alias mda7='mount /dev/hda7 /mnt/hda7 && ls /mnt/hda7 'alias uda7='umount /mnt/hda7 && echo "successfully unmounted hda7" '
alias mda9='mount /dev/hda9 /mnt/hda9 && ls /mnt/hda9 'alias uda9='umount /mnt/hda9 && echo "successfully unmounted hda9" '
alias sshuni='ssh quentin@thiazi.snrc.uow.edu.au'
alias l.='ls -d .* --color=tty'alias la='ls -all --color=tty'alias lct='ls -all -ct'alias lt='ll -t'alias lax='ls -all -X'alias lx='ls -X'
alias fd='find . -name'
alias mv='mv -i'alias cp='cp -pi'alias rm='rm -i'
alias vi='vim'
alias tardel='tar --delete --file='alias tartvf='tar -tvf '#egrep, ignore case, print line numberalias egrepin='egrep -i -n'
alias stsvn='svnserve -d'
No comments:
Post a Comment