Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use the command line tool cmder

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report