Get the App
SLTechnology News&Howtos  ›  Servers  › 

Use the set command of linux to set up shell

Shulou Source: shulou.com Published: 2022-06-02 19:26:28 11月13日 Update

This article mainly introduces the use of linux set command to set up shell, the article is very detailed, has a certain reference value, interested friends must read it!

The set command can set the execution mode of the shell used, which can be set according to different requirements.

Syntax format: set [parameters]

Common parameters:

Reference example

Using the declare command to define a new environment variable "mylove" and set its value to "Visual C++", enter the following command:

[root@linuxcool ~] # declare mylove='Visual Clippers'

Then use the set command to output the newly defined variable as an environment variable, and enter the following command:

[root@linuxcool] # set-a mylove

After the command is executed, the corresponding environment variables are added. You can use the env command and the grep command to display and search for the environment variable "mylove", respectively. Enter the command as follows:

[root@linuxcool ~] # env | grep mylove 'above are all the contents of setting shell using linux's set command, thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Tags: Commands variables environment input content parameters references differences values interests examples guys buddies commonly used ways more formats users knowledge articles Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker Apple OPPO Reno Linux vpn