Delete
Setting
Add New Item
Menu List
Title | Content Type | Order | Action | ||||||
---|---|---|---|---|---|---|---|---|---|
{{kb_content.name}} {{kb_content.name}} | {{setValue(content_types, kb_content.content_type)}} | {{kb_content.sort_order}} | Preview Edit Edit Content | ||||||
{{kb_content.name}} | {{setValue(content_types, kb_content.content_type)}} | {{kb_content.sort_order}} | Preview Edit Edit Content | ||||||
No record |
Idea about installing .sh application
You are new to Linux and switch to the Linux Operating System, this is a tutorial for you. This will help you to start your journey in the Linux system because when you perform daily operations in this system, you will not stack on it.
After installing the OS, we need some basic applications to do our daily operation such as browser, zoom, skype. If we are a developer then we need some development tools like Node.Js and NPM, PHP, phpMyAdmin, MySQL, Apache, Tomcat, DBreaver etc. This tutorial will cover all of this.
Important thing is when you enable the installation of those applications, you will learn many things regarding Linux OS.
SH file:
A file with .sh extension is a scripting language commands file that contains computer program to be run by Unix shell. It can contain a series of commands that run sequentially to carry out operations such as files processing, execution of programs and other such tasks. These are executed from the command line interface by user or in batch to carry out multiple operations at the same time.
Script files can be opened in text editors like Notepad, Notepad++, Vim, Apple Terminal and other similar applications on Windows, MacOS and Linux OS.
SH File Format
SH files are written in plain text following the defined syntax. These script files support:
Comments - Comments start with a # and are ignored by the shell.
Shortcuts - These can be used to rename a command for short and easy execution.
Batch Jobs - Several commands can be be executed automatically that would otherwise need to be entered manually. This removes the need to wait for a user to trigger each stage of the sequence.
Generalization - Using simple loops, much more generalization is achieved for operations such as conversion of images from one fromat to another.
SH file example
$ echo '#!/bin/sh' > my-script.sh $ echo 'echo Hello World' >> my-script.sh $ cat my-script.sh #!/bin/sh echo Hello World $ chmod 755 my-script.sh $ ./my-script.sh Hello World
How to run SH file?
The SH files usually run on Linux, even in Windows you need to connect with a Linux terminal using softwares such as Putty to run the sh files. Following are the steps to run an SH file on a Linux terminal.
Open the Linux terminal and go to the directory where the SH file is located.
By Using chmod command, set execute permission on your script (if not set already).
Run script using one of the following
./filename.sh
Or
sh filename.sh
Or
bash script-name-here.sh