大家有没有一些常用的 mac 命令呢

2016 年 9 月 18 日
 monkindey

优化自己的工作流,简单实用的Mac命令的呢?

7165 次点击
所在节点    macOS
56 条回复
Xrong
2016 年 9 月 18 日
open .
mcfog
2016 年 9 月 18 日
仅限 mac 的话,只能想到 pbcopy pbpaste 了,或者 open ?

其它能想到的都是 linux/mac 都有的
viko16
2016 年 9 月 18 日
open -a {xxx 程序} {xxx 文件}
newbieo0O
2016 年 9 月 18 日
买本鸟哥私房菜学学。
coymail
2016 年 9 月 18 日
推荐 Macintosh Terminal Pocket Guide 这本书
sammo
2016 年 9 月 18 日
常用的都做成了 alias...
realwangyibo
2016 年 9 月 18 日
vim xxx.txt
git add .
git commit
git push
git checkout
git rm -rf --cached xxx
brew install xxx
brew upgrade
cmake ..
make
mkdir -p xxx
rm -rf xxx
Tink
2016 年 9 月 18 日
dot_clean
endoffight
2016 年 9 月 18 日
zsh + oh-my-zsh
clearc
2016 年 9 月 18 日
brew doctor....
hei1000
2016 年 9 月 18 日
常用的创建 alias 简化啊
TimePPT
2016 年 9 月 18 日
sudo periodic daily weekly monthly
thekoc
2016 年 9 月 18 日
mdfind
L3ve
2016 年 9 月 18 日
alias server='python -m SimpleHTTPServer'
alias show='defaults write com.apple.finder AppleShowAllFiles -bool true && killall Finder'
alias hidden='defaults write com.apple.finder AppleShowAllFiles -bool false && killall Finder'
alias port='port(){ lsof -i tcp:$@;};port $1'
initdrv
2016 年 9 月 18 日
@L3ve 感觉很厉害啊,也挺方便吧。
Valyrian
2016 年 9 月 18 日
@L3ve 为啥一个是 show 另一个是 hidden 。。
ynyounuo
2016 年 9 月 18 日
ynyounuo
2016 年 9 月 18 日
@Valyrian show hidden files 的自动联想吧 - - 没想到写 hide
williamx
2016 年 9 月 18 日
@mcfog 好奇什么情况下用 pbcopy pbpaste ?自从知道这两个命令以来一直都没有机会用。 iterm2 ,好像用鼠标更方便。
MaiCong
2016 年 9 月 18 日
open
git
svn
cd
rm

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/306973

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX