Tips tagged alias


Tip #871   Ignore an alias

A '\' mark before a command will ignore aliases. For example, you have alias

Read more »


Tip #605   Un-alias a command

I used to have 'em' as an alias for Emacs. One day, I wanted to edit a file and typed 'rm' instead of 'em', losing the file I had no backup of. So I set a common alias to keep me focused.

Read more »


Tip #510   iso2cd

My little "iso2cd" alias. Not clean, but handy. The Burning device will be auto detected.

example call:
iso2cd debian_lenny_final.iso

alias iso2cd="cdrecord -s dev=`cdrecord --devices 2>&1 | grep "\(rw\|dev=\)" | awk {'print $2'} | cut -f'2' -d'=' | head -n1` gracetime=1 driveropts=burnfree -dao -overburn -v" Read more »


Tip #502   Counts files in the current directory and subdirectory

Counts files in the current directory and subdirectory
Read more »


Tip #258   List non-system users

I use the following to list non-system users. It should be portable though won't work on systems without the getent command.

Read more »


Tip #177   Copy and paste from the command line

Add the following alias and function to your profile to be able to copy and paste files at the command line:

Read more »


Tip #162   rc-service alias

Create rc* alias for each init.d script. (can be include at /root/.bashrc)

Read more »


Tip #157   ssh proxy forwarding

ssh -l <login> -L <port>:<destination:port> <proxymachine> <local addy>
ssh -l foo -L 5000: https://localhost:5000/

Then go to https://localhost:<port>/ to get to destination's website; through the proxy machine.

Read more »