- To update macOS from the command line, first launch Terminal, which can be found in the Applications/Utilities folder. This will open a Terminal window and a command prompt for you to begin typing.
- This command sources the.bashrc and.bashprofile again, in the sense restarts the terminal and creates a new terminal session. It works for me. Give this a try! So, if you wanna restart the terminal, just enter rest (short for restart) in your terminal.
My question is, is there any simple way to restart the bash session from within the terminal on mac. I just want the same behaviour as if I closed the terminal application and started it again (all variables reset,.bashprofile sourced etc). I know how to source.bashprofile, but that's not what I want.
Use kickstart to set Apple Remote Desktop preferences. For example, you can install, uninstall, activate, set up, and restart Apple Remote Desktop components.
Learn how to control a remote Mac with Screen Sharing with the kickstart command-line utility in macOS Mojave 10.14 and later.
Get started
You can find the kickstart tool at:
/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart
/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart
Type the commands in this article as one line of text. If the text wraps as you enter it, that's fine. Don’t press the Return key until you’ve entered the entire command.
For more information about the kickstart command, use the -help flag:
Go transcribe jobs. Go Transcribe can return your files in minutes. Simply upload an audio file onto our platform using any device and we transcribe it automatically into a document for you. We've transcribed six hour-long interviews and go-transcribe works a treat. Not 100% by any means, but good enough to save us days of manual transcription.
Sample commands
The commands in this article work with Apple Remote Desktop 3.2 and later.
![Restart Restart](/uploads/1/3/7/8/137802020/812965626.png)
Here are commands that you can use:
- Restart the ARD Agent and helper:
- Turn on Remote Desktop Sharing, allow access for all users, and enable the menu extra:
- Turn on Remote Desktop Sharing, allow access for specified users:
You must use the -configure, -access, and -privs options in a separate command to specify the set of users and their access privileges. For example, this command is for users with the short names 'teacher' and “student.' It gives them access to observe (but not control) the computer, and to send text messages:
Unlike other kickstart options, you can’t combine the allowAccessFor options with other kickstart options. You must use it as in the last two samples above. You might have to call kickstart more than once to finish a computer’s setup. - Remove access privileges for specified users ('student' in this example):
- Disable ARD Agent and remove access privileges for all users:
Reader, tech dabbler, and Weeds actor Andy Milder, occasionally contacts me for technical advice. In exchange, I drop his name. I’d additionally like to drop this bit of advice in response to his latest query:
I want to restart my Mac remotely from another Mac. Is there a way to do that?
Absolutely. If you want to do it via the Mac’s GUI, move to the remote Mac, launch System Preferences, select the Sharing preference, and enable the Screen Sharing option.
When you want to shut down that Mac remotely, sit down in front of another Mac on the same network, select the remote Mac under the Shared entry in any Finder window, click the Share Screen button in that window, enter that Mac’s administrator’s name and password, and click Connect.
The remote Mac’s screen will appear on the local Mac’s desktop. Treat it like your local Mac and, within that window, choose Restart from its Apple menu. It will do as you’ve commanded.
Restart Mac With Terminal Command
![Force Force](https://cdn.tutsplus.com/mac/authors/legacy/Josh Johnson/2012/11/26/tamingterminal.png)
If you can’t or don’t wish to screen share you can do this via Terminal. Just follow these steps:
1. On the remote Mac launch System Preferences and choose Sharing. Click the lock icon and enter your Admin password to unlock the preference.
2. Within that preference enable the Remote Login option. In this window you’ll see the command for accessing your remote Mac—something along the lines of ssh andy@macsipaddress (where macsipaddress is, naturally, the Mac’s IP address). Close System Preferences.
3. On the local Mac (which is running on the same local network as the remote Mac) launch Terminal (/Applications/Utilities) and enter
ssh andy@macsipaddress
(again, substituting the IP address).4. After the inherent delay enter your password for the remote Mac.
5. Enter
sudo shutdown -r now
Gps tracker online, free.The remote Mac will restart immediately. (And I do mean immediately—there’s no option to elegantly quit applications. The remote Mac simply restarts without issuing any warnings about saving open files.)
You can delay the restart for awhile if you like. To do that, enter something like
sudo shutdown -r +5
. Were you to use that exact text, your remote Mac would restart in five minutes. Enter +1 and it restarts in one minute. Restarting mac to factory settings. You get the idea, after the + sign just enter the number of minutes you want to delay restart.Mac Terminal Reboot
Have a Mac 911 question of your own that you’d like to appear in this space? Just drop me an email message at [email protected] (no personal replies guaranteed). You can additionally follow me on Twitter.