Category Archives: Basics

Bash Positional Parameters

Shell has several special positional parameters which can be referenced but can not be assigned. These are used to process command line arguments in a shell script, to get process status, exit status and options flag.

These positional parameters can be assigned to a variable and values can be used for further processing.

 $0 , $1 $2 $3 … parameters

These are special parameters and and has specific meaning according to the number.  These parameters are useful if you want to validate executing file name and do the processing based on the arguments.

$0 : Shell argument 0, It expands into bash script file name or bash shell.

$1 $2 $3 …   : Shell argument number : Used to get the specific argument from the script.

for example let’s create & execute the test script with some parameters :

find command : Top 14 Ways to find files in Unix and Linux

find command is one of the important command in Unix and Linux used to locate the program, text,  data , log config files for execution, viewing ,  editing  renaming deleting etc. etc.

find command can find files based on many file attributes besides just the file name and here are the fifteen file  attributes which you can use to find a file or files and here are 14 ways to find files in your unix and linux system.

Red Hat 7.x Installation : Step by Step Guide

Installation and Configuration of RHEL 7.x
Learn about Installation and initial configuration of Red Hat Enterprise Linux, RHEL 7.3
For this Linux step by step installation guide we will use RHEL 7.3  64Bit iso image, the installation procedure is same for all RHEL 7.x releases in case you want to use a different RHEL version to install.

Here are the 10 Steps to Install RHEL 7.x distribution.

chmod Quick Referance with Examples

What is chmod ?

chmod ( Change Mode ) is a command line utility in Unix , Linux and other Unix like systems to change the read, write, execute permissions of a file for owner , group and others.

How to use chmod?

Chmod command is used in two ways :
1. Using octal value & position : Sets the permission for owner, group and others with octal values , 4 for read , 2 for write , 1 for execute and any sum of these number to get cumulative permissions.

man command in Linux and Unix

man command, short for manual, provides help for the commands, utilities or function in Linux and Unix systems. Learn about usage , related packages, sections and other interesting facts about man pages.