Results 1 to 2 of 2

Thread: simple aliases

  1. #1
    simple aliases
    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 | cut -d\ -f2) every time i want to see the ip address.

  2. #2

    cradom's Avatar
    Member Since
    Feb 14, 2004
    Groves, Texas
    13in macbook - 10.11 --- 21in. iMac 10.11 --- HP win 8
    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.
    Always listen to experts. They’ll tell you what can’t be done and why. Then do it!
    -Lazarus Long

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Can't stop aliases.
    By VicMar in forum OS X - Operating System
    Replies: 1
    Last Post: 02-23-2015, 12:10 PM
  2. Aliases
    By Edmound in forum Switcher Hangout
    Replies: 5
    Last Post: 06-30-2013, 01:52 AM
  3. Desktop Aliases
    By pjiffy in forum OS X - Operating System
    Replies: 4
    Last Post: 11-01-2011, 09:36 PM
  4. Simple, Simple question (?) from a real beginner
    By JamesTaylor in forum iOS and Apps
    Replies: 0
    Last Post: 05-15-2011, 09:58 AM
  5. Aliases and Icons
    By ezhangin in forum OS X - Operating System
    Replies: 2
    Last Post: 03-07-2006, 07:48 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts