GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

Shell Scripting Interview Questions


Shell Scripting Interview Questions

Questions: 47
Comments: 229
 Showing Questions 1-10 of 47 Questions
[1] 2 3 4 5 Next >>
 Sponsored Links

 
 Shell Scripting Interview Questions
Sorting Options :  

Write a shell script to save the output of 'ls -ltr' every five minutes and after every hour it should print which all files are changed/modified/created. 
View Question | Asked by : iblue

In shell scripting How to indentify that the previous command was run successfully? 
Latest Answer: If you want to check that your script has successfully ran. For this you have to do error handling for each command by displaying echo $?"?" is a inbuilt variable in Shell Scripting, the value for this is assinged by shell after execution of ...

How will you write a shell script to connect to SQL database? 
Latest Answer: 1> #!/bin/ksh 2> 3> sqlplus /nolog < /dev/null 4> 5> connect USER/PASSWORD@DATABASENAME 6> 7> WHENEVER SQLERROR EXIT 5 8> WHENEVER OSERROR EXIT 10 9> 10> @ONE.sql 11> ---------------------------------------------- given ...
Read Answers (2) | Asked by : pranoy

What does UID and GID signify? 
Latest Answer: UID - User idGID - Group idWe can find out using sample command fire @ $ promoit "id" you will user id & group id.e. g step 1 : $ id ---> O/p get display immediately uid=232(vijay) gid=1(staff)This is actually string in the /etc/password ...

What are the different security mechanisms available in UNIX? 
Latest Answer: Unix is having 3 ways of Security Mechanism:1. By granting or revoking File permissions. Owner or Admin can change permissions to be given to group or others by using chmod command in Unix.2. Login is restricted using login credetials ( User name and ...

What are the different types of shells available in UNIX? 
Latest Answer: bourne (sh)c shell (csh)korn (ksh)bourne again shell (bash)TC shell (tcsh) ...

how many users have logged in and logged out in last five or 10 minutes 
Latest Answer: By writing "who -Hu" you get following details o/pName        Line           Time     Activity       PID Hostname ...

nishanth.sed1h2,10{H;g}$q1,9dNDinput_fileaabbccddeeffgghhiijjkkllmmscriptsed -f nishanth.sed input_file 
View Question | Asked by : nishu_naga

You have current directory containing set of directories which contain files.One file can reside in many directories.Write script which returns number of unique file names inall the subdirectories of 
Latest Answer: set -x input_string=$1 if [ -z "$input_string" ] ; then echo "Please enter a Text along with the script namen" exit fi reversed_string=$(rev $input-string) if [ "$input_string" -eq "$reverse_string" ] ; ...

Latest Answer: Make provides most help when the program consists of many component files. As the number of files in the program increases so to does the compile time, complexity of compilation command and the likelihood of human error when entering command lines, i.e. ...

View page [1] 2 3 4 5 Next >>

Ask A Question
Go Top
 Sponsored Links

 
Ask Question
You must login to Ask Question or Register your free account

Category:

 
Question Title:


Question in Detail:

Add this to my Subscribed Questions (?)
Send me email when new answer is posted (?)

 
Expert Members
Subscribe
Get Latest Updates Via RSS Reader or by Email
 Forum Discussion Subscribe to Forum Discussions Via E-Mail Latest Forum Discussions Subscribers
 Knowledge Base Subscribe to Knowledge Base Series Via E-Mail Knowledge Base Subscribers
 Learning Series Subscribe to GeekInterview Learning Series Via EMail Learning Series Subscribers
 Freelance Jobs Subscribe to GeekInterview Freelance Jobs Via EMail Latest Freelance Jobs Subscribers
 GeekInterview Blog Subscribe to GeekInterview Blog Via EMail GeekInterview Blog Subscribers
 Testing Interview Questions Subscribe to Testing Interview Questions Via EMail Testing Interview Questions Subscribers
 Oracle Interview Questions Subscribe to Oracle Interview Questions Via EMail Oracle Interview Questions Subscribers
 Java Interview Questions Subscribe to Java Interview Questions Via EMail Java Interview Questions Subscribers
 Latest Placement Papers Subscribe to Latest Placement Papers Placement Papers Subscribers
 Free Training Subscribe to Free Training Via EMail Free Training Subscribers
 Learn AJAX Subscribe to AJAXwith.com Via EMail AJAXwith Subscribers
Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape