Shell Script Interview Questions
Questions Answers Views Company eMail

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

624

What is the syntax of while loop in shell scripting?

577

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

497

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

646

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

536

How do you create a shortcut in linux?

601

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

593

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

546

How to print all the arguments provided to the script?

559

Tell something about the super block in shell scripting?

581

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

647

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

564

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

709

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

603

How to use arguments in a script?

592


Post New Shell Script Questions

Un-Answered Questions { Shell Script }

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

2333


What is the command to find out users on the system?

577


What are the types of script?

623


What are the various stages of a linux process it passes through?

632


What is .sh file in mac?

563






How do I read a .sh file?

537


Explain about stdin, stdout and stderr?

637


Is shell scripting a language?

591


What are the different types of shell scripting?

542


I want to create a directory such that anyone in the group can create a file and access any person's file in it but none should be able to delete a file other than the one created by himself.

601


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

537


Tell something about the super block in shell scripting?

581


write a shell script to check the failed jobs?

3964


Explain about login shell?

638


What is k shell?

538