tag:blogger.com,1999:blog-8712770457197348465.post9150186372420050914..comments2024-03-19T01:04:48.783-07:00Comments on Javarevisited: Top 30 UNIX command Interview Questions asked in Investment Banksjavin paulhttp://www.blogger.com/profile/15028902221295732276noreply@blogger.comBlogger44125tag:blogger.com,1999:blog-8712770457197348465.post-37230468621722717462018-09-30T07:04:50.981-07:002018-09-30T07:04:50.981-07:00for Q. No. 7 don't think grep -c 'UNIX'...for Q. No. 7 don't think grep -c 'UNIX' will count only the first instance. instead using that we can use grep -oi 'UNIX' | wc -l, it will cont the only UNIX how many times are there<br />abhijithttps://www.blogger.com/profile/14765072024083945438noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-81003690975008791742018-09-28T03:08:28.366-07:002018-09-28T03:08:28.366-07:00thank you .its very useful to me. i have one doubt...thank you .its very useful to me. i have one doubt? how to installing the mysql in centos7.<br />because i tried lot of time .could you tell me about slove my problem?Anonymoushttps://www.blogger.com/profile/03228879641812096750noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-59659893219989698182017-05-06T11:18:02.412-07:002017-05-06T11:18:02.412-07:00i think you can open file in vi and remove m chara...i think you can open file in vi and remove m character not sure thoughPocket Full Of Sunshine......!!https://www.blogger.com/profile/04713603987229159371noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-85565403616803212002017-05-06T10:40:18.297-07:002017-05-06T10:40:18.297-07:00The given answer for:
7. In a file word UNIX is ap...The given answer for:<br />7. In a file word UNIX is appearing many times? How will you count number?<br />wont work in all cases as it counts each line only once even if it contains multiple occurrence of the word.<br />"grep -o "Unix" | wc -l" can be used insteadAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-46105004981314129072016-10-18T00:46:21.266-07:002016-10-18T00:46:21.266-07:00its really very good article Tqq
its really very good article Tqq<br />kpreddyhttps://www.blogger.com/profile/11763239269976655432noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-81660390595486586472016-08-19T04:05:32.992-07:002016-08-19T04:05:32.992-07:00It is good article. Keep it up. It is good article. Keep it up. Anonymoushttps://www.blogger.com/profile/18240678005138633036noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-78947614147110916152016-05-12T23:33:16.259-07:002016-05-12T23:33:16.259-07:00Thanks . It is good article but I checked with RHC...Thanks . It is good article but I checked with RHCE linux this command only showing data replacement . <br /><br />sed s/Unix/UNIX/g fileName<br /><br />But once I run the command "sed -i s/Unix/UNIX/g fileName" . It was working .Please correct me if I am going wrong .Thanks in advance.devilhttps://www.blogger.com/profile/08045397704063340980noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-25175184316266955882016-04-27T22:43:39.925-07:002016-04-27T22:43:39.925-07:00When i have used "lsof" command, that sh...When i have used "lsof" command, that shooted a message like <br /><br />lsof: WARNING: /usr/eee/.lsof_server1 was updated.<br /><br />What is the mean by it? why it is shooting warning?<br />Phanidharhttps://www.blogger.com/profile/18153776785256129016noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-48811078935961499712016-03-25T00:48:57.038-07:002016-03-25T00:48:57.038-07:00The output of uname -a command
[dsadm@lnappu022 ~]...The output of uname -a command<br />[dsadm@lnappu022 ~]$ uname -a<br />Linux lnappu022 2.6.18-407.el5 #1 SMP Fri Oct 16 12:04:40 EDT 2015 x86_64 x86_64 x86_64 GNU/Linux<br />[dsadm@lnappu022 ~]$ <br />Anonymoushttps://www.blogger.com/profile/16390450489176862853noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-44041395071275229602016-01-29T12:26:32.373-08:002016-01-29T12:26:32.373-08:00here few more questions -
1. How to create file sy...here few more questions -<br />1. How to create file system in UNIX ?<br />2. Explain LVM and it's use?<br />3. How to mount and unmount drives ?<br />4. How to configure a process to start on boot ?<br />5. How to add / modify users ?<br />6. How to check mail queue ?<br />7. Where are system log files located ?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-15092280377487898822014-12-18T06:09:44.732-08:002014-12-18T06:09:44.732-08:00Some comments:
Beginner 1: "find directory -...Some comments:<br /><br />Beginner 1: "find directory -maxdepth 1 -type l" is nicer and easily extensible.<br /><br />Beginner 3: wrong, this only gives kernel version, which in _some_ cases give the distribution (==operating system). "lsb_release -a" would be much preferred, even though a truly universal command does not exist.<br /><br />Beginner 4: Ctrl+z "bg" is Danielnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-83847158342687810032014-08-29T02:31:19.871-07:002014-08-29T02:31:19.871-07:00There is one more way to find all open files owned...There is one more way to find all open files owned by a process, apart from lsof, you can do ls /proc/pid/fd, it will give you open file descriptors. Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-11810811798011512252014-04-04T08:01:36.312-07:002014-04-04T08:01:36.312-07:00Questions asked at L& T Infotech for Productio...Questions asked at L& T Infotech for Production support role.<br /><br /><br />Display 10 most CPU intensive processes or Display process sorted on CPU usage.<br /> top command<br /><br />2. How to get the last 10 lines of a file (easy)<br /> tail -10 filename<br /><br />3. How to zip and unzip files in unix? (easy)<br /> gzip and gunzip<br /> bzip2 and bunzip2<br /> zip and Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-70298334629261739752014-01-24T19:09:40.948-08:002014-01-24T19:09:40.948-08:00#8 is terrible. Numerous problems with the answer...#8 is terrible. Numerous problems with the answer: 1) -s is summary so you only get one line of output, likely mean du -h 2) grep G will show any filename with G in it. 3) you'll miss any directory with a size of TB (not unusual these days).<br /><br />I suggest du -s * | sort -n, granted this command will break in directories with a large number of entries.Bill Broadleyhttps://www.blogger.com/profile/10070158298454075136noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-12191121196762101022014-01-24T19:04:27.347-08:002014-01-24T19:04:27.347-08:00Instead of command line trivia I prefer to ask a q...Instead of command line trivia I prefer to ask a question that gives an interviewee enough room to maneuver. One with a long enough answer so you can determine if the user understands the entire system and whose response will let you know their level of expertise. <br /><br />Something like "In as much detail as possible explain what happens when you say ssh hostname". Ideally Bill Broadleyhttps://www.blogger.com/profile/10070158298454075136noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-64108250469653748972014-01-04T04:55:56.916-08:002014-01-04T04:55:56.916-08:00QNo. 7 under Advanced UNIX question can also be wr...QNo. 7 under Advanced UNIX question can also be written in AWK as :<br /><br />awk '$1=="";$2==""{ printf "Phone number which has empty Name and Address is %s\n", $1}' filenameAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-35171713228050043182013-08-12T11:26:07.091-07:002013-08-12T11:26:07.091-07:00Please refer the below link for UNIX Basic Questio...Please refer the below link for UNIX Basic Questions and Answers..<br /><br />http://tecz.org/interview-questions/85-unix-basic-questions.htmlAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-82127855981862485062013-07-10T22:10:35.724-07:002013-07-10T22:10:35.724-07:00In Advanced UNIX Interview Question,
Answer 3: Wha...In Advanced UNIX Interview Question,<br />Answer 3: What is nohup?<br />nohup is a command, which is used to start any service or run any long running command, so that process doesn't die, when user logout from machine. We used to start our Java Services using nohup command so that it keeps running, even after you log out from shell.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-26106376531606358072013-06-28T11:27:48.163-07:002013-06-28T11:27:48.163-07:00Actually it is quite a good interview question if ...Actually it is quite a good interview question if the person understands the difference between 'top' and 'prstat' commands and why one may become a CPU hog (guess which one). This will give an idea if the person has been exposed to some really, really large OS images .. or have only been exposed to your average single-socket Linux box. <br /><br />But it depends what type of Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-17343336186226627322012-11-28T06:06:00.304-08:002012-11-28T06:06:00.304-08:00I got asked 'what is the difference between in...I got asked 'what is the difference between init 6 and reboot? I was apparently the only candidate ever to have answered correctly. I got the job. :-)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-1547094423595841892012-09-19T20:45:41.235-07:002012-09-19T20:45:41.235-07:00How can I download all these UNIX interview questi...How can I download all these UNIX interview questions and answers in PDF format ? Can you please shared pdf download link for these UNIX and Linux questions, Thanks in advanceMuskannoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-32073801020472009582012-09-19T20:38:37.639-07:002012-09-19T20:38:37.639-07:00Can any one please share UNIX or Linux Interview q...Can any one please share UNIX or Linux Interview question for System admin ? I am looking for some real tricky UNIX question which can be testing. Would be great if one can share from IB like Citibank, Barclays, Goldman Sachs, Standarad Charted, Morgan Stanley or RBS.<br /><br />SenthilSehthilnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-36098262221100666762012-08-22T08:57:57.436-07:002012-08-22T08:57:57.436-07:00nohup : enabling the command to keep running after...nohup : enabling the command to keep running after the user who issues the command has logged outAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-59135522531022057772012-04-26T16:24:51.752-07:002012-04-26T16:24:51.752-07:00Intermediate #7: "In a file [the] word UNIX i...Intermediate #7: "In a file [the] word UNIX is appearing many times? How will you count [the] number?"<br /><br />Even with case insensitive "-ci", as someone else suggested, you would still only get a count of the "lines" where the word "unix" appeared, not the "count". If you want to know how many times "UNIX" (any case) actually daddy_phantomhttps://www.blogger.com/profile/14495333090263703503noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-66626301748268355632012-03-09T05:32:01.623-08:002012-03-09T05:32:01.623-08:00Most of these questions are incorrect for Solaris ...Most of these questions are incorrect for Solaris (which is also a true Unix). Maybe it's a better idea to rename this blog post to "Top 30 Linux command Interview Questions".Anonymousnoreply@blogger.com