Use the set command of linux to set up shell
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!