Quantcast

Command line aliases in linux

Ridemonkey

This is not an active account
Sep 18, 2002
4,108
1
Toronto, Canada
Which file is it that I put command line aliases in so that I can name my own commands?

So like I would type xxx and it would do a rm -rf * or something like that.
 

CrAckErKorEan

Ridemonkey's own half breed
Nov 29, 2001
244
0
Winder GA (Its in the sticks)
Sounds like BASH to me.
Try this itl tell you what shell your using.

cat /etc/passwd | grep (username) that should tell you

Mine says

crackmunch:x:503:503:crackmunch:/home/crackmunch:/bin/bash

and for the alias

alias "whatyouwant=commandtoexecute"

That should work.