Brief introduction
cmder is an enhanced command-line tool, not only can use all the commands in the windows, Gengshuang can use the linux command, shell command.
download
Official website address: http://cmder.net/
Download time, there will be two versions, namely mini and full version; the only difference is that there is no built-in msysgit tool, which is Git for Windows standard equipment; a full install version cmder comes msysgit, archive 23M, in addition to git itself this command outside, which can use a lot of linux command; such as grep, curl (no wget); like vim, grep, tar, unzip, ssh, ls, bash, perl for love toss Coder is the pain point demand .
installation
Directly extract to a directory on it, click Cmder.exe run.
Configuration environment variable
Adding system variables
- Variable name: CMDER_HOME
- Variable value: absolute installation path
Finally, add a Path in italic text
% CMDER_HOME%
Right-click menu to add cmder
After configuring the environment variables, the administrator rights of the terminal, enter the following statement.
Win8 Win10 or win + x may be directly press a button to enter.
Cmder.exe /REGISTER ALL
Once configured, any file folder right
Open a new tab terminal administrator privileges
After the shortcut Ctrl + t tick
Set up
Shortcuts: win + alt + p
or icon in the lower right corner, right-click
Set bash as an option enabled by default
Solve the problem of Chinese garbled
之前在网找了好多方法,可是都解决不了,很多人在在Environment里添加set LANG=zh_CN.UTF-8来解决中文乱码的问题,可是我用这个方法并没有成功,可能是环境的原因吧,我的系统是win10的。
最后找到解决办法:
Settings->Startup->Environment 添加
set LANG=zh_CN.UTF-8
set LC_ALL=zh_CN.utf8
重启Cmder,发现使用ls,中文正确显示了。
更改背景
更换主题
内置了几款不错的主题,当然如果你觉得不合适,当然也支持自己设定。
常用功能介绍
如上图示编号的部分说明如下:
1, Cmder常用快捷键
- 利用Tab,自动路径补全;
- 利用Ctrl+T建立新页签;利用Ctrl+W关闭页签;
- 利用Ctrl+Tab切换页签;
- Alt+F4:关闭所有页签
- Alt+Shift+1:开启cmd.exe
- Alt+Shift+2:开启powershell.exe
- Alt+Shift+3:开启powershell.exe (系统管理员权限)
- Ctrl+1:快速切换到第1个页签
- Ctrl+n:快速切换到第n个页签( n值无上限)
- Alt + enter: 切换到全屏状态;
- Ctr+r 历史命令搜索
2, 可在视窗内搜寻画面上出现过的任意关键字。
3, 新增页签按钮。
4, 切换页签按钮。
5, 锁定视窗,让视窗无法再输入。
6, 切换视窗是否提供卷轴功能,启动时可查询之前显示过的内容。
7, 按下滑鼠左键可开启系统选单,滑鼠右键可开启工具选项视窗。 Win+Alt+P :开启工具选项视窗。