Shell Scripting Interview Preparation Guide
Download PDF
Add New Question

Shell Scripting Interview Questions and Answers will guide us now that a shell script is a script written for the shell, or command line interpreter, of an operating system. It is often considered a simple domain-specific programming language. Typical operations performed by shell scripts include file manipulation, program execution, and printing text. Learn Shell Scripting with this Shell Scripting Interview Questions with Answers guide

30 Shell Scripting Questions and Answers:

1 :: What are PIDs?

They are process IDs given to processes. A PID can vary from 0 to 65535.
Post Your Answer

2 :: How do you send a mail message to somebody?

mail somebody@globalguideline.com -s ‘Your subject’ -c ‘ cc@globalguideline.com‘
Post Your Answer

3 :: How do you remove a file?

rm
Post Your Answer

4 :: How do you remove recursively?

rm -rf
Post Your Answer

5 :: How do you find out your own username?

whoami
Post Your Answer

7 :: How do you search for a string inside a given file?

grep string filename
Post Your Answer

8 :: How do you search for a string inside a directory?

grep string *
Post Your Answer

9 :: How do you search for a string in a directory with the subdirectories recursed?

grep -r string *
Post Your Answer
Add New Question