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?

634

How do we delete all blank lines in a file?

567

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

699

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

2 5480

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

539

What is gui scripting?

596

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

622

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

612

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

622

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

548

Why is the use of shell script?

537

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

547

What is the use of break command?

581

What are the zombie processes?

562

What are the advantages of shell scripting?

580


Post New Shell Script Questions

Un-Answered Questions { Shell Script }

How do you create a shortcut in linux?

586


How do I run a script from command prompt?

558


Is shell scripting a programming language?

570


What is meant by dos operating system?

570


What is the use of .sh file?

595






What is the default ubuntu terminal?

610


What shell is bin sh?

525


What does $@ mean bash?

660


What is shell geeksforgeeks?

585


What is shell scripting used for?

563


What are scripts in psychology?

586


What's the difference between scripting and coding?

591


What is shell terminal?

545


What is difference between bash and shell?

546


I want to connect to a remote server and execute some commands, how can I achieve this?

567