#!/usr/bin/bash # # This file contains aliases for knoppix session # Save this file on a flash drive root directory # On a Knoppix Konsole window, # first mount the flash drive as # su root # mount -o uid=knoppix /dev/sda1 /mnt/flash # Then # cd /mnt/flash # source aliases.txt # # If you desire to modify this file, # edit this file carefully only in Unix/Linux # PS1="\[\]\u@$TTY:\w \\!\\$\[\] " export PS1 alias .=source alias ..="cd .." alias bye='cd; unset savehist; rmf .bash_history; exit' alias cdrom='umount /mnt/cdrom 2> /dev/null; mount /mnt/cdrom' alias uncdrom='umount /mnt/cdrom 2> /dev/null' alias cls='clear' alias cp="cp -i" alias dir='/bin/ls -as --color=auto' alias edit='vim' alias flash='umount /mnt/flash 2> /dev/null; mount /mnt/flash' alias unflash='umount /mnt/flash 2> /dev/null' alias floppy='umount /mnt/floppy 2> /dev/null; mount /mnt/floppy' alias unfloppy='umount /mnt/floppy 2> /dev/null' alias guard='chmod 400' alias unguard='chmod u+w,go+r' alias h='history | tail -20 | sort -r -n ' alias help='apropos' alias hh="history | sort -r -n | more" alias inform='set notify' #alias l="/bin/ls -a --color=auto" alias la="/bin/ls -la --color=auto" alias ll="dirs; /bin/ls -alF --color=auto" alias lock=lockscreen alias ls="/bin/ls -aCF --color=auto" alias m='more' alias mail=Mail alias md='mkdir' alias mv="mv -i" alias po=popd alias process=' ps -aux | grep $USER' alias pu='pushd .' alias rd='dirs; pushd' alias release='chmod a+w' alias rm="rm -i" alias rmf='/bin/rm --force' alias run='source' alias type='more' alias +w='chmod a+w' alias where="type -all" alias which="type -path" alias who=finger alias +x='chmod +x' alias xd='pushd'