Home > Article > Operation and Maintenance > What is a .sh file in linux?
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.
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!