Tips tagged alias


73

Tip #871   Ignore an alias

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

Read more »

19

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 »

16

Tip #157   ssh proxy forwarding

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


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

Read more »

9

Tip #162   rc-service alias

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

Read more »

7

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 »

6

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 »

5

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 »

4

Tip #502   Counts files in the current directory and subdirectory

Counts files in the current directory and subdirectory
Read more »