Shell Script Interview Questions
Questions Answers Views Company eMail

What command needs to be used to take the backup?

541

What does it mean by #!/Bin/sh or #!/Bin/bash at the beginning of every script?

581

How to print pid of the current shell?

611

How can the contents of a file inside jar be read without extracting in a shell script?

604

How to print the first array element?

574

Can you write a script to portray how set –x works?

566

How to debug the problems encountered in the shell script/program?

641

What are the different communication commands available in the shell?

527

How to write a function?

610

How to print all array elements and their respective indexes?

518

Determine the output of the following command: name=shubham && echo ‘my name is $name’.

545

What are the advantages of shell script?

533

How to check if the previous command was run successfully?

601

What is the lifespan of a variable inside a shell script?

1138

How to redirect both standard output and standard error to the same location?

659


Post New Shell Script Questions

Un-Answered Questions { Shell Script }

What is inside a seashell?

655


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

1734


How would you compare the strings in a shell script?

556


What is the use of .sh file?

629


What is the difference between bash and shell?

666






Can you write a script to portray how set –x works?

566


write a shell script to emulate the Id command of PRIMOS which lists files and directories. It list files first with a header FILES and then directories with a header DIRECTORIES. This command has several options. The main ones are. -file select files only -dir select directories only -reverse sort in reverse order -no_header put no header on the output -brief output the header only -size display the size of each file -help display Id´s syntax and options.

2241


What are the different communication commands available in the shell?

527


How many fields are present in a crontab file and what does each field specify?

610


How to pass an argument to a script?

606


What does chmod do?

584


Explain about the slow execution speed of shells?

789


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

1695


Can we run shell script in windows?

594


What are the different types of commonly used shells on a typical linux system?

558