Results 1 to 7 of 7

Thread: Mac OS X Terminal Commands?

  1. #1
    Join Date
    Jan 2009
    Posts
    74

    Mac OS X Terminal Commands?

    Hi guys!
    I have been using windows 7 beta until now. I have bought a Mac OS X for intel CPU... I installed it and it looks awesome...! Worth Trying. I have used linux a couple of times but not too familiar with it. Mac is similar to linux as its shell is a unix based shell. So now i'm planning to use Mac for a long time and i need to be familiar with its commands... Can any one help me?
    Thanks

  2. #2
    Join Date
    May 2008
    Posts
    2,680

    Re: Mac OS X Terminal Commands?

    Here is a list for some useful commands, but i'm not sure if it works on Intel CPU based Mac. Try it out yourself :

    Use your screensaver as wallpaper

    You can use your current screensaver as a wallpaper for your desktop. You can do this with the following command:
    Code:
    cd /System/Library/Frameworks/ScreenSaver.framework/Resources/
    cd ScreenSaverEngine.app/Contents/MacOS/
    ./ScreenSaverEngine -background &
    The terminal should reply with a PID number. Note this number. You need it to restore your desktop.
    You can restore it with this:
    Code:
    kill PID XX
    XX stands for the PID number.
    The desktop is also restored after logging off and then back on.

  3. #3
    Join Date
    May 2008
    Posts
    2,680

    Re: Mac OS X Terminal Commands?

    Moving the Dock to the Left or Right
    You can move your Dock to the Left or Right by using a single command.

    Left:
    Code:
    defaults write com.apple.dock pinning -string start
    killall Dock
    Right:
    Code:
    defaults write com.apple.dock pinning -string start
    killall Dock
    Restore:
    Code:
    defaults write com.apple.dock pinning -string ""
    killall Dock

  4. #4
    Join Date
    May 2008
    Posts
    2,680

    Re: Mac OS X Terminal Commands?

    Eject a disc
    Sometimes there's a possibiity that yu can't eject a disc with the Eject-button. You can force it with this command:

    Code:
    disktool -e disk#
    Put widgets on the Desktop
    By default, the Widgets are only visible when you open the Dashboard. But with a minor modification you can drag them to your Desktop using this command:

    Code:
    defaults write com.apple.dashboard devmode YES
    Restart your Dock to see the change :

    Code:
    killall Dock
    Now you can drag Widgets to your Desktop. To restore it, use this command:

    Code:
    defaults write com.apple.dashboard devmode NO
    Then restart our Dock again to see the change.

  5. #5
    Join Date
    May 2008
    Posts
    2,680

    Re: Mac OS X Terminal Commands?

    Disable Disk Image Verification
    By default when you open a Disk Image (.dmg), it will first verify the contents of the image. This can be disabled with this command:

    Code:
    defaults write com.apple.frameworks.diskimages skip-verify true
    To restore the setting use :

    Code:
    defaults write com.apple.frameworks.diskimages skip-verify false
    Make the icons of hidden applications in the Dock transparent
    ou can make the icons in the Dock of hidden applicaitons transparent using this command:

    Code:
    defaults write com.apple.Dock showhidden -bool YES
    To restore use :

    Code:
    defaults write com.apple.Dock showhidden -bool NO
    Show hidden files in the Finder
    To show hidden files in the Finder, use this command:

    Code:
    defaults write com.apple.finder AppleShowAllFiles TRUE
    Use this command to restore this change:

    Code:
    defaults write com.apple.finder AppleShowAllFiles FALSE

  6. #6
    Join Date
    May 2008
    Posts
    2,680

    Re: Mac OS X Terminal Commands?

    Add A Custom Message To The Login Window
    This command enables you to add a custom message to the Login window :

    Code:
    sudo defaults write /Library/Preferences/com.apple.loginwindow LoginwindowText "Custom Message"
    To restore the setting use :

    Code:
    sudo defaults write /Library/Preferences/com.apple.loginwindow LoginwindowText ""
    Increase Dock Magnification Size
    This commands lets you increase the size of the magnification of the dock icons. Max Value: 512

    Code:
    defaults write com.apple.dock largesize -int 512

  7. #7
    Join Date
    May 2008
    Posts
    2,680

    Re: Mac OS X Terminal Commands?

    Increase Desktop Icon Size
    This command lets you increase the icons upto 512 pixels x 512 pixels. This hogs a lot of CPU and may slow down on older machines. Max Value: 512.

    Code:
    defaults write com.apple.finder DesktopViewOptions -dict IconSize -integer 512
    killall Finder
    Change The Login Picture
    If you want to change the picture used on the login screen, you can change it with this command. Change the file location in the second half of the string to the exact image file location.

    Code:
    defaults write /Library/Preferences/com.apple.loginwindow DesktopPicture "/path-to-you-image/image.xxx"
    xxx is the extension of the image.

    Disable Dashboard
    If you don’t want the dashboard running you can disable it. Change YES to NO to enable it again.

    Code:
    defaults write com.apple.dashboard mcx-disabled -boolean YES
    killall Dock

Similar Threads

  1. MS-DOS help and commands
    By Kalyug in forum Operating Systems
    Replies: 8
    Last Post: 24-05-2011, 12:39 AM
  2. Run Commands For Win 7
    By Rohit Kasle (RK) in forum Tips & Tweaks
    Replies: 1
    Last Post: 19-05-2011, 08:04 AM
  3. Replies: 5
    Last Post: 22-08-2010, 02:39 AM
  4. The terminal of MAC OS X
    By jhon in forum Operating Systems
    Replies: 5
    Last Post: 09-02-2010, 08:47 AM
  5. Need Basic Dos commands for Commands prompt
    By JangoRap in forum Operating Systems
    Replies: 5
    Last Post: 29-06-2009, 12:07 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,547,949.75580 seconds with 17 queries