Shell Script Interview Questions
Questions Answers Views Company eMail

In my bash shell I want my prompt to be of format '$"present working directory":"hostname"> and load a file containing a list of user-defined functions as soon as I log in, how will you automate this?

644

How do we delete all blank lines in a file?

579

How can we find the process name from its process id?

711

How will I insert a line "abcdef" at every 100th line of a file?

2 5577

How will you copy a file from one machine to other?

554

What is gui scripting?

610

What is the syntax of "nested if statement" in shell scripting?

639

Is it possible to substitute "ls" command in the place of "echo" command?

621

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

634

What is the use of "$#" in shell scripting?

556

Why is the use of shell script?

551

What are the different types of variables used in shell script?

558

What is the use of break command?

592

What are the zombie processes?

573

What are the advantages of shell scripting?

590


Post New Shell Script Questions

Un-Answered Questions { Shell Script }

What is $1 in shell scripting?

597


What is scripting used for?

571


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

4699


What can you do with powershell?

617


What is shell scripting?

599






What are the 3 standard streams in linux?

578


How do you debug a script?

573


Is bash an operating system?

552


What is echo $shell?

628


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

1730


I want to monitor a continuously updating log file, what command can be used to most efficiently achieve this?

762


What is bash shell command?

564


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

635


What is the use of a shebang line?

627


Tell something about the super block in shell scripting?

581