linux questions

seacover 2012-10-23

linux:

1.HowdoyouidentifyaJavaprocessidinaUNIXmachine?

jps

2.HowdoyougetathreaddumpofaJavaprocessinaUNIXmachine?

jmap

3.IfyouhavemultiplejavaprocessesrunninginaUNIXmachine,howwouldyouidentifyaparticularprocess?

pf-ef|grepprocessid

4.Whattools/commandsdoyouusetohelpyouidentifyanoutofcontrolJavaprocessinaUNIXmachine?

5.HowwouldyoudisplaythenumberofactiveestablishedconnectionstolocalhostinaUNIXmachine?

netstat

6.HowdoyoufindoutdrivestatisticsinaUNIXmachine?

fdisk

7.HowdoyoulistthefilesincurrentdirectorysortedbysizeinaUNIXmachine?

#du/etc|sort-nr|more

8.HowdoyoudeleteblanklinesinafileinaUNIXmachine?

有时当进行某些配置文件的查看时,分去除注释(如:"#"),但之后还会发现中间也许会有好多空行,所以,现小结一下去除空行的方法。

1)用tr命令

#grep-v"#"/etc/snmp/snmpd.conf|tr-s'/n'

2)用sed命令

#grep-v"#"/etc/snmp/snmpd.conf|sed'/^$/d'

3)用awk命令

#grep-v"#"/etc/snmp/snmpd.conf|awk'{if($0!="")print}'

#grep-v"#"/etc/snmp/snmpd.conf|awk'{if(length!=0)print$0}'

4)用grep命令

#grep-v"#"/etc/snmp/snmpd.conf|grep-v"^$"

5)用grep命令

#grep^[^#]/etc/snmp/snmpd.conf

我解释下^[^#]/是个正则表达式。^[^#]取的结果为非#开头的行。

注:本文中的"|"管道前是去除注释,管道后是去除空行。上面所有例子中是用grep-v来去除注释,也可以用sed-e"s/#.*//g"filename来过滤。

9.HowwouldyoudisplayallthefilesrecursivelyundercurrentdirectoryinaUNIXmachine?

ll-r

10.HowwouldyoudisplaydiskusageinkilobytesinaUNIXmachine?

du:查询档案或目录的磁盘使用空间

11.Howdoyourunaprocessinbackground?

http://blog.csdn.net/zjnig711/article/details/6722652

PersonalandBehavioral/Situational

1.DidyouhavetouseanydesignpatternsinyourJavaproject

2."Tellmeaboutyourselforaboutsomeoftherecentprojectsyouhaveworkedwith?Whatdoyouconsideryour

mostsignificantachievement?Whydoyouthinkyouarequalifiedforthisposition?Whyshouldwehireyouandwhatkindofcontributionswillyoumake?"

3.Whyareyouleavingyourcurrentposition?

4.Howdoyouhandlepressure?Doyoulikeordislikethesesituations?

5."Whatareyourstrengthsandweaknesses?Canyoudescribeasituationwhereyoutookinitiative?Canyou

describeasituationwhereyouappliedyourproblemsolvingskills?"

6."Describeatimewhenyouwerefacedwithastressfulsituationthatdemonstratedyourcopingskills?Givemeanexampleofatimewhenyouusedyourfactfindingskillstosolveaproblem?Describeatimewhenyouapplied

youranalyticaland/orproblemsolvingskills?"

7."Doyoufollowanysoftwaredevelopmentprocesseslikeagilemethodology,XP,RUPetc?

相关推荐

唐宋源码清 / 0评论 2013-06-17