Linux Vs Unix
Linux Unix Linux is an example of Open Source software development and Free Operating System (OS). Unix is an operating system that is very popular in universities, companies, big enterprises etc....
View ArticleUnix Shell Scripts – Example 1
Write a shell script sum.sh that takes an unspecified number of command line arguments (up to 9) of ints and finds their sum. Modify the code to add a number to the sum only if the number is greater...
View ArticleUnix Shell Scripts – Example 2
Write a shell script takes the name a path (eg: /venkat/wikiconsole/material/handin ), and counts all the sub directories (recursively). Ans: #! /bin/sh<span style="font-size: small; color:...
View ArticleUnix Shell Scripts – Example 3
Write a shell script that takes a file where each line is given in the format: F08, Venkat, Suman, Karthy, SCS, CSD, 3, L, 4, 15123 , V ,, Creates a folder for each user name (eg: Venkat) and set the...
View ArticleUnix Shell Scripts – Example 4
Write a shell script that takes a name of a folder as a command line argument, and produce a file that contains the names of all sub folders with size 0 (that is empty sub folders) #! /bin/sh ls $1 |...
View ArticleUnix Admin Interview Questions
How do you list the files in an UNIX directory while also showing hidden files? How do you execute a UNIX command in the background? What UNIX command will control the default file permissions when...
View ArticleHow To Run a Script In Linux
There are two ways you can execute your shell scripts. Once you have created a script file: Method 1 Pass the file as an argument to the shell that you want to interpret your script. Step 1 : create...
View ArticleDelete Files Older than x Days on Linux
Objective: To find the files which are older than X days in Linux Operating system. In this scenario, X is represented in hours. If you wish to delete the files older than 2 days, then X value should...
View ArticleHow to verify if user account exists in Linux/Unix?
Introduction In this article our objective is to verify if user account exists in Redhat enterprise Linux machine running with the Operating system version 6.5. Process Step 1: Login to server with...
View Article
More Pages to Explore .....