MAC 使用备忘录

http://mac.linsheng.me/archives/515.html

 

在标题栏上显示目录完整路径

defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES

killall Finder

 

 

在Finder中显示隐藏文件

defaults write com.apple.finder AppleShowAllFiles -bool true

KillAll Finder

 

 再terminal中高亮显示

在“~/.bash_profile”中加入

export CLICOLOR=1


修改terminal中的prompt

  • \d – Current date
  • \t – Current time
  • \h – Host name
  • \# – Command number
  • \u – User name
  • \W – Current working directory (ie: Desktop/)
  • \w – Current working directory, full path (ie: /Users/Admin/Desktop)
\! History number of command
\n Newline
\s Shell name
\\ A backslash



我习惯了linux下的显示方式,在“~/.bash_profile"加入
export PS1="[\u@\h \W]$ "


在Finder中快速定位目录

快捷键:Shift + Command + G     定位到想要的目录了。

  注意第一层目录“应用程序”、“资源库”等用英文,如:/Applications/实用工具/

  附 Finder 中其它常用目录定位快捷键:

  Shift + Command + A:定位到应用程序(Applications)

  Shift + Command + C:定位的计算机(Computer)

  Shift + Command + D:定位到桌面(Desktop)

  Shift + Command + I: 定位到 iDisk

  Shift + Command + K:定位到网络(Network)

  Shift + Command + T:添加当前目录到 Dock 最喜爱部分

  Shift + Command + U:定位到实用工具(Utilities)


如何在Terminal中打开Finder:

http://macsingularity.org/2003/11/01/open-a-folder-in-the-finder-from-the-terminal/

Here’s a simple but nifty trick. Say you’re navigating around in the Terminal and you would like to see the present working directory in the Finder? Just type

% open .

and the Finder will open up the folder you’re in. This works in both xterms and the Apple Terminal.


关闭显示器
ctrl+shift+右上角的推出键

mac默认已经安装了openssh,所以只需要打开服务即可。

选择System prefrence -> sharing , 将remote connectionx 打开即可。


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值