Homebrew软件安装
Homebrew是Mac OSX上的软件包管理工具
能在Mac中方便的安装软件或者卸载软件,相当于linux下的apt-get、yum神器
工具目录:/usr/local/Cellar
并在 /usr/local/bin 中创建符号链接。
安装语句
ruby -e "$(curl -fsSL
https://raw.githubusercontent.com/Homebrew/install/master/install)"
使用方式
安装/卸载软件:brew install/uninstall 软件名
搜索软件:brew search 软件名
显示已安装软件:brew list
更新所有软件:brew update (软件名,更新特定的软件)
查看软件信息:brew info/home 软件名
brew home指令是用浏览器打开官方网页查看软件信息
查看那些已安装的程序需要更新: brew outdated
显示包依赖:brew reps
SSH 命令
- Linux方式:
ssh 用户名@ip地址
- Mac方式:
terminal —> shell —> 新建远程连接(包括登录,上传文件)
SCP命令
Linux方式
scp <local file> <remote user>@<remote machine>:<remote path>
Mac 方式:
新建远程连接—> Sftp (remote user,emote machine)
1. 命令:put <local file> <remote path> 2. 命令:get <remote file> <local path> 3. 批量命令:mget, put
清屏
- mac os x terminal清屏快捷键:
cammand+k
- linux系统清屏快捷键 :
ctrl+l (reset)
- windows 命令行清屏命令:
cls