New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

simple aliases


Post Reply New Thread Subscribe

 
Thread Tools
ktc0ut
Guest
 
Posts: n/a

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.
QUOTE Thanks
cradom

 
cradom's Avatar
 
Member Since: Feb 14, 2004
Location: Nederland, Texas
Posts: 2,896
cradom has much to be proud ofcradom has much to be proud ofcradom has much to be proud ofcradom has much to be proud ofcradom has much to be proud ofcradom has much to be proud ofcradom has much to be proud ofcradom has much to be proud ofcradom has much to be proud ofcradom has much to be proud of
Mac Specs: 21in iMac core2 Duo- 13in macbook - 10.9 on both

cradom is offline
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.

Craig Domingue - resident redneck.
QUOTE Thanks

Post Reply New Thread Subscribe


« Learn a langauge to learn another | Basic Terminal Automation »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Simple Pie Chart Creation? Toahine OS X - Apps and Games 3 06-07-2006 06:00 AM
simple linksys router question PowerBookG4 Internet, Networking, and Wireless 2 04-30-2006 08:24 AM
Simple AppleScript request... 570thusaag Running Windows (or anything else) on your Mac 0 02-02-2006 12:33 PM
Any simple Windows Paint-like program out there? CharlesP2001 OS X - Apps and Games 2 10-19-2005 06:47 AM
Simple finder hacking trip OS X - Operating System 0 03-07-2004 10:16 AM

All times are GMT -4. The time now is 02:55 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?