GeekInterview.com
  I am new, Sign me up!
 

Shell Scripting Interview Questions


Shell Scripting Interview Questions

Questions: 47
Comments: 242
 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. 
Latest Answer: find . -mtime 0   # find files modified between now and 1 day ago (i.e., within the past 24 hours)find . -mtime -1  # find files modified less than 1 day ago (i.e., within the past 24 hours, as before)find . -mtime 1    ...
Read Answers (2) | Asked by : iblue

In shell scripting How to indentify that the previous command was run successfully? 
Latest Answer: Using echo $? ...

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: To find a user's UID or GID in Unix, use the id command. To find a specific user's UID, at the Unix prompt, enter: id -u username Replace username with the appropriate user's username. To find a user's GID, at the Unix prompt, enter: id -g username ...

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: Using SIGALRM ...

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

 
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
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape