Contents

mac command

Contents

sshd

启动

1
$ sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist

停止

1
$ sudo launchctl unload -w /System/Library/LaunchDaemons/ssh.plist

查看是否启动成功

1
2
3
$ sudo launchctl list | grep ssh
说明成功
	# 0	com.openssh.sshd

配置vim 语法高亮

1
2
3
4
5
6
7
cp /usr/share/vim/vimrc ~/.vimrc

vim ~/.vimrc
##添加以下内容
syntax on
set nu!
set autoindent