Skip to content
GoLinuxCloud
  • Ansible
  • AWS
  • Azure
  • Blockchain
  • CheatSheet
  • Ethical Hacking
  • GIT
  • Java
  • Kubernetes
  • OpenStack
  • OpenSSL
  • Python
  • SQL
  • Wireshark

Shell Scripting

This covers topics and articles related to shell-scripting in Linux.

4 practical examples with bash increment variable

4 practical examples with bash increment variable

How to increment variable in bash shell script? How to add 1 to a variable for every for loop? How to increment counter in bash? How to perform bash variable plus 1? In this tutorial

Categories Shell Scripting 1 Comment

Beginners guide to use script arguments in bash with examples

Beginners guide to parse script arguments in bash scripts

How to pass and store arguments to shell script? How to parse input arguments inside shell script? How to pass arguments to a function inside shell script in bash? How to read command line arguments

Categories Shell Scripting Leave a comment

Simple guide to concatenate strings in bash with examples

Simple guide to concatenate strings in bash with examples

How to concatenate strings with underscore, newline, whitespace or any other character in bash? How to append substrings in a string in bash or shell script? How to append starings in a variable using for

Categories Shell Scripting, Linux Leave a comment

Beginners guide to use getopts in bash scripts & examples

Beginners guide to use getopts in bash scripts & examples

In this tutorial we will learn about getopts in bash or shell programming language. getopts is short abbreviation for "get the options" which you have supplied in the form of flags to the script. It

Categories Shell Scripting, Tips and Tricks 5 Comments

Difference .bashrc vs .bash_profile (which one to use?)

Difference .bashrc vs .bash_profile (which one to use?)

We have different configuration files which are used to setup system wide configuration. But we always have some requirement to setup user specific customization such as umask, alias, PATH variable etc. In such case we

Categories Shell Scripting, Linux Leave a comment

How to properly check if file exists in Bash or Shell (with examples)

How to properly check if file exists in Bash or Shell (with examples)

In this tutorial I will cover different attributes you can use in bash or shell scripting to check against files and directories. You can use bash conditional expressions with [[ ]] or use test with

Categories Linux, Shell Scripting 3 Comments

Bash if else usage guide for absolute beginners

Bash if else usage guide for absolute beginners

I am quite sure in almost all the scripts we always end up with one or more conditional checks which requires if and else statement. So bash is not different and even in shell scripting

Categories Bash If Else Statement, Shell Scripting 1 Comment

Bash Function Usage Guide for Absolute Beginners

Bash Function Usage Guide for Absolute Beginners

New to bash or shell scripting? Let's start learning. Bash scripting can be considered the first step to learn programming languages. You may be in any IT stream but there will come a point in

Categories Bash Function, Shell Scripting Leave a comment

Bash while loop usage with examples for beginners

Bash while loop usage for absolute beginners

Using bash while loop has it's own advantages compared to any other loops. How do you perform a certain task repeatedly in Linux or Unix environment? For example, how can you monitor a log file

Categories Shell Scripting Leave a comment
Post navigation
Older posts
Page1 Page2 … Page4 Next →

Featured Posts

  • Top 15 tools to monitor disk IO performance with examples
  • 8 ways to prevent brute force SSH attacks in Linux (CentOS/RHEL 7)
  • 100+ Linux commands cheat sheet & examples
  • 27 nmcli command examples (cheatsheet), compare nm-settings with if-cfg file
  • 15 steps to setup Samba Active Directory DC CentOS 8
  • 5 tools to create bootable usb from iso linux command line and gui
  • Tutorial: Beginners guide on linux memory management
  • Linux zip folder | 16 practical Linux zip command examples
  • 5 useful tools to detect memory leaks with examples
  • 6 ssh authentication methods to secure connection (sshd_config)
  • How to check security updates list & perform linux patch management RHEL 6/7/8
  • 10 single line SFTP commands to transfer files in Unix/Linux
  • Understanding High Availability Cluster and Architecture
  • List of 50+ tmux cheatsheet and shortcuts commands
ADVERTISEMENT
Subscribe GoLinuxCloud
ADVERTISEMENT
Ansible Tutorial
Kubernetes Tutorial
  • Sitemap
  • Privacy Policy
  • Disclaimer
  • Guest Posts
  • Contact Me
Copyright © 2022 | Hosted On Rocket.net