The MAC server needs to turn on Telnet first. Open with: System Preferences, share check remote login
Common commands are:
Copy (copy the native file to the remote server) Scp-r Local path/file userName@192. 168. XXX. XX:/tmp#userName为远程服务器用户名称, followed by the server address,/tmp for a remote server directory, and sometimes encounter permissions problems, you may consider copying to/tmp, log on to the remote service after the CP or MV. Enter the remote server current user login password to log in. Log on to the remote server: SSH userName@192. 168. XXX. XX #userName为远程服务器用户名称, followed by the server address. Enter the remote server current user login password to log in. Backup Zip-r dirName. zipDirName#先把需要更新的文件备份打包成zipDecompression Unzip Shell. zip #如果产生了__MACOSX目录, please review the previous article. Address: [link text] (http://blog.csdn.net/showhilllee/article/details/47067115 "mac decompression command __macosx related files")Delete RM-RF filename remote view/control (with UI interface) requires remote management, open mode: System Preferences, share click to turn on remote management in the native System browser Safari address Enter:VNC://192.168. XXX. XXEnter the remote address IP after the return, after the pop-up point connection, the User name password input box appears, enter the remote machine login username and password, determined to remote control
Also, if the normal Mac machine is configured as a server needing attention:
1. Turn on sharing
-Tap system Preferences, share. Click to open Remote management
2. Confirm that computer hibernation is off
-Power saver, click to open System Preferences:
-Check to prevent the computer from automatically entering sleep when the monitor is turned off
-Uncheck the check box if possible, make the hard drive go to sleep
-Check wake-up for network access
-Automatic start after power off
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Mac Server service updates several common shell commands