学习操作Mac OS 之 常用命令

~ 符号在 Mac 甚至所有基于 Unix 和 Linux 的系统中都是代表当前用户的用户目录,.代表当前目录

配置环境变量语句:  source ~/.bash_profile

查看host文件语句: sudo vi /etc/hosts

修改host文件语句: sudo -s

                        cat   ~/123.txt   /etc/hosts    

删除包含文件的文件夹:sudo rm -r -f 文件夹名

调整到文件开头/结尾:command + fn + 左/右, (fn + 左/右相当于home/end)

ps -ef |grep  XXX  查看关于XXX进程是否运行      扩:jps    使用java进程  

kill -9 XXXXX

  

如果你想打开整个系统的隐藏文件可以在终端下输入以下命令

defaults write com.apple.finder AppleShowAllFiles Yes && killall Finder //显示隐藏文件

defaults write com.apple.finder AppleShowAllFiles No && killall Finder //不显示隐藏文件

 

 mac开发配置手册:

 https://aaaaaashu.gitbooks.io/mac-dev-setup/content/Node.js/index.html

 

 推荐博文:

mac下终端常用命令的使用:

http://jingyan.baidu.com/article/08b6a591aac09614a909224f.html

http://www.cnblogs.com/iphone520/archive/2012/03/26/2418468.html

https://www.macx.cn/thread-2124641-1-1.html?mod=viewthread&tid=2124641&extra=page%253D1&page=1

 

 

posted @ 2017-08-02 16:13  简笔话_Golden  阅读(308)  评论(0编辑  收藏  举报