Category: bash script
As you may know, the famous factorial can be done in Recursion via: where BASH supports function declaration and recursion – just like other modern programming language. See below …
The following BASH script/function tries to install the latest version of the Docker via the get.docker.com site, if you have already installed docker, it will try to update it …
We can use the dd command to generate a file size of given bytes however the parameters are not straighforward. The “if=” specifies the input data (usually from /dev/zero …
If you connect to a SSH – when the window is closed, all running programs in the current session will be terminated. One way to solve this is to …
In Linux, we have service process controller which can be used to start, stop and restart a particular registered service. For example: $ sudo service mysql stop $ sudo …