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 alias a command in linux

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

This article is about how to give an alias to the command in linux, the editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.

What is Linux system Linux is a free-to-use and free-spread UNIX-like operating system, is a POSIX-based multi-user, multi-task, multi-threaded and multi-CPU operating system, using Linux can run major Unix tools, applications and network protocols.

Give an alias to the order

1. First of all, let's open the Linux command line and enter a command. As shown in the following figure, it doesn't matter what the command is for.

2. Next we want to type a few letters to implement the above command, as shown in the following figure

3. Then we give the command an alias through alias, as shown in the following figure. Pay attention to the correct way to write it.

4. Then we enter the alias to achieve the same command effect, as shown in the following figure

5. To cancel the alias, we only need to call the unalias command, as shown in the following figure

6. Finally, if you want to see how many aliases there are on the current system, just type alias on the command line, as shown in the following figure

To sum up, aliasing commands in Linux is mainly achieved through alias, which can greatly speed up our command input speed.

Cancel the command alias

Delete directly with unalias plus alias

Syntax: unalias [- a] [alias]

Parameter-a means to delete all aliases, but be careful.

The above is how to give an alias to the command in linux. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please 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

Servers

Wechat

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

12
Report