Ifconfig command in Terminal

When I issue "ifconfig" command in Terminal, it does not give the IP address of the network interface. I use Ethernet connection for the Mac Pro (late 2013). However, the output of ifconfig does not show the IP address.
Is there anything I should know about using ifconfig command in Terminal? Thanks.

Perfectly clear, but not clear that you are certain you have an internet connection. You can use an interface normally, but not be connected at the moment you ran the command.
If I run it on mine, all interfaces are displayed. Those with a connection have inet addresses. Those not connected have no inet fields.
If it is being hidden for some reason, you might find the why in the man page.

Similar Messages

  • How to delete a command in Terminal?

    Months ago I tried to sync ical via Dropbox, which required entering a command in Terminal.  Now I'd like to reverse the action.  How do I go about deleting or countermanding this command?  Thanks.

    Based on the symlink you created long ago, your calendar directory is currently stored in Dropbox.  If you want to keep your calendar data you will need to move it back to ~/Library/Calendars.
    To be on the safe side use the ls command to see which is the symlink and which is the real directory:
    ls -ld ~/Library/Calendars ~/Dropbox/Calendars
    The one that starts with L and contains 2 file paths as in
    lrwxr-xr-x 1 username group 9 Dec 4 2011 /Users/username/Library/Calendars -> /Users/username/Dropbox/Calendars
    is the symbolic link
    The one that starts with D is the real calendars directory, for example:
    drwxr-xr-x 1 username group 9 Dec 4 2011 /Users/username/Dropbox/Calendars
    NOTE:  I strongly suggest you have a current backup before you use the 'rm' command below.  One mistake with 'rm' (remove, aka delete) and you can loose data that you are not going to get back.
    To remove the symlink, and put your calendar data back where iCal expects to find it, use the following commands:
    rm ~/Library/Calendars
    mv ~/Dropbox/Calendars ~/Library/
    The rm command is removing the symlink you created.
    The mv command is moving your calendars information to ~/Library where iCal expects to find it.

  • Can I use the pfctl command in Terminal to throttle bandwidth?

    The ISP I use (Northwestel) limits my upstream bandwith to 2 Mbps. While I upload at that maximum rate, the download service is disabled.
    Plus, if I upload at that maximum rate for any sustained period of time (sustained being longer than about 5 minutes), my entire service is disabled and requires that I reset the modem to start it again.
    As you can imagine, this is very frustrating. Especially when you consider I pay $125 a month for the service.
    Very few apps offer an option to manually throttle upload speeds. Dropbox, for example, does. But Apple's PhotoStream does not.
    So I'm looking for a way to globally throttle upload speeds on my Mac to a rate less than 2 Mbps so that I can avoid the above-described problems.
    This has led me to the pfctl command in Terminal, which – from what I've read – would allow me to set an upload rate maximum limit in the Mac OS Mavericks firewall. The problem is, I'm a novice command line user and so can't figure out how to compose a command properly.
    Does anyone know how to compose a pfctl command that would enable me to limit the upstream bandwidth rate on my Mac to about 1 Mbps?
    Alternatively, is anyone aware of another way to globally set an upstream bandwidth rate limit on a Mac, perhaps a utility or app?
    Any input or thoughts will be gratefully accepted.

    There are gui apps for this.  Apple has one.
    http://apple.stackexchange.com/questions/7426/bandwidth-shaper-or-bandwidth-cont roller-app-for-mac-os-x
    my give you some more hints.
    http://www.justin.my/2012/10/how-to-limit-photostream-upload-speed-in-mac-os-x/

  • It appears from my limited research and attempts that symbolic link command in Terminal is broken in 10.8.2

    It appears from my limited research and attempts that symbolic link command in Terminal is broken in 10.8.2
    Can anyone confirm or deny my observation ?

    It appears from my limited research and attempts that symbolic link command in Terminal is broken in 10.8.2
    Can anyone confirm or deny my observation ?

  • .DS_Store files undo delete command in Terminal

    I was copying large quantities of files to a poorly formatted LaCie 3T external drive and kept coming up with interruptions in copying because the Finder kept "seeing" the creation of .DS_Store files. I researched and found a command for Terminal which stopped the OS from creating .DS_Store files. I restarted my laptop and sure enough, no more .DS files are being created.
    I was then able to complete the massive transfer, I reformatted the drive, and returned all of the files to the 3T drive. Now everything's working alright.
    My question is... How do I return the creation of .DS_Store files back to normal?
    Can anyone drop me a line that I can insert into the terminal command line and get it done?
    Thanks in advance.

    You know, I did that, and nothing happened. So I then decided to re-install M.L., and I'm now manufacturing .DS_Store files with abandon.
    I've been reading that it's not a popular kind of file for folks, especially those who are working with variously formatted devices. There are some obscure advantages to having the files sit around the hard drive.
    Thanks for your advice, however. It's good to know that I wasn't so far off.

  • What is command in terminal to see host in my LAN?

    I want to see all the host in my LAN with there IP address and MAC address. Is it possible using terminal command window? If it is, what is command in terminal to see it? If not, is there any other method to do this?

    If you want to a more detailed set of counters, the command is "sh controller ethernet <BLAH>".
    Please don't forget to rate our useful posts.  

  • Setenv command in terminal.

    Hello,
    I'm using the unix "setenv" command in Terminal. But I keep getting the message: -bash: setenv: command not found
    Can anyone tell me what's wrong? Thought 'setenv' was a standard unix command.

    First this question is better asked in the Mac OS X Technologies > Unix Forum
    <http://discussions.apple.com/forum.jspa?forumID=735>
    'setenv' is a csh/tcsh shell built-in command.
    The default Mac OS X shell is 'bash' which sets environment variables using
    export VARIABLE_NAME="new value for the variable"
    If you are just following some instructions you read somewhere, then either see if there is a bourne shell version (sh, bash, ksh, zsh, ...). Or translate the csh/tcsh specific commands to bourne shell varieties.
    If you are a long time csh/tcsh user and want to use that shell, then try using the
    chsh
    command.

  • RECEIVED ABNORMAL SHUTDOWN COMMAND - APPLICATION TERMINATING

    HI All,
    We have an Planning application and when the user is trying to perform some activity and ti involves in running some calculation Scripts.
    At point the application is going down and this is causing real mess.
    There is no .xcp file created in the app folder. We are unable to find the root cause of the issue.
    the following are the fixes we tried but gave us no result.
    We tried to increase the Java Heep size
    <variable id="ESS_CSS_JVM_OPTION8" value="-Xms512m"/>
    <variable id="ESS_CSS_JVM_OPTION9" value="-Xmx1024m"/>
    But the issue still exists.
    [Mon Nov  4 11:24:32 2013]Local/SMARTPln///1127704896/Info(1042059)
    Connected from [140.85.4.227]
    [Mon Nov  4 11:24:32 2013]Local/SMARTPln/SMARTPln/gbeaton@CAL1/1127704896/Info(1020089)
    Ignoring span Hybrid Analysis option. Spanning into Hybrid Analysis Relational Source has been disabled. See the essbase.cfg file
    [Mon Nov  4 11:24:32 2013]Local/SMARTPln/SMARTPln/gbeaton@CAL1/1127704896/Info(1020055)
    Spreadsheet Extractor Elapsed Time : [0.01] seconds
    [Mon Nov  4 11:24:32 2013]Local/SMARTPln/SMARTPln/gbeaton@CAL1/1127704896/Info(1020082)
    Spreadsheet Extractor Big Block Allocs -- Dyn.Calc.Cache : [204] non-Dyn.Calc.Cache : [0]
    [Mon Nov  4 11:24:32 2013]Local/SMARTPln///1222445376/Info(1013210)
    User [hypadmin@Native Directory] set active on database [Wrkforce]
    [Mon Nov  4 11:24:32 2013]Local/SMARTPln///1130862912/Info(1042059)
    Connected from [140.85.4.227]
    [Mon Nov  4 11:24:32 2013]Local/SMARTPln/Wrkforce/hypadmin@Native Directory/1130862912/Info(1013091)
    Received Command [MdxReport] from user [hypadmin@Native Directory]
    [Mon Nov  4 11:24:32 2013]Local/SMARTPln/Wrkforce/hypadmin@Native Directory/1130862912/Info(1260039)
    MaxL DML Execution Elapsed Time : [0] seconds
    [Mon Nov  4 11:24:32 2013]Local/SMARTPln///1132968256/Info(1042059)
    Connected from [140.85.4.227]
    [Mon Nov  4 11:24:32 2013]Local/SMARTPln/Wrkforce/hypadmin@Native Directory/1132968256/Info(1013091)
    Received Command [MdxReport] from user [hypadmin@Native Directory]
    [Mon Nov  4 11:24:32 2013]Local/SMARTPln/Wrkforce/hypadmin@Native Directory/1132968256/Info(1260039)
    MaxL DML Execution Elapsed Time : [0] seconds
    [Mon Nov  4 11:24:32 2013]Local/SMARTPln///1129810240/Info(1042059)
    Connected from [140.85.4.227]
    [Mon Nov  4 11:24:32 2013]Local/SMARTPln/Wrkforce/hypadmin@Native Directory/1129810240/Info(1020055)
    Spreadsheet Extractor Elapsed Time : [0] seconds
    [Mon Nov  4 11:24:32 2013]Local/SMARTPln/Wrkforce/hypadmin@Native Directory/1129810240/Info(1020082)
    Spreadsheet Extractor Big Block Allocs -- Dyn.Calc.Cache : [87] non-Dyn.Calc.Cache : [0]
    [Mon Nov  4 11:24:35 2013]Local/SMARTPln///1134020928/Info(1042059)
    Connected from [140.85.4.227]
    [Mon Nov  4 11:24:35 2013]Local/SMARTPln/SMARTPln/gbeaton@CAL1/1134020928/Info(1013091)
    Received Command [SetAlias] from user [gbeaton@CAL1]
    [Mon Nov  4 11:24:35 2013]Local/SMARTPln///1135073600/Info(1042059)
    Connected from [140.85.4.227]
    [Mon Nov  4 11:24:35 2013]Local/SMARTPln/SMARTPln/gbeaton@CAL1/1135073600/Info(1020089)
    Ignoring span Hybrid Analysis option. Spanning into Hybrid Analysis Relational Source has been disabled. See the essbase.cfg file
    [Mon Nov  4 11:24:35 2013]Local/SMARTPln/SMARTPln/gbeaton@CAL1/1135073600/Info(1020055)
    Spreadsheet Extractor Elapsed Time : [0] seconds
    [Mon Nov  4 11:24:35 2013]Local/SMARTPln/SMARTPln/gbeaton@CAL1/1135073600/Info(1020082)
    Spreadsheet Extractor Big Block Allocs -- Dyn.Calc.Cache : [7] non-Dyn.Calc.Cache : [0]
    [Mon Nov  4 11:24:38 2013]Local/SMARTPln///1128757568/Info(1042059)
    Connected from [140.85.4.227]
    [Mon Nov  4 11:24:38 2013]Local/SMARTPln/SMARTPln/gbeaton@CAL1/1128757568/Info(1013091)
    Received Command [SetAlias] from user [gbeaton@CAL1]
    [Mon Nov  4 11:24:38 2013]Local/SMARTPln///1131915584/Info(1042059)
    Connected from [140.85.4.227]
    [Mon Nov  4 11:24:38 2013]Local/SMARTPln/SMARTPln/gbeaton@CAL1/1131915584/Info(1020089)
    Ignoring span Hybrid Analysis option. Spanning into Hybrid Analysis Relational Source has been disabled. See the essbase.cfg file
    [Mon Nov  4 11:24:38 2013]Local/SMARTPln///1131915584/Info(1002089)
    RECEIVED ABNORMAL SHUTDOWN COMMAND - APPLICATION TERMINATING
    [Mon Nov  4 11:24:52 2013]Local/SMARTPln///1218234688/Error(1013204)
    Client Commands are Currently Not Being Accepted
    Can you please help me out form this .
    Regards,
    Kiran.

    Hi Mady,
    Thanks for the reply.
    We have increased the Heap size and restarted the services. But this issue still exists. And also restarted the entire system but the result is the same.
    We are unable to find the root cause which is causing this issue.
    Can any one suggest me....
    Thanks in Advance.
    Regards,
    Kiran.

  • Cannot determine the ipaddress using the ifconfig command

    cannot determine the ipaddres of solaris OS. I have my oracle db installed on Solaris OS using vmware.
    But I cannot determine the ipaddress using the ifconfig command.
    My native OS is windows vista enterprise. I want to connect my database installed on solaris OS on a vmware machine through TOAD
    Native OS:windows vista enterprise
    Toad :10.5
    OS:solaris 10
    vmware version:6.0.4
    Database:10.2.0
    Pasting the details below.
    # ifconfig
    usage: ifconfig <interface> | -a[ 4 | 6 | D ][ u | d ][ Z ]
    [ <addr_family> ]
    [ <address>[/<prefix_length>] [ <dest_address> ] ]
    [ set [ <address>][<prefix_length>] ] [ <address>/<prefix_length>] ]
    [ destination <dest_address> ]
    [ addif <address>[/<prefix_length>] [ <dest_address> ] ]
    [ removeif <address>[/<prefix_length>] ]
    [ arp | -arp ]
    [ auto-revarp ]
    [ broadcast <broad_addr> ]
    [ index <if_index> ]
    [ metric <n> ] [ mtu <n> ]
    [ netmask <mask> ]
    [ plumb ] [ unplumb ]
    [ preferred | -preferred ]
    [ private | -private ]
    [ local | -local ]
    [ router | -router ]
    [ subnet <subnet_address>]
    [ trailers | -trailers ]
    [ token <address>/<prefix_length> ]
    [ tsrc <tunnel_src_address> ]
    [ tdst <tunnel_dest_address> ]
    [ auth_algs <tunnel_AH_authentication_algorithm> ]
    [ encr_algs <tunnel_ESP_encryption_algorithm> ]
    [ encr_auth_algs <tunnel_ESP_authentication_algorithm> ]
    [ up ] [ down ]
    [ xmit | -xmit ]
    [ modlist ]
    [ modinsert <module_name@position> ]
    [ modremove <module_name@position> ]
    [ group <groupname>] | [ group ""]
    [ deprecated | -deprecated ]
    [ standby | -standby ]
    [ failover | -failover ]
    [ zone <zonename> | -zone ]
    [ usesrc <interface> ]
    [ all-zones ]
    or
    ifconfig <interface> | -a[ 4 | 6 | D ] [ u | d ]
    auto-dhcp | dhcp
    [ wait <time> | forever ]
    [ primary ]
    start | drop | ping | release | status | inform
    when i give the command ifconfig -a, it is only showing the inet address
    # ifconfig -a
    lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
    inet 127.0.0.1 netmask ff000000
    Thanks in advance
    Edited by: user13364377 on Aug 21, 2010 12:13 PM

    user13364377 wrote:
    cannot determine the ipaddres of solaris OS. I have my oracle db installed on Solaris OS using vmware.Then it is not configured... I mean, if the ifconfig command does not return an interface and IP address, then surely the initial reaction should be "+oops, I made a config error+" and not "+bug/error!! wtf is going on!?+".

  • Every Time I do the say command in terminal it shows and error message

    Every time I use the say command in terminal it brings an error message but I does say the message why does it put the error message please help

    This behavior appears to be arising with some 10.8.4 systems, based on some web searches.
    Based on what I've found, there's no specific known trigger, nor any certain cure for this.
    See if the discussion in this thread helps any with resolving the MTBEAudioUnitSoundOutput:: PropagateProperty Error -10851 error. 
    From that discussion thread, please remove any anti-malware software that might be installed and test, and create a second and separate login user and log into that user and test the say command.  
    Also test with the stock voices and not something that's been downloaded, and also (again, as a test, particularly if you're not using an English locale) see if switching your shell locale to the C locale (export LC_ALL=C) alters the behavior.
    If the system is still under warranty or if you have AppleCare with this system, please call Apple support directly and ask.

  • How do I undo these commands from terminal?

    I was trying to copy music from my iPod to my mac, so I copy & pasted these two commands into terminal:
    defaults write com.apple.finder AppleShowAllFiles TRUE
    killall finder
    Now there's an icon on my desktop that i can't delete that says ".DS_Store and I can't open it with any of my applications.
    Please help!
    Thanks

    Not sure, try this:
    defaults write com.apple.finder AppleShowAllFile FALSE
    then
    killall Finder

  • [Solved] ifconfig command not found?

    I'm installing arch on Lenovo Y460 whose eth controller is broadcom adapter.
    When installing basic system, I tried following
    modprobe -r tg3
    modprobe broadcom
    modprobe tg3
    /etc/rc.d/network restart
    then the install program recognize eth0 fine.
    After basic system installed, I did nearly the same thing, then tried
    ifconfig eth0 up
    But surprisingly bash complaint that "ifconfig command not found". Is there anything bad I have done? TIA.
    Last edited by neuront (2011-07-18 06:37:04)

    PIMPinator wrote:Oh man, just did a fresh install on a laptop and had no idea what was going on, and didn't see anything in the wiki. I don't see how ip is used though, i can't even see how to list interfaces.
    It isn't that hard, you just need to use your brain a bit. just typing `ip` shows the list of available subcommands. For interfaces, e.g. links:
    $ ip link show
    1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether f2:3c:91:96:cb:ca brd ff:ff:ff:ff:ff:ff
    7: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 100
    link/none
    And to show addresses assigned to those links:
    $ ip addr show
    1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    inet6 ::1/128 scope host
    valid_lft forever preferred_lft forever
    2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether f2:3c:91:96:cb:ca brd ff:ff:ff:ff:ff:ff
    inet 173.255.192.10/24 brd 173.255.192.255 scope global eth0
    inet 192.168.142.70/17 brd 192.168.255.255 scope global eth0
    inet6 2600:3c00::f03c:91ff:fe96:cbca/64 scope global dynamic
    valid_lft 43051sec preferred_lft 43051sec
    inet6 fe80::f03c:91ff:fe96:cbca/64 scope link
    valid_lft forever preferred_lft forever
    7: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 100
    link/none
    inet 10.8.0.1 peer 10.8.0.2/32 scope global tun0

  • Comment supprimer un dossier via les commandes du terminal ?

    Bonjour à tous,
    Je possède un macbook air dernière génération est ai un petit problème dessus.
    J'ai saturé mon disque dur interne (128 GO) et eu la (fausse) bonne idée d'éteindre mon mac.
    Lorsque que j'essaie de le rallumer, après avoir taper le mot de passe de ma session, un écran blanc apparait à la place de mon bureau.
    Un message d'erreur apparait "Votre disque de démarrage est saturé. Vous devez libérer de la place sur votre disque en supprimant des fichiers."
    Sauf que je ne peux accéder à mes fichiers..
    J'ai essayé de supprimer des fichiers via les commandes du terminal (démarrage en mode single user) mais ça ne marche pas..
    Est ce que quelqu'un sait comment faire sans restaurer totalement mon disque dur ??
    Merci d'avance 

    Plus d'infos ici : Aide de Creative Cloud | Partage de fichiers et de dossiers
    Par contre, pour le moment, pas de granularité des droits, juste des liens publics ou privés.

  • How do i get my commands in terminal

    I am trying to get certain commands in terminal but it will not let me download them
    I tried installing wget but it will not install in the usr/local/bin.
    I dont think I have that folder or that file
    What am i doing wrong on my mac?

    You don't need to sudo su, just sudo /dev/tty
    According to the man page,
    The most common reason for stat(2) to return "permission denied" is if you are running
           an automounter and one of the directories in your PATH is on a machine that is currently unreachable.

  • Terminal Commands/learn terminal

    Hi everyone i was wondering if there is some commands for terminal that won't mess up my computer?  I also want to ask if there is an easy or a simple way for beginers with no programming experience to learn terminal well.
    thanks

    You might try Mac OS X Lion for Dummies, or if you want to get more advanced, UNIX for Dummies.
    For experimenting, create a Standard user account that you use only for this.  That will protect the system itself and your regular account if you do make a mistake.

Maybe you are looking for

  • UpdateXML feature or bug?

    Stupid server error again duplicating my threads... Grrrr! Message was edited by: blushadow

  • Zen M100 with 1 day of use no longer works

    *Zen M00 with day of use no longer works. After a few hours leave it's plugged into the USB, I realized that it's was abnormal screen. I tried to unplug it from USB by Windows but it still fails. After removing it from the USB and tried calling then

  • MS CRM 2013 app for SharePoint Online 2013

    I am trying to create a sharepoint list in sp2013 that read crm data and list it in sharepoint. I would like to confirm if what i have read so far is true. Odata feed from sharepoint is not a valid source, bcs only works with on premise. And azure pr

  • Cannot change Desktop picture

    My new 15" MacBook Pro running 10.6.8 will not allow me to choose my own Photo as Desktop. Any ideas, anyone? Thanks!

  • STMS configuration windows and unix

    Dear guru, We had a two system landscape.Dev system in windows and prd system in unix. We are configuring the STMS . We take domain controller in prd system.The common transport Directory in Prd system that will map to dev system .There is a error me