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

Use the shopt command of linux to set the switch that controls the shell behavior variable

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

This article mainly introduces the use of linux shopt command settings control shell behavior variable switch, the text is very detailed, has a certain reference value, interested friends must read!

The shopt command controls Shell behavior by setting on/off values for variables that control Shell behavior characteristics. When the command opt is executed without any arguments, those features controlled by opt and their states are listed.

Syntax format: opt [parameter]

Common parameters:

-s Without options, displays all open options. Turn on this option if followed by-u Show all unturned options without options. If followed by the appropriate option, turn on this option-p Show all options

Reference Example

Show all configuration options:

[root@linuxcool ~]# shopt -p

View open configuration options:

[root@linuxcool ~]# shopt -s

View configuration options that are closed:

[root@linuxcool ~]# shopt -u The above is all about using the Linux shopt command to set switches that control shell behavior variables. Thank you for reading! Hope to share the content to help everyone, more relevant knowledge, welcome to pay attention to 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