Category Archives: Basics

How to Remove ^M in Linux & Unix

Control M ( ^M)  characters are introduced when you use  lines of text from a windows computer to  Linux or Unix machine.  Most common reasons are when you directly copy a file from a windows system or submit form data copied and pasted from a windows machine.

Detecting ^M characters

^M is non printable character and often becomes difficult to find, in order to see if your file contains any non printable character use the cat command with -v option

$cat -v filename

Methods to remove ^M

In all these method , real secret is not to type ^M using keyboard but rather typing in control key sequence to get the ^M control character.

Bash Positional Parameters, Arguments

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

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

 $0 , $1 $2 $3 … bash Parameters

These are special parameters 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 : bash Shell argument 0, It expands into bash script file name or bash shell.

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

for example let’s create & execute the test script with some parameters and note the bash arguments supplied as 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.

Solaris 11 & Solaris 10 Certification

Learn about the Solaris 10 & 11 certification , price, number of questoons , duration and direct links to official site for exam 1z0-876, 1z0-821 and more.

Linux Download : Top 10 Free Linux Distributions for Desktop and Servers

All the Linux distributions are either derivative of GNU/Linux ( OS made up of Linux Kernel developed by Linus Torvalds and GNU software repository) or derived from other Linux derivatives.

Desktop distributions comes with Graphical user interface enabled by default &   aimed at individual users and most of the administration work can be done using GUI. Good for new users and running Linux-based graphical applications.

Server Distribution are for more advanced users who are familiar with Linux command line as Graphical Interface is not enabled by default in most of the server distributions. Server distributions comes with web servers like apache  and networking packages like DNS and useful for running backend services , work as web server or DNS Server.

Top 10 Must have Books for Unix and Linux

Here is the top 10 must have books for Unix and Linux , these are great books for any one working in Unix and Linux from beginner to advance users  improve skills and go deeper to understand, learn, program and manage Unix and Linux systems.

10 Must Have O’Reilly Linux and Unix Books

Published several years ago these O’Reilly books are still useful & relevant for the current and new system administrators. Although these books may not cover latest version of operating systems yet these explains very well the underlying technical details and process which have not changed over the years.