Comments on: Linux Toolbox: alias http://www.coffeemonk.com/2009/05/linux-toolbox-alias/ Tue, 09 Aug 2011 03:28:26 +0000 hourly 1 https://wordpress.org/?v=4.4.1 By: glebeconnection http://www.coffeemonk.com/2009/05/linux-toolbox-alias/#comment-118 Tue, 01 Jun 2010 12:49:37 +0000 http://www.coffeemonk.com/?p=96#comment-118 to answer my own question: make the file in your bin directory and link to it from /usr/bin and bash will find its name in the path:
sudo ln -s $HOME/bin/filename /usr/bin/filename

]]>
By: glebeconnection http://www.coffeemonk.com/2009/05/linux-toolbox-alias/#comment-117 Wed, 26 May 2010 12:56:12 +0000 http://www.coffeemonk.com/?p=96#comment-117 hey, surprise, didn't realise i'd get to comment so easily. but i had a wordpress account… Good show, launchin a linux toolbox :-) Like the "hard copy" graphics too…

#run fortune when you want it; mine's commented out in .bashrc
alias 4tune='mint-fortune'
# edit this .bash_aliases file
alias bal='vi $HOME/.bash_aliases'
# access a pen drive called disk
alias cdd='cd /media/disk'
# customise .bashrc
alias custom='vi $HOME/.bashrc'
# count down the days to World Cup Socccer's kickoff
alias fifa='expr 161 – `date +%j`'
# switch to GUI to open a file
alias go='gnome-open'
# use GUI to open the home directory; 'nautilus $HOME' is slower
alias home='gnome-open $HOME'
# quit firefox without the mouse notching up miles; also clean cache
alias kf='killall firefox'
# logout from the terminal
lgt='/usr/bin/gnome-session-save –kill'
# ls varies among distributions; show hidden files only
alias lh='ls -la –ignore=[0-Z]*'
# open Open Office Word Processor but skip splash screen
oo='oowriter -nologo &'
# see your internet data usage
alias ppp='ifconfig | grep –color 'RX.by.*\$''
# use python to do calculations or serious programming
alias py='python'
# shutdown the computer from where you are
shut='sudo shutdown -h now'
# open another terminal
alias tt='gnome-terminal &'
# today in history and more
alias today='grep -h -d skip `date +%m/%d` /usr/share/calendar/*'
# open an xterm; useful since it looks different
alias xt='xterm &'

what i was looking for was a way to run a file as root. eg. source ~/bin/file followed by "file" as root would work but i had sudo in mind.

]]>
By: Skiz http://www.coffeemonk.com/2009/05/linux-toolbox-alias/#comment-102 Mon, 15 Feb 2010 07:25:09 +0000 http://www.coffeemonk.com/?p=96#comment-102 When dealing with multiple firewalls and you have keys set up, you can initiate all of the hops with something like this to grab a clean mysql console or anything else you need.

alias devel=’ssh -t host1 ssh -t host2 ssh -t host3 mysql -hdbhost’

]]>
By: Antelope Love Fan — This Bash trick will make your brain explode http://www.coffeemonk.com/2009/05/linux-toolbox-alias/#comment-24 Wed, 13 May 2009 23:28:26 +0000 http://www.coffeemonk.com/?p=96#comment-24 […] am constantly learning new things. For instance, I had never considered combining multiple commands into a single alias […]

]]>