Mac Server service updates several common shell commands

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.