Go Back   TechArena Community > Software > Operating Systems
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , ,

Sponsored Links



Mac OS X Terminal Commands?

Operating Systems


Reply
 
Thread Tools Search this Thread
  #1  
Old 02-03-2009
Member
 
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
Reply With Quote
  #2  
Old 02-03-2009
SalVatore's Avatar
Member
 
Join Date: May 2008
Posts: 2,618
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.
Reply With Quote
  #3  
Old 02-03-2009
SalVatore's Avatar
Member
 
Join Date: May 2008
Posts: 2,618
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
Reply With Quote
  #4  
Old 02-03-2009
SalVatore's Avatar
Member
 
Join Date: May 2008
Posts: 2,618
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.
Reply With Quote
  #5  
Old 02-03-2009
SalVatore's Avatar
Member
 
Join Date: May 2008
Posts: 2,618
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
Reply With Quote
  #6  
Old 02-03-2009
SalVatore's Avatar
Member
 
Join Date: May 2008
Posts: 2,618
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
Reply With Quote
  #7  
Old 02-03-2009
SalVatore's Avatar
Member
 
Join Date: May 2008
Posts: 2,618
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
Reply With Quote
Reply

  TechArena Community > Software > Operating Systems


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Mac OS X Terminal Commands?"
Thread Thread Starter Forum Replies Last Post
How to Migrate user Profiles from 2003 Terminal Server 32bit to 2008 Terminal Server 64bit Zweena Operating Systems 5 22-08-2010 03:39 AM
MS-DOS top 10 commands Roasted Operating Systems 4 27-03-2010 07:19 PM
Run Commands for Win XP Rohit Kasle (RK) Tips & Tweaks 1 06-02-2010 10:15 AM
Need Basic Dos commands for Commands prompt JangoRap Operating Systems 5 29-06-2009 01:07 PM
Useful DNS Commands K.gupta Guides & Tutorials 3 10-08-2005 10:16 PM


All times are GMT +5.5. The time now is 10:30 PM.