<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    Sealyu

    --- 博客已遷移至: http://www.sealyu.com/blog

      BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
      618 隨筆 :: 87 文章 :: 225 評論 :: 0 Trackbacks

    In OS X, hidden files (those starting with a period like .profile or .bashrc) can be a challenge to edit because they are, well, hidden and don’t show up in Finder windows. While there are tricks to make hidden files visible in Finder windows, I prefer to keep my hidden files hidden. I also prefer to edit them using vi, but I know that many folks are likely to think ’six’ instead of ‘editor’ when presented with vi. What follows is a simple way to edit a hidden file using TextEdit without making any changes to the system.


    When confronted with the task of editing your .profile file, there are several options. For the seasoned veteran, editing this file is simply a matter of dropping to a shell, editing in vi, and :wq’ing. There is the pico editor which, for a command line editor, is a little friendlier than vi. For the majority of users, editing a text file is warmer and fuzzier using a GUI text editor like TextEdit.

    The problem is that files starting with a period are hidden from listings in the Finder windows, so trying to find a hidden file to open using TextEdit will not get you very far. While many third party editors provide options for opening hidden files, if you don’t have one installed, you can easily open these hidden files using TextEdit which is a part of OS X.

    To open your .profile file, for example, start the Terminal application (searching for ‘terminal’ using Spotlight and clicking on the Terminal application is an easy way to do this). Since Terminal will put you in your home directory by default and .profile is in your home directory, you can edit .profile simply by typing:

    open .profile

    If the file you want to edit is in another directory, you’ll need to cd into that directory first or specify the full path name in front of the filename.

    The open command used above uses the same mechanism to open a file using a default application that the Finder does when clicking on a file. If for some reason the default application for the file you are trying to edit has changed to something that doesn’t work for editing, you can force open to use TextEdit by adding the -a option:

    open -a TextEdit .profile

    Make your changes to the file and save it and you’re done. One compulsory note of caution: hidden files are often hidden for a reason. They tend to hold configuration information that, if incorrectly changed, could cause one or more applications to misbehave. Tread lightly and make backups before changing.

    posted on 2010-04-27 23:06 seal 閱讀(265) 評論(0)  編輯  收藏 所屬分類: Apple
    主站蜘蛛池模板: 亚洲娇小性xxxx色| 亚洲福利一区二区精品秒拍| 亚洲欧洲无卡二区视頻| jjizz全部免费看片| 亚洲第一永久在线观看| 18以下岁毛片在免费播放| 亚洲视频在线观看地址| 日韩亚洲国产高清免费视频| 久草免费福利资源站| 中国国语毛片免费观看视频| 亚洲?v无码国产在丝袜线观看 | 亚洲国产成人高清在线观看 | 亚洲综合小说另类图片动图| 皇色在线视频免费网站| 亚洲欧洲无卡二区视頻| 人人狠狠综合久久亚洲高清| 一级免费黄色大片| 亚洲s色大片在线观看| 在线看片韩国免费人成视频| 亚洲成a∨人片在无码2023| 免费国内精品久久久久影院| 人妻巨大乳hd免费看| 久久精品亚洲日本佐佐木明希| 99久在线国内在线播放免费观看| 亚洲视频在线一区二区三区| 黄瓜视频高清在线看免费下载| 亚洲av无码成人精品区一本二本 | 亚洲精品无码aⅴ中文字幕蜜桃| 国产国产成年年人免费看片| 精品人妻系列无码人妻免费视频 | 在线综合亚洲中文精品| 亚洲国产成人a精品不卡在线| 国产免费网站看v片在线| 亚洲中文久久精品无码1| 国产在线98福利播放视频免费 | 特级做A爰片毛片免费看无码 | 中文字幕亚洲第一在线| 超pen个人视频国产免费观看 | 久久久高清免费视频| 一级毛片免费播放男男| 亚洲伊人久久大香线焦|