You are on page 1of 24

7/1/2017 70 Shell Scripting Interview Questions & Answers

HOME ABOUT TRENDING FREE EBOOKS Search this website

LINUX HOWTO
LINUX DISTROS
SHELLLINUX
SCRIPTS
COMMANDS

70 LINUX
Shell Scripting Interview Questions & Answers
TOOLS
AUTOMATION
Posted on : May 18, 2015 , Last Updated on : October 8, 2016 By Petras Liumparas More    
SHELL SCRIPTS
We have selected
DEVOPS expected 70 shell scripting question and answers for your interview preparation. Its really vital for all system admin to know
scripting
WEB or SERVERS
atleast the basics which in turn helps to automate many tasks in your work environment. In the past few years we have seen that all
linux job specification
UBUNTU HOWTO requires scripting skills.

1) How to pass argument to a script ?

./script argument

Example : Script will show filename

./show.sh file1.txt

cat show.sh
#!/bin/bash
cat $1

2) How to use argument in a script ?

First argument: $1,


Second argument : $2

Example : Script will copy file (arg1) to destination (arg2)

./copy.sh file1.txt /tmp/

cat copy.sh
#!/bin/bash
cp $1 $2

3) How to calculate number of passed arguments ?

$#

https://linoxide.com/linux-shell-script/shell-scripting-interview-questions-answers/ 1/24
7/1/2017 70 Shell Scripting Interview Questions & Answers

4) How to get script name inside a script ?

$0

5) How to check if previous command run successful ?

$?

6) How to get last line from a file ?

tail -1

7) How to get first line from a file ?

head -1

8) How to get 3rd element from each line from a file ?

awk '{print $3}'

9) How to get 2nd element from each line from a file, if first equal FIND

awk '{ if ($1 == "FIND") print $2}'

10) How to debug bash script

Add -xv to #!/bin/bash

Example

#!/bin/bash –xv

11) Give an example how to write function ?

function example {
echo "Hello world!"
}

12) How to add string to string ?

V1="Hello"
V2="World"
let V3=$V1+$V2
echo $V3

Output

Hello+World

13) How to add two integers ?

V1=1
V2=2
V3=$V1+$V2
echo $V3

Output
3

https://linoxide.com/linux-shell-script/shell-scripting-interview-questions-answers/ 2/24
7/1/2017 70 Shell Scripting Interview Questions & Answers

Remember you need to add "let" to line V3=$V1+$V2


then echo $V3 will give 3

if without let , then it will be

echo $V3 will give 1+2

14) How to check if file exist on filesystem ?

if [ -f /var/log/messages ]
then
echo "File exists"
fi

15) Write down syntax for all loops in shell scripting ?

for loop :

for i in $( ls ); do
echo item: $i
done

while loop :

#!/bin/bash
COUNTER=0
while [ $COUNTER -lt 10 ]; do
echo The counter is $COUNTER
let COUNTER=COUNTER+1
done

until loop :

#!/bin/bash
COUNTER=20
until [ $COUNTER -lt 10 ]; do
echo COUNTER $COUNTER
let COUNTER-=1
done

16) What it means by #!/bin/sh or #!/bin/bash at beginning of every script ?

That line tells which shell to use. #!/bin/bash script to execute using /bin/bash. In case of python script there there will be #!/usr/bin/python

17) How to get 10th line from the text file ?

head -10 file|tail -1

18) What is the first symbol in the bash script file

19) What would be the output of command: [ -z "" ] && echo 0 || echo 1

20) What command "export" do ?

Makes variable public in subshells

https://linoxide.com/linux-shell-script/shell-scripting-interview-questions-answers/ 3/24
7/1/2017 70 Shell Scripting Interview Questions & Answers

21) How to run script in background ?

add "&" to the end of script

22) What "chmod 500 script" do ?

Makes script executable for script owner

23) What ">" do ?

Redirects output stream to file or another stream.

24) What difference between & and &&

& - we using it when want to put script to background


&& - when we wand to execute command/script if first script was finished successfully

25) When we need "if" before [ condition ] ?

When we need to run several commands if condition meets.

26) What would be the output of the command: name=John && echo 'My name is $name'

My name is $name

27) Which is the symbol used for comments in bash shell scripting ?

28) What would be the output of command: echo ${new:-variable}

variable

29) What difference between ' and " quotes ?

' - we use it when do not want to evaluate variables to the values


" - all variables will be evaluated and its values will be assigned instead.

30) How to redirect stdout and stderr streams to log.txt file from script inside ?

Add "exec >log.txt 2>&1" as the first command in the script

31) How to get part of string variable with echo command only ?

echo ${variable:x:y}
x - start position
y - length
example:
variable="My name is Petras, and I am developer."
echo ${variable:11:6} # will display Petras

32) How to get home_dir with echo command only if string variable="User:123:321:/home/dir" is given ?

echo ${variable#*:*:*:}
or
echo ${variable##*:}

33) How to get “User” from the string above ?

https://linoxide.com/linux-shell-script/shell-scripting-interview-questions-answers/ 4/24
7/1/2017 70 Shell Scripting Interview Questions & Answers

echo ${variable%:*:*:*}
or
echo ${variable%%:*}

34) How to list users which UID less that 100 (awk) ?

awk -F: '$3<100' /etc/passwd

35) Write the program which counts unique primary groups for users and displays count and group name only

cat /etc/passwd|cut -d: -f4|sort|uniq -c|while read c g


do
{ echo $c; grep :$g: /etc/group|cut -d: -f1;}|xargs -n 2
done

36) How to change standard field separator to ":" in bash shell ?

IFS=":"

37) How to get variable length ?

${#variable}

38) How to print last 5 characters of variable ?

echo ${variable: -5}

39) What difference between ${variable:-10} and ${variable: -10} ?

${variable:-10} - gives 10 if variable was not assigned before


${variable: -10} - gives last 10 symbols of variable

40) How to substitute part of string with echo command only ?

echo ${variable//pattern/replacement}

41) Which command replaces string to uppercase ?

tr '[:lower:]' '[:upper:]'

42) How to count local accounts ?

wc -l /etc/passwd|cut -d" " -f1


or
cat /etc/passwd|wc -l

43) How to count words in a string without wc command ?

set ${string}
echo $#

44) Which one is correct "export $variable" or "export variable" ?

export variable

45) How to list files where second letter is a or b ?

ls -d ?[ab]*

46) How to add integers a to b and assign to c ?

https://linoxide.com/linux-shell-script/shell-scripting-interview-questions-answers/ 5/24
7/1/2017 70 Shell Scripting Interview Questions & Answers

c=$((a+b))
or
c=`expr $a + $b`
or
c=`echo "$a+$b"|bc`

47) How to remove all spaces from the string ?

echo $string|tr -d " "

48) Rewrite the command to print the sentence and converting variable to plural: item="car"; echo "I like $item" ?

item="car"; echo "I like ${item}s"

49) Write the command which will print numbers from 0 to 100 and display every third (0 3 6 9 …) ?

for i in {0..100..3}; do echo $i; done


or
for (( i=0; i<=100; i=i+3 )); do echo "Welcome $i times"; done

50) How to print all arguments provided to the script ?

echo $*
or
echo $@

51) What difference between [ $a == $b ] and [ $a -eq $b ]

[ $a == $b ] - should be used for string comparison


[ $a -eq $b ] - should be used for number tests

52) What difference between = and ==

= - we using to assign value to variable


== - we using for string comparison

53) Write the command to test if $a greater than 12 ?

[ $a -gt 12 ]

54) Write the command to test if $b les or equal 12 ?

[ $b -le 12 ]

55) How to check if string begins with "abc" letters ?

[[ $string == abc* ]]

56) What difference between [[ $string == abc* ]] and [[ $string == "abc*" ]]

[[ $string == abc* ]] - will check if string begins with abc letters


[[ $string == "abc*" ]] - will check if string is equal exactly to abc*

57) How to list usernames which starts with ab or xy ?

egrep "^ab|^xy" /etc/passwd|cut -d: -f1

58) What $! means in bash ?

Most recent background command PID

https://linoxide.com/linux-shell-script/shell-scripting-interview-questions-answers/ 6/24
7/1/2017 70 Shell Scripting Interview Questions & Answers

59) What $? means ?

Most recent foreground exit status.

60) How to print PID of the current shell ?

echo $$

61) How to get number of passed arguments to the script ?

echo $#

62) What difference between $* and $@

$* - gives all passed arguments to the script as a single string


$@ - gives all passed arguments to the script as delimited list. Delimiter $IFS

63) How to define array in bash ?

array=("Hi" "my" "name" "is")

64) How to print the first array element ?

echo ${array[0]}

65) How to print all array elements ?

echo ${array[@]}

66) How to print all array indexes ?

echo ${!array[@]}

67) How to remove array element with id 2 ?

unset array[2]

68) How to add new array element with id 333 ?

array[333]="New_element"

69) How shell script get input values ?

a) via parameters

./script param1 param2

b) via read command

read -p "Destination backup Server : " desthost

70) How can we use "expect" command in a script ?

/usr/bin/expect << EOD


spawn rsync -ar ${line} ${desthost}:${destpath}
expect "*?assword:*"
send "${password}\r"
expect eof
EOD

https://linoxide.com/linux-shell-script/shell-scripting-interview-questions-answers/ 7/24
7/1/2017 70 Shell Scripting Interview Questions & Answers

Good luck !! Please comment below if you have any new query or need answers for your questions. Let us know how well this helped for your
interview :-)

You might also like

15 Advanced Linux Interview Questions and Answers


How to Customize Shell Variable PS1-PS4 on Bash Prompt
26 Linux Interview Questions and Answers (Basic and Scenarios)
30 Expected DevOps Interview Questions and Answers
Shell Script : Find All Zip / Rar Files Then Unzip / Unrar
Interactive Shell Script to Copy Files / Directory using SCP
Shell Script : Backup MySql Databases In Compressed Format
How To Use Command Line Arguments In Shell Script
Shell Script To Find Directories Which Consume Highest Space
Shell Script to Check Linux System Health

Filed Under : SHELL SCRIPTS

Tagged With : Interview Questions Answers

Free Linux Ebook to Download

PREVIOUS ARTICLE

Basic Networking Commands with Docker Containers

NEXT ARTICLE

How to Use tmpfs on RHEL / CentOS 7.0

Comments (13)

Trackback URL | Comments RSS Feed

https://linoxide.com/linux-shell-script/shell-scripting-interview-questions-answers/ 8/24
7/1/2017 70 Shell Scripting Interview Questions & Answers

1. vicdeveloper says:
May 27, 2015 at 4:01 am

Great!.

This article is a gem. Oh my god, a lot of useful info about shell scripting.

Thanks :D!

Reply

2. Ashish says:
March 12, 2016 at 10:37 am

lot of useful info

Reply

3. Abhishek says:
May 29, 2016 at 1:59 pm

Really awesome?....

Reply

4. Harish says:
June 5, 2016 at 9:31 am

Awesomeeeee... Great stuff..

Reply

5. Swapnil Shevate says:


July 9, 2016 at 6:15 am

You nailed it. Thanks !

Reply

6. anumolu says:
August 21, 2016 at 10:48 pm

It's nice..!!

Reply

7. Laxma Reddy says:


August 30, 2016 at 10:51 am

Hi Petras Liumparas,

This is very very useful information on shell scripting, Please comeup with advanced tutorial like this.

I hope you will keep posting this kind of tutorial in shell script, especially in advanced level. if possible cover SED in detail.

https://linoxide.com/linux-shell-script/shell-scripting-interview-questions-answers/ 9/24
7/1/2017 70 Shell Scripting Interview Questions & Answers

Thanks a lot.

Reply

8. BhanuChand says:
September 5, 2016 at 6:34 pm

Great collection.

Reply

9. deepak says:
November 15, 2016 at 11:30 am

good one

Reply

10. Ratnaji says:


November 25, 2016 at 7:34 am

Great Collection. Also it would be great if you can share common shell script errors and error handling related stuff.

Thanks in Advance.

Reply

Bobbin Zachariah says:


November 26, 2016 at 11:36 am

Thanks for the comments. sure will consider

Reply

11. Mike Yung says:


February 8, 2017 at 1:11 am

This is so helpful. Thank you so much

Reply

12. Arun Kumar says:


June 16, 2017 at 7:46 pm

Really it good collection. All are new question. Great effort.

Reply

Leave a Reply

https://linoxide.com/linux-shell-script/shell-scripting-interview-questions-answers/ 10/24
7/1/2017 70 Shell Scripting Interview Questions & Answers

Name( required )

Email ( required; will not be published )

Website

All comments are subject to moderation.


What is linoxide based on ? Windows or Linux ? Type your answer into the box

Submit Comment

Popular Posts

1 Linux Commands Cheat Sheet in Black & White

2 Shell Script to Check Linux System Health

3 Colourful ! systemd vs sysVinit Linux Cheatsheet

4 Intro to Configure IPsec VPN (Gateway-to-Gateway ) using Strongswan

5 How to Install and Setup Asterisk 13 (PBX) on Centos 7.x

6 How to Install CentOS 7 Step by Step with Screenshots

7 How to Setup Hadoop Multi-Node Cluster on Ubuntu

8 Linux ntopng - Network Monitoring Tool Installation (Screenshots)

9 How to Setup ClipBucket to Start Video Sharing Website in Linux

10 How to Install / Setup rtorrent and rutorrent in CentOS / Ubuntu

11 How to Install GNOME 3.16 On Ubuntu, Mint and Arch Linux

12 70 Shell Scripting Interview Questions & Answers

13 How to Install Roundcube Webmail on Ubuntu16.04

14 How to Setup RatticDB Password Management Service on Ubuntu 16.04

15 How to Setup ELK Stack to Centralize Logs on Ubuntu 16.04

https://linoxide.com/linux-shell-script/shell-scripting-interview-questions-answers/ 11/24
7/1/2017 70 Shell Scripting Interview Questions & Answers

Sunway
College JB

Pave The Way For


Success, Globally.

Sunway College JB

https://linoxide.com/linux-shell-script/shell-scripting-interview-questions-answers/ 12/24
7/1/2017 70 Shell Scripting Interview Questions & Answers

Submit Your
Resume Now

Ad Monster.com Malaysia

Shell Script to
Check Linux...

linoxide.com

Remedies for Lung


Cancer - Fight...

Ad moderncancerhospital.com.my

Shell Script to
Backup Files /...

linoxide.com

Amazing ! 25 Linux
Performance...

linoxide.com

30 Linux TOP
Command Usage...

linoxide.com

Learning Shell
Scripting - First...

linoxide.com

How to Show
Dialog Box from...

linoxide.com

26 Linux Interview
Questions and...

linoxide.com

15 Advanced Linux
Interview...

linoxide.com

Linux 'make'
Command...

linoxide.com

Linux Commands
Cheat Sheet in...

linoxide.com

Linux Boot
Process -...

linoxide.com

Subscribe To Free Newsletter

Get Delivered Free In Your Inbox Something New About Linux

Join 10400+ Linux Troop

Enter Your Email * SUBSCRIBE

100% privacy - We will never spam you

LINUX COMMANDS

15 Linux Screen Command for Dealing


Terminal Sessions
https://linoxide.com/linux-shell-script/shell-scripting-interview-questions-answers/ 13/24
7/1/2017 70 Shell Scripting Interview Questions & Answers
21 JUN, 2017

6 Ways to Find Largest Top Files and Directory


in Linux

27 APR, 2017

13 Practical df Command Examples to Check


Disk Space in Linux

24 MAR, 2017

How to Use Linux Hexdump Command with


Practical Examples

13 MAR, 2017

A Guide to Kill Process in Di erent Ways on


Linux
LINUX TOOLS
20 SEP, 2016
How to LinOxide.
© 2017 Install Open Visual
All rights Traceroute on
reserved. Contact Us | Privacy | Terms of Service
Ubuntu 16.04
How to Install perf Tool on CentOS and
Ubuntu
12 JUN, 2017

19 SEP, 2016
How to Manage Time from Linux Terminal
using Ding Tool
Unix Z Commands – Zcat, Zless, Zgrep, Zegrep
and
31 Zdi2017
MAY, Examples

7 SEP, 2016
How to Install OpenMaint on Ubuntu 16.04
How
29 to2017
MAY, Track Progress % of Commands
(cp,dd,tar) in CentOS 6 / Fedora
Machma
5 SEP, 2016- Enables to Run Multiple Commands
Parallel in Linux
Run
24 Command
MAY, 2017 Parallel on Multiple Hosts
using PDSH Tool
How to2016
30 AUG, Setup Elastix 5 PBX Uni ed
Communication Server on Linux SUBSCRIBE TO FREE NEWSLETTER
Powerful
22 SSH
MAY, 2017 Command Options with
Examples on Linux Get Delivered Free In Your Inbox Something New About Linux
26 JUL, 2016
Join 10400+ Linux Troop
watch - Repeat Linux / Unix Commands
Regular Intervals
Enter Your Email * SUBSCRIBE

4 JUN, 2015
100% privacy - We will never spam you
A Peep into Process Management Commands
in Linux
TAGS
25 MAR, 2015

Apache Backup Clustering Command Container Docker Filesystem Firewall Freebsd Linux Tools Monitoring Network Ssh Storage Ubuntu 16
How to Manage Network using nmcli Tool in
RedHat / CentOS 7.x

14 JAN, 2015

Interface (NICs) Bonding in Linux using nmcli

5 JAN, 2015

How to Sync Time Properly with NTP Server in


CentOS 7.x

28 NOV, 2014

https://linoxide.com/linux-shell-script/shell-scripting-interview-questions-answers/ 14/24
7/1/2017 70 Shell Scripting Interview Questions & Answers
A Great Tool To Show Linux Command
Progress Like % , ETA

24 NOV, 2014

Linux blkid Command to Find Block Devices


Details

21 NOV, 2014

Important 10 Linux ps command Practical


Examples

19 NOV, 2014

timedatectl - Control Linux System Time and


Date in Systemd

5 NOV, 2014

rsync Command to Exclude a List of Files and


Directories in Linux

27 OCT, 2014

pidstat - Monitor and Find Statistics for Linux


Procesess

6 OCT, 2014

Linux ss Tool to Identify Sockets / Network


Connections with Examples

1 OCT, 2014

Colourful ! systemd vs sysVinit Linux


Cheatsheet

5 SEP, 2014

Awesome ! systemd Commands to Manage


Linux System

29 AUG, 2014

8 Options to Trace/Debug Programs using


Linux strace Command

18 AUG, 2014

How to Change Hostname in RHEL / CentOS


7.0

16 AUG, 2014

Linux Systemd - Start/Stop/Restart Services in


RHEL / CentOS 7

15 AUG, 2014

A Pocket Guide for Linux ssh Command with


Examples

13 AUG, 2014

How to Merge Directory Trees in Linux using


cp Command

23 JUL, 2014

https://linoxide.com/linux-shell-script/shell-scripting-interview-questions-answers/ 15/24
7/1/2017 70 Shell Scripting Interview Questions & Answers
Linux slabtop command - Display Kernel Slab
Cache Information

11 JUL, 2014

Linux chpasswd Command - Change


Passwords in Bulk Mode

7 JUL, 2014

Advanced Directory Navigations Tips and


Tricks in Linux

23 JUN, 2014

How to use Linux lsblk Command to List Block


Device Information

16 JUN, 2014

How to Use "Script" Command To Record


Linux Terminal Session

30 MAY, 2014

How To Use Ip Command In Linux with


Examples

2 MAY, 2014

Why htop Command Compete Linux top


Command

28 APR, 2014

Linux ndmnt Command To Find Mounted


Filesystems

28 MAR, 2014

Linux Commands Cheat Sheet in Black & White

21 MAR, 2014

6 Practical Usage of killall Command in Linux

14 MAR, 2014

10 ssh options for a Secure shell for Safe Data


Communication

2 MAR, 2014

Some powerful options of Linux Dig command


to Query DNS

26 FEB, 2014

Power of Linux wget Command to Downloand


Files from Internet

24 FEB, 2014

Best all Options for DNS lookup using Linux


host command

19 FEB, 2014

6 Linux head Command Options with


Examples

https://linoxide.com/linux-shell-script/shell-scripting-interview-questions-answers/ 16/24
7/1/2017 70 Shell Scripting Interview Questions & Answers
14 FEB, 2014

Linux more Command - Display Long Text File


Per page at a Time

10 FEB, 2014

Linux touch command - Why do we need to


change Timestamp?

5 FEB, 2014

Moving or Rename File / Directory in Linux - 10


Practical mv Command Examples

3 FEB, 2014

Linux rm Command Examples - Should be


Aware and Cautious

27 JAN, 2014

Create Directory - Subdirectory, What more


mkdir Command can do in Linux

23 JAN, 2014

15 Linux cp Command Examples - Create a


Copy of Files and Directories

14 JAN, 2014

Linux pwd command - Know Your Current


Working Directory

10 JAN, 2014

20 Linux ls Command Examples to Display the


Entries of Directory

9 JAN, 2014

userdel Command - Delete User Account from


Linux system

1 JAN, 2014

Linux free Command - Display Free and used


Memory in the System

28 DEC, 2013

Understanding Linux cd Command with


Examples

26 DEC, 2013

Linux who command - Displays who is on the


system

22 DEC, 2013

Linux id Command - Print user ID and group ID


information

21 DEC, 2013

10 Linux iostat Command to Report CPU and


I/O Statistics

20 DEC, 2013

https://linoxide.com/linux-shell-script/shell-scripting-interview-questions-answers/ 17/24
7/1/2017 70 Shell Scripting Interview Questions & Answers

Linux vmstat Command - Tool to Report Virtual


Memory Statistics

17 DEC, 2013

Linux lsusb Command to Print information


about USB on System

14 DEC, 2013

Linux mpstat Command - Reports Processors


Related Statistics

13 DEC, 2013

Linux whoami command - Knowing Who is


Logged In

12 DEC, 2013

Linux dmesg Command to Print or Control the


Kernel Ring Bu er

10 DEC, 2013

How to use Linux Netcat Command as Port


Scanner

10 DEC, 2013

Linux w Command to See Who is Logged In


And What Doing

10 DEC, 2013

Linux cal and ncal Commands to Display


Calender

8 DEC, 2013

Linux date command - Display and Set System


Date and Time

7 DEC, 2013

Using Password Aging to Secure your Linux


Access

6 DEC, 2013

Built in Audit Trail Tool - Last Command in


Linux

3 DEC, 2013

How To Display And Set Hostname in Linux

1 DEC, 2013

30 Linux TOP Command Usage Examples for


Monitoring

28 NOV, 2013

Linux Uptime Command - Find How Long Your


System Been Running

24 NOV, 2013

https://linoxide.com/linux-shell-script/shell-scripting-interview-questions-answers/ 18/24
7/1/2017 70 Shell Scripting Interview Questions & Answers
20 Linux Cat Command Examples For File
Management

23 NOV, 2013

Linux di Command Explained With Examples

20 NOV, 2013

9 Linux Uname Command Examples To Get


Operating System Details

17 NOV, 2013

Package Management Using YUM In Red Hat


Linux

6 NOV, 2013

Options in Linux RPM Command to Query


Packages

30 SEP, 2013

Linux Pmap Command - Find How Much


Memory Process Use

11 SEP, 2013

Linux Change File / Directory Ownership -


Chown Command

5 SEP, 2013

A Freshers Guide for Linux chmod Command


to Change File Permissions

2 SEP, 2013

Power Of Linux Sort Command

26 AUG, 2013

Power Of Linux sed Command

19 AUG, 2013

Fg/Bg Command - Linux Manage Process


Foreground / Background

12 AUG, 2013

Linux wc Command - File Count Options

5 AUG, 2013

Linux Groupadd Command - Adding New


Groups

29 JUL, 2013

Managing Linux Services at Startup With


Chkcon g Command

22 JUL, 2013

Linux User Add Command And Its All Options

8 JUL, 2013

https://linoxide.com/linux-shell-script/shell-scripting-interview-questions-answers/ 19/24
7/1/2017 70 Shell Scripting Interview Questions & Answers
7 Linux Tail Command Examples and How it
Helps Monitor Logs

1 JUL, 2013

Linux Process And Directory Structure Tree


Commands

24 JUN, 2013

11 Linux du Commands to Check Disk Usage


Size of Files and Folders

20 JUN, 2013

Linux - Finger Command To Find User Details

29 MAY, 2013

6 Linux chattr Commands to Protect Files by


Immutable Feature

5 MAY, 2013

Linux ifcon g : How To Set Ip Address /


Con gure Interface

17 APR, 2013

Linux Umask : Permission Set When New File /


Folder Created

15 APR, 2013

5 Ways To Find Linux Kernel Version

11 APR, 2013

How To Tar Linux Files Into .tgz Compressed


Extension

3 APR, 2013

Linux Word Count wc Command With Example

18 MAR, 2013

Manage Linux Group Using gpasswd


Command

14 MAR, 2013

Detailed Understanding Of Linux Inodes With


Example

1 FEB, 2013

Linux - Limit Process At User Level

30 JAN, 2013

Linux - List / Show Users Thats Belongs


Corresponding Groups

28 JAN, 2013

Fdisk Commands - Manage Partitions in Linux

26 JAN, 2013

https://linoxide.com/linux-shell-script/shell-scripting-interview-questions-answers/ 20/24
7/1/2017 70 Shell Scripting Interview Questions & Answers
Commands To Understand Page Faults Stats In
Linux

10 JAN, 2013

Learn Linux Nmap Command With Examples

29 DEC, 2012

Linux - How To Safely Remove External Drives

11 DEC, 2012

Linux - Memory Analysis With Free and Pmap


Command

8 DEC, 2012

Examples - Linux Shutdown Commands

5 DEC, 2012

Example : Linux Command To Add User To A


Group

30 NOV, 2012

Create User In Linux From Command Line And


Its Options

28 NOV, 2012

Linux Command To Change Password For Root


/ User / Group

25 NOV, 2012

Example How To Use Linux nohup Command

23 NOV, 2012

Easy Linux Command To Change Runlevels

21 NOV, 2012

HowTo : Reboot Linux Server Command Line


And Remotely

10 NOV, 2012

Rsync Over Ssh On Di erent Port In Linux

3 NOV, 2012

Linux Commad To List Directories / Directory


Names Only

2 NOV, 2012

Linux Usermod Command To Modify User


Details

20 OCT, 2012

Linux Command To Show / List All Users In the


System

18 OCT, 2012

Run Command In Linux - Run Shell With


Speci ed User / Group ID

https://linoxide.com/linux-shell-script/shell-scripting-interview-questions-answers/ 21/24
7/1/2017 70 Shell Scripting Interview Questions & Answers
2 OCT, 2012

Linux System Performance Monitoring Using


Sar Command

12 SEP, 2012

How To Mount & Umount Di erent Devices In


Linux

1 SEP, 2012

How To Use Linux Grep Command To Find


Strings

6 MAY, 2012

What Is Linux RPM And Installing, Uninstalling,


Updating, Querying,Verifying RPM

20 OCT, 2011

11 Examples How To Use Linux Tar Command


And All Options

7 SEP, 2011

Learn How To Use Linux vi Editor And Its


Commands

7 SEP, 2011

Linux Commands To Manage Shared Libraries

6 SEP, 2011

8 Examples - Linux du Command With All Its


Options

6 SEP, 2011

15 Di erence Between Linux Yum and


Up2date Command

6 SEP, 2011

Example - How To Use Tee Command In Linux

22 AUG, 2011

13 Examples To Explain Linux Netstat


Commad

22 AUG, 2011

Learn Linux DD Command - 15 Examples With


All Options

24 JUN, 2011

Linux Watch Command - Repeat A Command


At Regular Intervals

21 JUN, 2011

7 Examples Linux Dmidecode Command -


Display Hardware Details In BIOS

27 MAY, 2011

https://linoxide.com/linux-shell-script/shell-scripting-interview-questions-answers/ 22/24
7/1/2017 70 Shell Scripting Interview Questions & Answers
20 Examples for Linux Zip and UnZip
Command

18 MAY, 2011

38 Basic Linux Commands To Learn With


Examples

16 MAY, 2011

Commands Check Linux OS is 64 / 32 bit and


CPU 64 / 32 Bit

13 MAY, 2011

Linux Print Command : Usage Of Linux lp


Command With Examples

10 MAY, 2011

6 Examples Linux Chage Command : Set


Password Aging For User

2 MAY, 2011

10 Example Scenarios To Learn Linux Find


Command

30 APR, 2011

Linux Awk Command With Examples To Make


It Easy

30 APR, 2011

13 Commands to Find Architecture of Linux OS


and CPU (32 & 64) Bit

30 APR, 2011

Linux Hdparm Command: Display Hard Disk


Model and Serial Number

24 APR, 2011

Everyday Linux ps command Examples for


System Admin

24 APR, 2011

How To List Linux Pci Devices Using lspci


Command

23 APR, 2011

How To Use Screen And Script Command In


Linux

23 APR, 2011

12 Di erent Options of Rsync Command in


Linux With Examples

23 APR, 2011

How To Use Linux Route Add Command

23 APR, 2011

Few Netstat Command Example Useful For


Daily Usage
https://linoxide.com/linux-shell-script/shell-scripting-interview-questions-answers/ 23/24
7/1/2017 70 Shell Scripting Interview Questions & Answers
23 APR, 2011

Can Linux sfdisk Tool Used Instead Of Fdisk

20 MAR, 2011

Can dd Command Used To Wipe Data?


Examples

20 MAR, 2011

How To Use Linux Kill Command

20 MAR, 2011

How To Backup LVM Con guration On Linux


(vgcfgbackup & vgcfgrestore)

25 FEB, 2011

How to Create Partition in Linux using fdisk


Tool

25 FEB, 2011

How To Use Linux Tr Command With Examples

22 FEB, 2011

https://linoxide.com/linux-shell-script/shell-scripting-interview-questions-answers/ 24/24

You might also like