windows下shell工具cygwin
生活随笔
收集整理的這篇文章主要介紹了
windows下shell工具cygwin
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
windows 下 shell 工具 cygwin
由于在 windows 下安裝 hadoop 故安裝 cygwin
1、Cygwin的包管理器:apt-cyg
github cygwin 地址
2、telnet : inetutils 包
3、Windows右鍵在當前目錄打開Cygwin終端
Step 1 安裝cygwin 安裝Cygwin(略過)
Step 2 準備啟動腳本
以我的安裝目錄(d:\cygwin)為例,在d:\cygwin\bin\下準備一個啟動腳本,命名為cygwin.bat
內容為:
Step 3 添加右鍵菜單
打開注冊表編輯器,在\HKEY_CLASSES_ROOT\Directory\Background\shell下新建項CygWin,將其默認字符串值改為CygWin Here(右鍵菜單顯示的內容),然后新建一個字符串值,名稱改為Icon,字符串值改為D:\cygwin\cygwin.ico。之后為CygWin添加子項command,將默認字符串值改為D:\cygwin\bin\cygwin.bat %V。如圖:
Step 4 Cygwin獲取環境變量
編輯bash_profile:vim ~/.bash_profile
在最后添加內容:
Step 5 d:\cygwin\root\Cygwin.bat 關鍵位置修改
@echo off set_T=%* #關鍵在這里加這句 D: chdir d:\cygwin\root\binbash --login -iStep 6 測試
現在在桌面右鍵-Cygwin Here
總結
以上是生活随笔為你收集整理的windows下shell工具cygwin的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 彼得原理(The Peter Princ
- 下一篇: 支付系统-财务系统