Shell Script Interview Questions
Questions Answers Views Company eMail

What are the four fundamental components of every file system on linux?

1161

Write the syntax for "if" conditionals in linux?

593

Write a command sequence to find all the files modified in less than 2 days and print the record count of each.

935

How to set an array in linux?

595

Write down the syntax of "for " loop

607

What will happen to my current process when I execute a command using exec?

536

What is the equivalent of a file shortcut that we have a window on a linux system?

602

I have 2 files and I want to print the records which are common to both.

695

I want to read all input to the command from file1 direct all output to file2 and error to file 3, how can I achieve this?

1 1312

Write a script to print the first 10 elements of fibonacci series.

1766

How do we create command aliases in a shell?

540

Write a command sequence to find the count of each word?

539

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.

597

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

551

How will you connect to a database server from linux?

555


Post New Shell Script Questions

Un-Answered Questions { Shell Script }

What is the difference between break and continue commands?

573


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

525


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

591


What is console line?

570


What is path variable bash?

568






Explain about the exit command?

569


What is shell chemistry?

536


How do I open a jshell in cmd?

596


What is c in shell script?

636


Is bash a shell script?

601


Which is better perl or shell scripting?

559


How will you print the login names of all users on a system?

571


Why should we use shell scripts?

590


What is sh in shell script?

573


Why are there shells on the beach?

594