Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to use the command line tool cmder

Shulou Source: shulou.com Published: 2022-06-01 06:58:51 10月03日 Update

In this issue, the editor will bring you about how to use the command line tool cmder. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.

Today, let's recommend a super useful command line tool: cmder.

A very simple, beautiful and easy-to-use cmd replacement in Windows environment, which supports most Linux commands. Support ssh connection linux, very easy to use. Compared with cmd, powershell and conEmu, its interface is beautiful and simple, and its function is powerful. Let's see the effect:

The above demonstrates ls-l and vi under linux, and delete lines in vi editing, copy, paste, and skip to the beginning and end of the line. And other basic commands, you can make it easier to operate by setting aliases.

1. Add the extracted directory to the system environment variable, then win + R, and type cmder to open it quickly:

As follows:

2. Adjust font size through ctrl+ mouse wheel

3. Add cmder to the right-click menu

Open the cmder command window and enter:

$cmder.exe / REGISTER ALL

The effect is as follows:

4. Solve Chinese garbled code:

Add a line in Settings-> Startup-> Environment:

Set LC_ALL=zh_CN.UTF-8

As follows: remember to add the semicolon after it!

5. Modify the command prompt symbol:

The default command prompt for cmder is λ. If you want to change it to the common $, the details are as follows:

Open the\ vendor\ clink.lua file under the cmder installation directory

Find the 42-line "{lamb} 'and change it to the desired symbol, and then restart cmder.

6. Set aliases:

There is no ll command natively for cmder, but it can be achieved by setting an alias:

Open the\ config\ user-aliases.cmd file under the cmder installation directory and add the following alias settings:

L=ls-show-control-chars-F-color $*

La=ls-aF-show-control-chars-F-color $*

Ll=ls-alF-show-control-chars-F-color $*

As follows:

7. Shortcut keys:

In addition, you can also use shortcut keys

Ctrl+u: delete the current command line content

Ctrl+l: clear the screen

Select copy with mouse, right-click and paste ~ ~

This is how the command line tool cmder shared by the editor is used. If you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.

Tags: Commands aliases tools content directories simplicity beauty shortcuts effects files environment symbols mouse analysis prompts support input powerful one line small and medium Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology macOS Shulou Tech Info Docker Microsoft