Shell Script Interview Questions
Questions Answers Views Company eMail

Explain about "s" permission bit in a file?

618

What is the use of a shebang line?

625

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

578

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

756

What are "c" and "b" permission fields of a file?

566

How will you find the 99th line of a file using only tail and head command?

2004

What is the difference between grep and egrep?

614

What are the 3 standard streams in linux?

576

What is a boot block?

587

How can I send a mail with a compressed file as an attachment?

558

How can you find out how long the system has been running?

530

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

577

Given a file find the count of lines containing the word "abc".

963

What is an inode block?

579

How will you pass and access arguments to a script in linux?

591


Post New Shell Script Questions

Un-Answered Questions { Shell Script }

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

632


How do you create a shortcut in linux?

597


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

640


How do scripts work?

612


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

609






How do I run a .sh file?

620


What are the different types of shell scripting?

540


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 ?

1720


What is shell prompt?

568


What is shift command in shell script?

533


Can you write a script to portray how set –x works?

556


Explain about return code?

636


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

589


What is shell company all about?

577


How do I open the shell in cmd?

531