Shell Script Interview Questions
Questions Answers Views Company eMail

What is the use of "$?" Sign in shell script?

619

What is the syntax of while loop in shell scripting?

569

What are the different commands available to check the disk usage?

495

How to open a read-only file in the shell?

644

What is a shell script? Can you name some of its advantages?

525

How do you create a shortcut in linux?

595

Suppose you execute a command using exec, what will be the status of your current process in the shell?

580

What makes c shell a more preferable option than the bourne shell?

542

How to print all the arguments provided to the script?

557

Tell something about the super block in shell scripting?

573

Write a shell script to get current date, time, user name and current working directory.

637

Determine the output of the following command: [ -z “” ] && echo 0 || echo 1

557

Print a given number, in reverse order using a shell script such that the input is provided using command line argument only.

703

How to get the first line from a file using just the terminal?

597

How to use arguments in a script?

581


Post New Shell Script Questions

Un-Answered Questions { Shell Script }

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

552


Explain about shebang?

624


Explain about return code?

632


What is the best scripting language?

565


what is info area how many types?

2290






How does path variable work?

547


What language is shell scripting?

581


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

4693


What does sh mean?

619


Why should we use shell scripts?

592


Why do we write bin bash in shell scripts?

546


How do scripts work?

610


How to check if the previous command was run successfully?

597


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 ?

1716


What is difference between bash and shell?

556