Category Archives: Unix command and scripts

Unix operating system like solaris, AIX,linux is widely used . All the major installation will have Unix server at the base.

I am covering here  unix commands like awk,sed,find. Also this catagory consists of lot  of articles on Unix scripts

So this is one stop place for all unix command, unix scripts and various other unix features

 

How to use tar command in Unix

In continuation of our series of Unix tutorial ,i am here presenting the Unix Tutorial:  tar command example tar – create tape archives and add or extract files.A more common use for tar is to simply combine a few files into a single file, for easy storage and distribution. The tar command archives and extracts files to and from a single file called a tarfile. -I … Continue reading How to use tar command in Unix »

Must read unix shell scripting interview questions

Unix is used everywhere and knowledge of the operating system is must for any interview. Here are the must read  unix shell scripting interview questions 1) What is Shell Script? Answer A shell script is a collection of command which are executed in a order given. There are conditional statement and looping also available like if ,while which helps in finding if a particular value is … Continue reading Must read unix shell scripting interview questions »

awk command in unix with examples

Awk is a powerful command. In this post,i will try to put awk command in unix with examples What is awk command in Unix? a)awk is a Pattern Scanning and Processing Language. b)awk is a programming language whose basic operation is to search a set of files for patterns, and to perform specified actions upon lines or fields of lines which contain instances of those … Continue reading awk command in unix with examples »

Useful Unix command for Oracle DBA

Oracle DBA need to operate on Unix/Linux/Solaris/AIX Operating system. He has to locate various file, process, kill session ,clear directories, schedule cron and various other activities. Here in this article I am trying to give some Useful Unix command for Oracle DBA  to help them in day-to-day activities.These same commands are applicable for Linux also. Hope you like it   How to kill all similar processes … Continue reading Useful Unix command for Oracle DBA »

5 Must have Unix books to enrich your brain and arsenal

Here are 5 Must have Unix books to enrich your brain and arsenal 1) Sed & Awk sed & awk describes two text processing programs that are mainstays of the UNIX programmer’s toolbox.sed is a “stream editor” for editing streams of text that might be too large to edit as a single file, or that might be generated on the fly as part of a larger … Continue reading 5 Must have Unix books to enrich your brain and arsenal »

PuTTY CONNECTION MANAGER (PuttyCM)

What is PuTTY CONNECTION MANAGER (PuttyCM) PuttyCM displays multiple PuTTY sessions in Tabs. It is very useful for  the administrator who is working on multiple server at a time. This enables the administrator to perform multiple function with ease. Moreover this is freeware   Significant Features of PuttyCM 1.Display Multiple PuTTY Sessions in Tab You can open multiple sessions in Tab just like any word … Continue reading PuTTY CONNECTION MANAGER (PuttyCM) »

Functions in Shell Script with some practical examples

Shell programming provides the feature of functions  just like any other programming  language. This help us develop the program in a modular manner.Using functions in shell script to perform repetitive tasks is an excellent way to create code reuse. Code reuse is an important part of modern object-oriented programming principles. What are functions in Shell Script? Functions are  group pieces of code in a more logical way … Continue reading Functions in Shell Script with some practical examples »

Useful Advanced shell scripting examples

We have learned the basics of shell scripts.Now its time to turn to more useful advanced shell scripting side. Here are the Useful Advanced  shell scripting examples How to Invoke vi within shell script and make changes while executing the script We often get requirement where we are supposed to edit the file and make changes during the execution of the script.  We can do that … Continue reading Useful Advanced shell scripting examples »

How to check physical RAM ,swap space on Unix

We often get question on how to check physical RAM  ,swap space on Unix . Command varies as per the Operating system. Here are the command  for common operating system How to check Physical RAM , Swap Space on Unix Operating System: HP Tru64 UNIX Physical RAM: # /bin/vmstat -P grep “Total Physical Memory” Swap Space: # /sbin/swapon -s Operating System: HP-UX Itanium Physical RAM: … Continue reading How to check physical RAM ,swap space on Unix »

Writing loop statement in Unix shell scripting with examples

What is loop statement in Unix shell scripting A group of instruction that is executed repeatedly until a termination condition is met is called a loop. Bash supports for and while loops. Some shell supports until also How it works In each and every loop, The variable used in loop condition must be initialized, then execution of the loop begins. A test (condition) is made … Continue reading Writing loop statement in Unix shell scripting with examples »

split ,tr and tee unix command with examples

In this article, we will be discussing the useful cases of split  unix command with examples. We will also be discussing the tr and tee commands split unix command it split a file into pieces. SYNTAX for the Split command split [-linecount | -l linecount | -b bytes]  [file [name] ] -l linenumber -b bytes This command is widely used to split the files  into smaller … Continue reading split ,tr and tee unix command with examples »

Bg,Fg,CtrlZ Unix command to Manage Unix Background Jobs

There are several commands which allow you to manage the processes that belong to you. Off course You cannot do anything with processes belonging to other users unless you are root user. Here is the detail on Bg, Fg, CtrlZ  Unix command  to Manage Unix Background Jobs with Examples Some definition What is foreground process When you enter a command at the shell prompt, your shell … Continue reading Bg,Fg,CtrlZ Unix command to Manage Unix Background Jobs »