Mac os下profile設定
Mac os環境下home目錄下是沒有profile檔案的
開啟終端後,讀取的是/etc/profile檔案
因為個人喜歡使用ll命令,mac預設並沒有這個命令,所以使用如下方法設定別名
cp -rp /etc/profile ~/.bash_profile
chmod +w ~/.bash_profile
echo "alias ll='ls -l'" >>~/.bash_profile
重新登陸終端後ll命令可以使用
開啟終端後,讀取的是/etc/profile檔案
因為個人喜歡使用ll命令,mac預設並沒有這個命令,所以使用如下方法設定別名
cp -rp /etc/profile ~/.bash_profile
chmod +w ~/.bash_profile
echo "alias ll='ls -l'" >>~/.bash_profile
重新登陸終端後ll命令可以使用
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29135257/viewspace-2134395/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Mac OS iTerm 控制檯設定代理Mac
- mac-profileMac
- Mac OS 下更換 Ruby 源Mac
- shell 在/etc/profile中設定後不生效
- Mac OS 下配置多個 SSH KeyMac
- Mac os上不了網怎麼辦,網路設定怎麼還原Mac
- Mac OS X下實現矩形部分圓角Mac
- Profile設定高標準密碼複雜度的方法密碼複雜度
- PHP 基礎 - Mac 下的安裝與設定PHPMac
- mac os 快捷鍵Mac
- iptables設定macMac
- 分享Profile設定高標準密碼複雜度的方法密碼複雜度
- Golang os 包與設定配置檔案路徑Golang
- Mac OS下 Anaconda Python2 和 Python3 配置MacPython
- MAC 下使用Postman設定Cookie來發起請求MacPostmanCookie
- Install netCDF under mac osMac
- 我的 MAC 設定Mac
- Mac OS下用Homebrew安裝自己寫的開源工具Mac開源工具
- Mac OS 配置Maven步驟MacMaven
- CleanMyMac for mac之偏好設定Mac
- 如何在Mac OS下用ISO包製作啟動U盤Mac
- Linux,Mac OS,Windows下 node gm 包安裝、使用語句整理LinuxMacWindows
- Linux下/etc/profile、~/.bash_profile等幾個檔案的執行過程Linux
- Mac OS X 下檔名亂碼出現的原因和解決方法Mac
- Mac OS X 清除DNS快取MacDNS快取
- mac選單欄設定教程Mac
- elementary OS 7.1 下載地址
- Mac OS X 下 Python 多版本管理器 pyenv 的安裝及使用MacPython
- mac系統設定維護工具:TinkerTool System for MacMac
- Unix、Windows、Mac OS、Linux系統故事WindowsMacLinux
- Mac OS配置QT開發環境MacQT開發環境
- 如何在PC上安裝Mac OSMac
- Mac os系統都有哪些優勢Mac
- Mac OS最簡方式安裝adbMac
- Mac開發相關設定操作Mac
- Mac基礎設定—應用程式Mac
- IntelliJ IDEA 設定註釋模板 (Mac)IntelliJIdeaMac
- 手把手教你在Mac OS下載、編譯及匯入Android原始碼Mac編譯Android原始碼
- Ubuntu 下設定中文編碼Ubuntu