Bash Useful Examples
A collection of simple Bash scripts.
Last updated
Was this helpful?
A collection of simple Bash scripts.
Last updated
Was this helpful?
: get a simple output
: execute more than one command in a script
: a simple but very much interactive script
: draw a diamond pattern with dots(.)
: read lines from a file using while loop
: display a menu for system information
: a repeated menu for system information
: print a spinner loader
: provide you with the output of several colours
: convert data either from the file or standard input to lowercase
: move up a directory in shell script
: list files in a directory
: print out the line number of each file in current directory
: create unique file/folder automatically with date and time stamp
: print ramdom emojis
: a simple pomodoro app written in bash
: compare two version number
: encrypt a file/folder with password
: archive a path into a file and encrypt the file
: check the weather in a specified location or using the geolocation of the ip address by default.
: Get location of an IP address.
: output a specified directory's size
: evaluate the status of a file/directory
: report server related information
: report if CPU usage exceeds the threshold
: check if the disk space crosses the limit
: gather information related to server
: backup a local file into a remote server
: show hardware information for systems Linux
: show CPU temperature
: perform addition of two numbers
: perform subtraction of two numbers
: perform multiplication of two numbers
: perform division of two numbers
: a simple calculator
: print table of any number
: check if a number input from standard input is odd or even
: generate the factorial of a number
: check if a provided number is Armstrong or not
: check if a number is prime or not
: test if a number being entered is a Fibonacci or not
: convert Decimal Number to Binary
: convert Binary Number back to decimal
: convert Decimal Number to Hex
: convert Hex number back to Decimal
: create 400px thumbnails from images in a folder