Documente Academic
Documente Profesional
Documente Cultură
Commands
Linux
A-Z
INTERVIEW QUESTIONS 20 I TecMint :
Questions and
https://www.tecmint.com/interview-questions-on-shell-scripting/ 1/17
7/1/2017 10 Useful 'Interview Questions and Answers' on Linux Shell Scripting
Answers’ on Linux
Linux Foundation’s LFCS and LFCE Certi cation Preparation Guide
Vi/Vim ($39)BEGINNER'S
Editor Get This Book
GUIDE
‘The-Tecmint-Team‘ works
Install Cacti (Network Monitoring) on
to provide our readers with RHEL/CentOS 7.x/6.x/5.x and Fedora 24-12
unique contents which is
useful for them from career Google Chrome 59 Released – Install on
RHEL/CentOS 7/6 and Fedora 25-20
perspective as well as
adding to the Knowledge How to Install Ubuntu 16.10/16.04 Alongside With
base. Here is an attempt Windows 10 or 8 in Dual-Boot
and it is on our readers to
Tecmint’s Guide to Red Hat RHCSA / RHCE
judge how far we succeed.
Certi cation Preparation Study Guide
SHARE
0
Questions on Shell Scripting
https://www.tecmint.com/interview-questions-on-shell-scripting/ 4/17
7/1/2017 10 Useful 'Interview Questions and Answers' on Linux Shell Scripting
A ‘sed –n ‘n p’ le.txt‘,
where ‘n‘ represents the line
number and ‘p‘ print out the
https://www.tecmint.com/interview-questions-on-shell-scripting/ 5/17
7/1/2017 10 Useful 'Interview Questions and Answers' on Linux Shell Scripting
https://www.tecmint.com/interview-questions-on-shell-scripting/ 6/17
7/1/2017 10 Useful 'Interview Questions and Answers' on Linux Shell Scripting
Open vi editor.
Go to command mode
of vi editor by pressing
[esc] followed by ‘:’.
The nal step is to type
execute [set list]
command, from
command interface of
‘vi’ editor.
https://www.tecmint.com/interview-questions-on-shell-scripting/ 7/17
7/1/2017 10 Useful 'Interview Questions and Answers' on Linux Shell Scripting
# mkdir dir_xyz
# chmod g+wx dir_xyz
# chmod +t dir_xyz
life.
https://www.tecmint.com/interview-questions-on-shell-scripting/ 8/17
7/1/2017 10 Useful 'Interview Questions and Answers' on Linux Shell Scripting
Running : A Linux
process is currently
being executed.
Stopped : A Linux
Process is stopped
after successful
execution or after
receiving kill signal.
Zombie : A Process is
said to be ‘Zombie’ if it
has stopped but still
active in process table.
too heavy.
https://www.tecmint.com/interview-questions-on-shell-scripting/ 9/17
7/1/2017 10 Useful 'Interview Questions and Answers' on Linux Shell Scripting
mindset.
9. Is it possible to
substitute ‘ls’ command
with ‘echo’ command?
https://www.tecmint.com/interview-questions-on-shell-scripting/ 10/17
7/1/2017 10 Useful 'Interview Questions and Answers' on Linux Shell Scripting
If You Appreciate
What We Do Here On
TecMint, You Should
Consider:
1. Stay Connected to: Twitter |
Facebook | Google Plus
https://www.tecmint.com/interview-questions-on-shell-scripting/ 11/17
7/1/2017 10 Useful 'Interview Questions and Answers' on Linux Shell Scripting
($3.95/month).
4. Become a Supporter - Make
a contribution via PayPal
5. Support us by purchasing
our premium books in PDF
format.
6. Support us by taking our
STORY Install
RainLoop
https://www.tecmint.com/interview-questions-on-shell-scripting/ 12/17
7/1/2017 10 Useful 'Interview Questions and Answers' on Linux Shell Scripting
Installing Webmail (A
LAMP (Linux, Web Based
Apache, Email Client)
MySQL/MariaDB, using ‘Nginx
and and Apache’ in
PHP/PhpMyAdmin) Arch Linux
in Arch Linux
7 17 4
20 RESPONSES
Comments 5 Pingbacks 0
https://www.tecmint.com/interview-questions-on-shell-scripting/ 13/17
7/1/2017 10 Useful 'Interview Questions and Answers' on Linux Shell Scripting
Reply
Warron French
February 20, 2017 at 7:36 am
The way the question was
asked wasn’t very clearly stated
to accomplish the use of the
command ls and echo to
answer it in the a rmative and
explain.
#!/bin/bash
sshpass -p “xxxx” ssh -o
StrictHostKeyChecking=no
user@abc.com <<EOF
echo "password" | 'sudo su -'
sh script.sh
EOF
Reply
Ravi Saive
March 9, 2016 at 10:49 am
@Jagan,
« Older Comments
Comment
Name * Email *
Website
Post Comment
https://www.tecmint.com/interview-questions-on-shell-scripting/ 15/17
7/1/2017 10 Useful 'Interview Questions and Answers' on Linux Shell Scripting
https://www.tecmint.com/interview-questions-on-shell-scripting/ 16/17
7/1/2017 10 Useful 'Interview Questions and Answers' on Linux Shell Scripting
https://www.tecmint.com/interview-questions-on-shell-scripting/ 17/17