|
221. How Do You Check if A Particular Process Is Listening On A Particular Port On Remote Host?
Date Posted: 07/02/2012
Ans: By using telnet command for example “telnet hostname port”, if it successfully connects then some process is listening on that port.
|
|
|
222. How Do You Set environment Variable Which Will Be Accessible Form Sub Shell?
Date Posted: 07/02/2012
Ans: By using export for example export count=1 will be available on all sub
shell.
|
|
|
223. In A File Word UNIX Is Appearing Many Times? How Will You Count Number?
Date Posted: 07/02/2012
Ans: grep -c “Unix” filename
|
|
|
224. What Is Zombie process In UNIX? How Do You Find Zombie Process In UNIX?
Date Posted: 07/02/2012
Ans: When a program forks and the child finishes before the parent, the kernel still keeps some of its information about the child in case the parent might need it.
|
|
|
225. What Is Difference Between Hard Link And Soft Link In UNIX?
Date Posted: 07/02/2012
Ans: Unix Soft links are pointers to programs, files, or directories located
elsewhere (just like Windows shortcuts).
Unix Hard links are pointers to programs and files, but NOT directories
|
|
|
226. How Do You Find how Many CPU Are In Your System And There Details?
Date Posted: 07/02/2012
Ans: By looking into file
/etc/CPU info for example you can use below command:
cat /proc/cpuinfo
|
|
|
227. How Do You Find For How Many Days Your Server Is Up?
Date Posted: 07/02/2012
Ans: By using uptime command in UNIX
|
|
|
228. Your Application home Directory Is Full? How Will You Find Which Directory Is Taking How Much space?
Date Posted: 07/02/2012
Ans: By using disk usage
(DU) command in Unix for example du –sh . | grep G will list down all
the directory which has GIGS in Size.
|
|
|
229. You Have A Tab Separated File Which Contains Name, Address And Phone Number, List Down All Phone Number Without Their Name And Addresses?
Date Posted: 07/02/2012
Ans: you can either use AWK or CUT command here.
|
|
|
230. There Is A File Unix_Test.txt Which Contains Words Unix, How Will You Replace All Unix To UNIX?
Date Posted: 07/02/2012
Ans: by using SED command in UNIX for example you can execute Sed s/Unix/UNIX/g filename.
|
|