Tuesday 17 January 2017

Unix Interview Questions and Answers for experienced

Unix Interview Questions and Answers for experienced

Question: What are filters?
Its a program which filter the data before execute on application OR database.

Question: What is Syntax for commands?
Command [-argument] [-argument] [–argument] [file]



Question: How to delete all the fies from current directory?
rm –r *



Question: What is Kernel?
Kernel is the UNIX operating system. It is the master program that controls the resources and allotting them tasks.


Question: What is Shell?
A shell acts as an interface between the user and the system.


Question: What are some common shells and what are their indicators?
sh – Bourne shell
csh – C SHell
bash – Bourne Again Shell
tcsh – enhanced C Shell
zsh – Z SHell
ksh – Korn SHell



Question: What is inode?
The inode is a data structure in a file system. Each inode stores the attributes and disk block location(s) of the object's data.


Question: What is Swapping?
The whole process in swapping is moved from the swap device to the main memory for execution. The process size must be less than or equal to the available main memory.


Question: What is Paging?
In this, only required memory pages are moved to main memory for execution.


Question: What is ephemeral port in UNIX?
Ephemeral ports are used by Operating system for client sockets.


Question: What is Bash Shell?
t is a free shell designed to work on the UNIX system. Being the default shell for most UNIX-based systems, it combines features that are available both in the C and Korn Shell.


Question: What is piping?
Piping, represented by the pipe character "|" and used to combine two or more commands together.
For Example:
uhunix% ls | grep username



Question: How to set the path in UNIX?
set path = [directory path]



Question: How do you find how many cpu are in your system and there details?
cat /proc/cpuinfo



Question: How do you find for how many days your Server is up?
uptime 



Question: How do you find whether your system is 32 bit or 64 bit?
arch



Question: What is tee command?
It is used to
a) get data from the standard input. b) send it to standard output.


Question: What is pid?
Pid is short for Process ID
. It is used to identify every process that runs on the UNIX system.



Question: What command will change your prompt to MYPROMPT?
PS1 = "MYPROMPT:"
Question: Write command to list all the links from a directory
ls -lrt | grep "^l"

Question: How to reboot all services in linux
reboot



Question: How to check http serverice
service httpd status



Question: How to stop http
service httpd stop



Question: How to start http
service httpd start



Question: How to check MysQL service
service mysqld status



Question: How to stop mysql
service mysqld stop



Question: How to start mysql
service mysqld start



Question: How to start nodeJS
node fileName.js



Question: How to start nodeJS permanently
nohup node server.js &
rm nohup.out