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

Linux related commands (grep tr alias) cooperate with case explanation

2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

1, alias setting alias--network card, single quotation marks and double quotation marks are OK, this is a temporary configuration, does not take effect after restarting

Permanently effective vim /etc/profile Add something at the end

Use the command source /etc/profile to validate the configuration

2, grep filter file content

-n Display line numbers and content

-w Search by word

-i ignore case

-v negated or excluded, filtering out content that does not contain #

The above parameters can be used in combination such as: -ni -nwiv

3. tr substitution with

Change all lowercase letters to uppercase

Replace a with 1, b with 2, c with 3, one by one correspondence

Command line use, generally not yet effective

Add absolute path or\cancel alias, copy directly without prompting overwrite

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