simple aliases

K

ktc0ut

Guest
hi, i was ust wondering where i should start when i want to write out something simple like :

i want the ls command to always execute "ls -F"

which file would i open and edit to make that permanent, im trying to find out where i can write other commands as well.

for example i wanna make a script or alias or whatever so that i do not ahve to type out : (ifconfig | grep 'inet ' | grep -v 127.0.0.1 | cut -d\ -f2) every time i want to see the ip address.
 
Joined
Feb 14, 2004
Messages
4,781
Reaction score
166
Points
63
Location
Groves, Texas
Put this in your .bashrc file (if you don't have one, make one):
alias ls='ls -f'
Should be able to do something similar for that ifconfig command.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top