Slow Terminal Commands

Hi,
I have found lately that many of my terminal commands are slow to execute . For example the command java is very slow but once I have run it once it runs very fast after that.
I'm not talking about how long it takes to compile but how long it takes to actually run the command in the first place.
Does anybody have a solution?

Sorry, I wasn't more specific. My main problem is with Javac actually, the java compiler. I rebooted my MacBook and ran the command
*time javac testfile.java*
*And the output was:*
real 0m4.289s
user 0m0.608s
sys 0m0.276s
*and then I ran it again and the output was:*
real 0m0.449s
user 0m0.327s
sys 0m0.074s
It just seems to be slow the first time around and then fast after that. It is annoying since it never used to happen before

Similar Messages

  • Terminal commands

    I am looking for a good manual or resource of terminal commands to download. Does anyone know of one.
    I am pretty new to terminal but not new to Mac OSX
    I want to do a few tweaks and if anyone knows the commands then please let me know.
    1st i want to make it so that when I CMD + TAB to an Application the Window of the App is live and I no longer need to click on the window to use it.
    Also I would like there to be no need for me to do the 2 click on a window to be able to say, type in this box or click on a button or link. I find the settings very annoying and slow you down a lot when using a lot of apps at once.
    There are many other tweaks i would like to do but for now these will do.
    Thanks.

    Ah, Ask and thou shalt receive:
    Straight from Steve's library;http://manuals.info.apple.com/enUS/Command_Line_Adminv10.5.pdf
    They ought to call it "The real Men and Womens MacOSXSrvr_guide"
    http://manuals.info.apple.com/enUS/File_Services_Adminv10.5.pdf
    Another essential from Steve's Library about new stuff in Leo.
    http://www.apple.com/downloads/macosx/unixopensource/clix.html
    You're going love this little gem.
    http://www.macobserver.com/tips/macosxcl101/index.html
    http://www.matisse.net/OSX/darwin_commands.html
    And a couple of nice informative web pages to boot.
    That ought to keep you intrigued for a while.
    Kj
    P.S. Can you feel me?...
    Yeah, You got it!!!
    Message was edited by: KJK555

  • Terminal command for tabs to open in same window

    anyone know the terminal command to have all links open in tabs instead of a new window - why does mac call it tabs when it does not even actually work - any help would be great - i had the command and i deleted it......driving me nuts

    Greetings,
    There is no such command; there is a command to force targeted links to open in new tabs, but it will have no effect on links that are controlled by JavaScript. Open Terminal and enter:
    defaults write com.apple.Safari TargetedClickCreateTabs -bool true
    press Enter or Return, then quit Terminal and restart Safari.

  • I get "App Store Disabled" on my MacBook Pro due to profile issues. What Terminal command can I use to reset profile settings?

    After transferring documents from one MacBook Pro to another I get some weird errors due to settings that seem to have transferred over. One is that the Mac App Store is disabled.
    Are there any Unix / Terminal commands I can use to reset these?

    Forgot Your Account Password
    For Lion/Mountain Lion
        Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
         When the menubar appears select Terminal from the Utilities menu.
         Enter resetpassword at the prompt and press RETURN. Follow
         instructions in the dialog window that will appear.
         Or see Reset a Mac OS X 10.7 Lion Password and
         OS X Lion- Apple ID can be used to reset your user account password.

  • How can I change the "Ask to join new networks" option using a terminal command?

    We are currently switching to a new wireless network throughout our school district and I have pushed commands to connect to the new and remove the old. However, any Macs that have "Ask to join new networks" enabled are jumping over to our unsecure guest network, even if that network has been removed from the list of Preferred Networks. So far the fix has been to remove the guest network from the list of Preferred Networks and then disable Ask to join. The only issue I'm running into now is I have been unable to find a terminal command to change this setting. Once I have the command I can write a script and send that out to all of the Macs.
    So is there a way to disable "Ask to join new networks" using command line?

    sed -i "" 's/Prompt/DoNothing/' /Library/Preferences/SystemConfiguration/preferences.plist

  • What are the terminal commands to list all plugins, extensions, etc?

    I remember a while ago reading a thread on diagnosing kernel panics and such, where someone listed a number of commands (I think there were four separate terminal commands) which produced lists of plugins, daemons, background enhancers, extensions etc which could sap resources or drive up temperature without necessarily showing up in activity monitor or anything like that.
    Anyone know what these commands are? I'm having some serious overheating problems at the moment when doing nothing but for instance watching a youtube video with no other processes running so I'd like to get these dumps and see if there's anything installed which could be causing trouble.

    Check this out : http://helpx.adobe.com/story/help/keyboard-shortcuts.html

  • How do I back up the music and apps etc. I restored my computer and I reinstalled iTunes, I was told something about a terminal command line, what does that mean? Please help

    How do I back up the music and apps etc. I restored my computer and I reinstalled iTunes, I was told something about a terminal command line, what does that mean? Please help

    - Transfer iTunes purchases to the computer by:
    iTunes Store: Transferring purchases from your iOS device or iPod to a computer
    - Transfer any other music by using a third-party program like one of those discussed here:
    Copy music
    - Connect the iPod to the computer and make a backup by right clicking on the iPod under Devices in iTunes and select Back Up
    - Restore the iPod from that backup. The restore will also update the iOS.
    Note that the backup that iTunes makes does not include synced media like apps and music
    Are you sure you have a 3G iPod? A 1G iPod can only go to iOS 3.1.3
    See:
    Identifying iPod models

  • How to reset the network IP address from terminal/command line in Mac OSX?

    Do anyone knows how to set the network IP address from terminal/command line in Mac OS X?

    how about a GUI, ever heard of a GUI? it's this really neat thing, where you don't have to worry about remembering long strings of text to do something. Mac OS X actually has a rather decent one (that was sarcasm by the way, Mac is the best) you could have it done in like 30 sec, if you use the network pane of system preferences.

  • Can't seem to sync my phone with iCal because I get a message that says:No writable calendar. I tried the suggestions I found in Help including a Terminal command to no avail.

    Can't seem to sync my phone with iCal because I get a message that says:No writable calendar. I tried the suggestions I found in Help including a Terminal command to no avail.

    I can only suggest you now need to somehow link your mobile to sync with the new calendar 'On my Mac'.
    I have a work Blackberry whose calendar I sync with an iCal calendar 'On my Mac' using a usb lead and the Blackberry Desktop Manager for Mac. This free piece of software from Blackberry, automatically starts up as soon as I connect the usb to the iMac and it then prompts me to select which calendar 'On the iMac', which is writable, that I want my Blackberry to sync to.

  • Terminal command to refresh USB peripheral device

    I'm running OS 10.7.5, and I have a recurring problem with the USB ports on my Mac mini.  After several days of up-time, one or more of the ports will sometimes become non-responsive.  This seems to be software related, because logging off and logging back into the machine always fixes the problem (as does a restart and a cold-reboot).  I was thinking maybe the "checklist" of device filenames somehow gets corrupted over time, and needs to be recreated.
    Does anyone know how to refresh the list of peripheral devices without restarting, rebooting, or logging off?  Ideally a terminal command?  I'm hoping not to have to keep shutting down the session each time this happens to get my list of connected devices back.
    Thanks very much for your suggestions for the newbie.

    Hi Korby,
    If you are having difficulties with USB devices such as you describe, I would suggest resetting your Mac mini’s parameter RAM, as described in this article -
    About NVRAM and PRAM
    http://support.apple.com/kb/HT1379
    Specifically -
    Resetting NVRAM / PRAM
    Shut down your Mac.
    Locate the following keys on the keyboard: Command (⌘), Option, P, and R. You will need to hold these keys down simultaneously in step 4.
    Turn on the computer.
    Press and hold the Command-Option-P-R keys before the gray screen appears.
    Hold the keys down until the computer restarts and you hear the startup sound for the second time.
    Release the keys.
    Thanks for using Apple Support Communities.
    Best,
    Brett L

  • How to make Apple Script do a terminal command

    Hey,
    I am wondering how can I make an AppleScript do the following command :
    "networksetup -setdnsservers Wi-Fi 8.8.8.8 8.8.4.4"
    Please mention step by step since I'm new to AppleScript
    Best Regards,
    Nadav.

    To run a terminal command it is usually sufficient to use do shell script. So for your command it would be
    do shell script "networksetup -setdnsservers Wi-Fi 8.8.8.8 8.8.4.4"
    note if the command requires administrator privileges you would need to do
    do shell script "command"  with administrator privileges
    will prompt for the password when the script is run.
    do shell script "command" user name "me" password "mypassword" with administrator privileges
    will store the password and username in the script. More convenient but much less secure.
    See do shell script in AppleScript

  • Terminal Command, how to set defaults write, make application(s) use directory path where file last saved?

    Does anyone know whether there's a terminal command to make all applications remember/use the last directory/path where I last saved a file?
    For example, let's say there are (10) ten PDF's on a website, and I want to use Preview.app to open and save each file to the same directory.
    Problem is, after each time I save a file, Preview.app doesn't automatically remember/use the last directory where I saved my file(s).
    Forcing me to navigate back to the same directory after each time I save a file; super-annoying.
    But, for some reason, when saving images from the web, Firefox remembers the last directory where I saved the file (jpeg).
    So I'm hoping there's some way, possibly a terminal command to set/force all applications (including Preview.app) to remember/use the directory/path where file(s) were last-saved.
    Anyone?

    Get the third-party utility Default Folder X 4.4.9.

  • Terminal command to lock and unlock the dock?

    Hello,
    I manage hundreds of iMacs running Yosemite at a school site.  I use parental controls with the lock dock feature turned on.  I would like to periodically unlock the dock to customize it with new icons, but have not found a terminal command that works, or a streamlined process that is time efficient.
    So far I have been individually unlocking the dock in parent controls on each machine, restarting, editing the dock, then re-locking it parental controls, then restarting.  This takes 5-10 minutes per machine). 
    I also tried this command but it didn't work.
    defaults write com.apple.dock contents-immutable -bool true; killall Dock;
    I also tried cloning the parental controls with an exported plist file to all the machines using ARD, which works for all the parental control settings EXCEPT for the lock dock feature.
    Any ideas?
    Cheers,
    Crystal

    Sorry this is probably too late for you, but it may help others seeking this answer, I just had this problem [Mac OS x Yosemite 10.10.2] and found that the following worked for me:
    1. Use Terminal to LOCK the Dock by C&P or typing in:
    defaults write com.apple.dock contents-immutable -bool true
    Then use your preferred method to Log-Out [e.g. Key Combo ⇧⌘Q or  [Top Left Menu] then select Log Out “name”]
    and then Log-In again.
    2. Use Terminal to UNLOCK the Dock by C&P or typing in:
    defaults write com.apple.dock contents-immutable -bool false
    Then use your preferred method to Log-Out [e.g. Key Combo ⇧⌘Q or  [Top Left Menu] then select Log Out “name”]
    and then Log-In again.
    NB. You will be solely responsible for your actions making changes to the Operating System.

  • [SOLVED] Looking for a terminal command or key binding to exit Openbox

    I've searched the forums and googled, but I haven't been able to find the answer.  I'm sure I've missed it somewhere...
    I start my openbox session with 'startx' from the command line. I would like a terminal command or a key-binding to be able to exit openbox and return to the command line. I just don't like using the menu with my notebooks touchpad.  I just can't seem to figure out what command is used. The menu.xml file lists the command as "Exit", but typing that in a terminal just exits the terminal.
    Any help appreciated.
    Last edited by badfrog88 (2010-09-05 19:08:43)

    gorky wrote:ctrl-alt-backspace won't do the job?
    IIRC, it's disabled by default in xorg-server 1.7 and newer.
    @ badfrog88
    Ctrl + C will kill (almost) any running app you point it to.
    Last edited by karol (2010-09-05 19:17:29)

  • Terminal Commands for Internet Connect VPN?

    I could maybe do this as an applescript but I'm hoping there are terminal commands which I can incorporate into an rsync script...
    I need to open a PPTP VPN connection on a computer (Internet Connect VPN client, 10.4.8) , to connect to VPN services on OS X Server (10.4.8). The configuration works fine but really needs manual intervention at times. I would like to just script the equivalent of hitting the 'connect' button, so this can be run by cron.
    Any ideas or links?
    Ta.
    -david

    I did repair permissions with disk Utility and I used Onyx to delete the various caches, but that didn't work.
    Everything is functioning. The problem isn't on the VPN server side, because I can log into the VPN on my Powerbook and the status shows correctly. There's definitely something going on with my G5.
    This isn't a really huge deal, but it would be nice if the status indicated that I'm connected when I'm connected.

Maybe you are looking for

  • FCP 7 Export Quicktime Movie Suddenly Stopped working

    I use FCP7 on Mavericks 10.9.2. Working in Final Cut with raw ProRes 422 footage and wanting to export my sequence as Export Quicktime Movie. Worked fine until one day it just didn't. Final Cut exports a QT file that QT opens and immediately attempts

  • Matrox RTX-2 with CS4

    Has anyone had experience with CS4 in combination with Matrox RTX-2 card? I have recently upgraded from PPro2, and found I never really used my RTX-2 for any of my client's projects in 2.0 because I needed cross-platform compatibility with systems no

  • Iphone frame

    can i buy a new mid frame on the iphone 5 because the very top of my frame is slighty bent and when i have a screen protector on it and then i take a phone call it comes off

  • Can i send in my ipod and just get them to replace the case?

    I recently dropped my ipod and there is a HUGE crack in it now. i was just wondering if it was possible to send it in to apple and get them to change the case?

  • Oracle Pipes- 10g RAC?

    Oracle Pipes is not working on 10g RAC?