General ArticlesCheck if a script is running as root user in LinuxBy RahulJuly 27, 2022Sometimes the shell scripts are required to run as the root user to perform some tasks with administrator privileges. Generally,…
General ArticlesUsing Boolean Variables in Shell Scripts: Syntax, Examples, and Best PracticesBy RahulJuly 25, 2022Boolean variables are an essential part of programming, as they represent true or false values and are often used to…
BackupsBackup MySQL Databases to Amazon S3 (Shell Script)By RahulMay 28, 2022A shell script is a collection of commands to perform a specific job. MySQL is a relational database management system…
Bash ShellBash Concatenate StringsBy RahulNovember 1, 2021Concatenating strings in Bash is as simple as combining them with the double-quote (“ ”) character. However, if your strings…
ProgrammingShell Script to Add Two Numbers {Including Examples}By RahulJune 5, 2021Calculating the sum of two numbers in a shell script is easy, just like in other programming languages. The Bash…
Linux TutorialsHow to Run Shell Script as Systemd in LinuxBy RahulApril 12, 2021Systemd is a software application that provides an array of system components for Linux operating systems. It is the first…
General ArticlesUsing Increment (++) and Decrement (–) Operators in BashBy RahulFebruary 28, 2021Similar to other programming language bash also supports increment and decrement operators. The increment operator ++ increases the value of…
Bash ShellA Shell Script to Copy All files with Same StructureBy RahulJuly 10, 2020This shell script is designed for a specific task required for our server. So sharing the script with Tecadmin readers.…
MongoDBA Shell Script to Backup MongoDB DatabasesBy RahulJune 21, 2020Did you know that MongoDB databases have a built-in way to make backups using the shell or the mongod process?…
AutomationMagento 2 Codebase & Database Backup ScriptBy RahulMarch 10, 2020This tutorial will help you to automate the Magento2 codebase and database backup process using a shell script. The script…