Skip to content
  • Home
  • About Me
  • Subscribe
  • Sponsored Post
  • Contact Us
GoLinuxCloud
  • Basic Linux Commands
  • Cluster
    • Ceph Storage Cluster
    • DRBD Cluster
    • GlusterFS Shared Storage
    • Pacemaker Cluster
    • KVM Cluster
  • DevOps
    • Ansible
    • Docker
    • Elasticsearch
    • OpenStack
    • Kubernetes
  • Security
    • Linux Firewall
    • LUKS Encryption
    • OpenSSL
    • Secure SSH
  • Performance
    • CPU
    • HugePages
    • Kernel
    • Memory
    • Storage
  • Programming
    • Python
    • Shell Scripts

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 ... Read More

Categories Shell Scripting Tags bash, shell script 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 ... Read More

Categories Shell Scripting Tags bash, shell script 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 ... Read More

Categories Shell Scripting, Linux Tags bash, shell script 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 ... Read More

Categories Shell Scripting, Tips and Tricks Tags bash 2 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 ... Read More

Categories Shell Scripting, Linux Tags bash 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 ... Read More

Categories Linux, Shell Scripting Tags bash, shell script 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 ... Read More

Categories Bash If Else Statement, Shell Scripting Tags bash, shell script Leave a 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 ... Read More

Categories Bash Function, Shell Scripting Tags bash, shell script Leave a comment
Post navigation
Older posts
Page1 Page2 … Page4 Next →

Featured Posts

  • 15 steps to setup Samba Active Directory DC CentOS 8
  • 5 tools to create bootable usb from iso linux command line and gui
  • Understanding High Availability Cluster and Architecture
  • How to zip a folder | 16 practical Linux zip command examples
  • 6 ssh authentication methods to secure connection (sshd_config)
  • RHEL/CentOS 8 Kickstart example | Kickstart Generator
  • 5 useful tools to detect memory leaks with examples
  • 100+ Linux commands cheat sheet & examples
  • Top 15 tools to monitor disk IO performance with examples
  • List of 50+ tmux cheatsheet and shortcuts commands
  • Tutorial: Beginners guide on linux memory management
  • 8 ways to prevent brute force SSH attacks in Linux (CentOS/RHEL 7)
  • 10 single line SFTP commands to transfer files in Unix/Linux
  • Overview on different disk types and disk interface types
Golinuxcloud Subscribe

Also Read

  • Easy examples to setup different SSH port forwarding types
  • How to disable ICMP and ICMPv6 redirects in Linux
  • How to setup http/https proxy with special characters in password
  • How to disable SELinux (with and without reboot)
  • Beginners guide to use ssh config file with examples
  • How to disable ICMP timestamp responses in Linux
  • Linux sftp restrict user to specific directory | setup sftp chroot jail
  • 6 easy steps to setup offline two factor authentication in Linux
  • Easy steps to open a port in Linux RHEL/CentOS 7/8
  • 6 ssh authentication methods to secure connection (sshd_config)

Also Read

  • 4 practical examples with bash increment variable
  • Beginners guide to use script arguments in bash with examples
  • Simple guide to concatenate strings in bash with examples
  • Beginners guide to use getopts in bash scripts & examples
  • Difference .bashrc vs .bash_profile (which one to use?)
  • How to properly check if file exists in Bash or Shell (with examples)
  • Bash if else usage guide for absolute beginners
  • Bash Function Usage Guide for Absolute Beginners
  • Bash while loop usage for absolute beginners
  • Bash For Loop usage guide for absolute beginners

RECENT POSTS

  • Beginners guide to how LVM works in Linux (architecture)
  • 9 easy steps to create custom ISO RHEL/CentOS 8
  • 10 must know usage of cat command in Linux/Unix
  • 6 Tools making Automation Testing easy in Linux
  • Easy examples to setup different SSH port forwarding types

INTERVIEW QUESTIONS

  • OpenStack Interview Q&A (Multi-choice)
  • Shell Scripting Interview Q&A
  • 20+ AWS Interview Q&A
  • 100+ GIT Interview Q&A
  • Linux Interview Q&A

CHEATSHEET

  • 27 nmcli command examples to manage network
  • 15 csplit and split examples to split and join files
  • 16 zip command examples to manage archive
  • 15 virt-install examples to manage KVM
  • 50+ tmux cheatsheet to split terminal

QUICK LINKS

  • Why I chose Rocket.net hosting platform?
  • Some handy Linux Keyboard Tricks
  • Want to publish sponsored post?
  • Please share your feedback
  • Our Sitemap Links
  • Home
  • Privacy Policy
  • Disclaimer
  • Subscribe
Copyright © 2021 | Hosted By Rocket