Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

brian9271

macrumors 6502
Original poster
Jan 31, 2008
318
0
Next door
Hey there, I was wondering if I could shut down my Macbook remotely using terminal, so lets say I'm using my friends Macbook at his place, then I type my Ip Address into terminal and I shut it down, what commands would I need to type?
 

belvdr

macrumors 603
Aug 15, 2005
5,945
1,372
Do a man on shutdown in terminal:
Code:
man shutdown

Looks like:
Code:
shutdown -h now
will do the trick.
 

MacsRgr8

macrumors G3
Sep 8, 2002
8,316
1,832
The Netherlands
Don't forget to "allow" Remote Login" (SSH) first by enabling that in the System Prefs - Sharing tab.

As you will understand by default remote login is off. Would be a HUGE security risk if it is left on without a very strong password!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.