Shell Script Interview Questions
Questions Answers Views Company eMail

What are the three main forms of enabling debugging in a shell script?

Wipro, ADC,

6 8074

what is the difference between writing code in shell and editor?

1 5986

What is the basic difference you find between a shell script and perl?

Yahoo,

3 15095




What is use of "cut" command?

3 6700

what is this line in the shell script do ?#!/bin/ksh

5 10172

How Connect to a Database in Shell Programming?

Syntel,

4 20221

write a shell script to identify the given string is palindrome or not?

CTS, HP, Wipro, IBM, InfoEst,

16 63353

What is INODE?

2 4470




What is the difference between a 'thread' and a 'process'?

3 4108

What are the Different types of shells?

5 5503

What does $# stand for?

IBM,

3 6197

If you have a string "one two three", which shell command would you use to extract the strings?

5 8646

What is the difference between a shell variable that is exported and the one that is not exported?

6 6823

What is MUTEX?

1 3968

How do you schedule a command to run at 4:00 every morning?

Wipro,

5 10237


Post New Shell Script Questions






Un-Answered Questions { Shell Script }

Please give me example of " at command , contrab command " how to use

1664


Using set -A write a script to print the output of the ls command in 5 columns with two spaces between each column. Pretend that ls does not have multicolumn output.

1406


Shifting positional parameter in Linux fedora core ? Hi I have written following shell script for display value of positional. But in 11th and 12 field will display without shifting command. May I know is it advance of Linux of programming code error? #!/usr/bin/bash echo "Bellow is the out of ps command" echo "`ps`" echo "The passing Parameter i.e output of \$1,2... value is:==> $11 " echo "Total number of passed argument \$# is:==> $#" echo "Passed argument names (\$*) are:==>$*" echo "This script PID(\$$) is :=>$$" echo "The name of executing script(\$0) is :==>$0" echo "The Parent ID of this script(\$PPID) is:==>$PPID" And my input to this script is ./scriptname arg1 arg2 arg3 arg4 arg5 arg6 arg7 arg8 arg9 arg10 arg11 arg12 Output Is Bellow is the out of ps command PID TTY TIME CMD 2892 pts/0 00:00:00 bash 3172 pts/0 00:00:00 positional_para 3173 pts/0 00:00:00 ps The passing Parameter i.e output of $1,2... value is:==> arg11 Total number of passed argument $# is:==> 13 Passed argument names ($*) are:==>arg1 arg2 arg3 arg4 arg5 arg6 arg7 arg8 arg9 arg10 arg11 arg12 arg13 This script PID($$) is :=>3172 The name of executing script($0) is :==>./positional_parameter The Parent ID of this script($PPID) is:==>2892 After the ps output please see the next line I.e $11 value comes out without shifting the parameter. How is it give me my friends

1076


what is tickets $ what low,medium,high priorite pls define time also

1063


what is info area how many types?

1576






madhar chod unix ke 10 commands dhang se likh nahi sakta hai

2242


wats the deinitions for shell utility and filter?

978


Using set -A write a script to print the output of the ls command in 5 columns with two spaces between each column. Pretend that ls does not have multicolumn output.

1426


How to find duplicate record in file using shell script?

150


c program which behaves like a shell(command interpreter). it has its own prompt say "NewShell$".any normal shell command is executed from your shell by starting a child process to execute a system program corrosponding to the command

2636


Set up a Sev 2 alert when the Primary WA service fails. A windows batch script needs to be created that will monitor the WA service on the Primary and when the service stops/fails a Sev 2 TT is generated for a particular team ?

1059


how to print the matrix form of 2-d, 3-d arrays in unix c shell scripts ?

2711


I have to write Shells (Linux + Unix)for publishing packages and reports. Is it possible ? What are the differents executable programs ineed to call ?

1046


shell script for reverse the string

232


How to replace following lines, catch (DAOException e) { objLogger.error(this.getClass () + "addUpdateIssues() " + e); throw new BOException(5122); } catch (BOException e) { objLogger.error(this.getClass () + "addUpdateIssues() " + e); throw e; } catch (Exception e) { objLogger.error(this.getClass () + "addUpdateIssues() " + e); throw new BOException(5122); } Needs to be changed in to, catch (DAOException e) { AppException.handleException (null, null, e, null, null, null, "BOException", this.getClass() + "addUpdateIssues() ", null, null, null, null, null, null, null, null, 5122); } catch (BOException e) { AppException.handleException (null, null, null, e, null, null, "BOException", this.getClass() + "addUpdateIssues() ", null, null, null, null, null, null, null, null, 0); } catch (Exception e) { AppException.handleException (null, null, null, null, null, e, "BOException", this.getClass() + "addUpdateIssues() ", null, null, null, null, null, null, null, null, 5122); }

1056