Mac 命令行可用指令的组成
2017-05-07 本文已影响5人
谢小帅
系统自带指令
ShuaideMacBook-Pro:~ shuai$ cd /bin
ShuaideMacBook-Pro:bin shuai$ ls
[ csh echo ksh mkdir rm sync zsh
bash date ed launchctl mv rmdir tcsh
cat dd expr link pax sh test
chmod df hostname ln ps sleep unlink
cp domainname kill ls pwd stty wait4path
本地添加指令
ShuaideMacBook-Pro:~ shuai$ cd /usr/bin/
ShuaideMacBook-Pro:bin shuai$ ls
2to3 findrule5.18 mdutil security
2to3- finger memory_pressure sed
2to3-2.7 fixproc mesg seeksize.d
……
用户添加的PATH下的指令
如添加的Anaconda的bin内目录下的ipython指令
ShuaideMacBook-Pro:~ shuai$ cat .bash_profile
# Setting PATH for MySQL
export PATH=${PATH}:/usr/local/mysql/bin
# added by Anaconda3 4.2.0 installer
export PATH="//anaconda/bin:$PATH"