Home>Article>Operation and Maintenance> What is a .sh file in linux?

What is a .sh file in linux?

藏色散人
藏色散人 Original
2019-05-18 17:17:43 88331browse

The ".sh" file in Linux is a script file, usually a bash script. We can use the sh command to run "sh xxx.sh", and since sh is linked to bash in Linux, so There is no functional difference between sh and bash.

What is a .sh file in linux?

Linux is a Unix-like operating system that is free to use and spread freely. It is a multi-user, multi-tasking, multi-threaded and multi-threaded operating system based on POSIX and UNIX. Multi-CPU operating system. It can run major UNIX software tools, applications and network protocols. It supports 32-bit and 64-bit hardware. Linux inherits the network-centric design philosophy of Unix and is a multi-user network operating system with stable performance.

What is the .sh file in Linux?

The .sh file in Linux is a script file, usually a bash script. If you want to run it, use the sh command to run sh xxx.sh.

Note:

sh can either execute the script, or switch to the bash of sh. The default shell is bash. Of course, sh in Linux is linked to bash, so there is no functional difference between sh and bash. Also, when executing a script, use the sh script name to execute it. In fact, most of the time, simple scripts can be executed directly as long as the permissions are set correctly, and no sh command is required.

The above is the detailed content of What is a .sh file in linux?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:What does linux chown mean? Next article:What does linux chown mean?