Google
 

Monday, May 7, 2007

UNIX INTERVIEW QUESTIONS

Common Unix Interview Questions

Send your Question/Answer
• What is the output of the following program:
• main()
• {
• printf("Hello");
• fork();
• }
"HelloHello". The buffer is flushed when the process is finished, because there is no '\n' in the output string. When the process is fork()'ed, the child process "inherits" the buffer of the parent process. When the child process is finished it flushes the buffer. Finally, parent process is finished and flushes its buffer.
• For the following struct:
• struct str
• {
• int a;
• char b;
• short c;
• }
Create the macro OFFSET that returns an offset of each structure's member.
• Write a shell script that will "simultaneously" (i.e. not one by one) copy all the files from one directory to another.
• What happens when the function definition has less/more parameters than the actual call?

• a. Definition: f(a,b)
• Call: f(a,b,c)

• b. Definition: f(a,b,c)
• Call: f(a,b)

• How would you set permissions on a symbolic link?
It is a tricky question if you never worked with symbolic links. There is no meaning in setting the permissions on a symbolic link!

• How well do you know vi ?
The answer depends on how deep the interviewer knows vi himself and what is the meaning "well". I guess the absolute minimum is the switch from input to command mode, reqular expressions, reading/writing to file. You may also delicately hint that normal people would use Emacs rather than vi most of the time.

• Are you familiar with different shells? Name them, explain the difference.
There are too many of them to know all, but you may mention sh, csh, tcsh, ksh, bsh etc. I guess nobody knows all details of differences between them :)

• What are the following files: hosts, services, inetd.conf... (any Unix file might be named here :-) )

• How would you automatically start a daemon on Sys 5 R4?

12 comments:

Anonymous said...

[u][b]Xrumer[/b][/u]

[b]Xrumer SEO Professionals

As Xrumer experts, we secure been using [url=http://www.xrumer-seo.com]Xrumer[/url] for the benefit of a wish time conditions and recollect how to harness the titanic power of Xrumer and turn it into a Cash machine.

We also yield the cheapest prices on the market. Numberless competitors will cost 2x or even 3x and a a pile of the opportunity 5x what we charge you. But we believe in providing great mending at a debilitated affordable rate. The entire point of purchasing Xrumer blasts is because it is a cheaper alternative to buying Xrumer. So we plan to stifle that thought in recollection and outfit you with the cheapest grade possible.

Not solitary do we have the most successfully prices but our turnaround occasion for the treatment of your Xrumer posting is wonderful fast. We drive secure your posting done before you distinguish it.

We also provide you with a full log of affluent posts on contrary forums. So that you can get the idea for yourself the power of Xrumer and how we be struck by harnessed it to help your site.[/b]


[b]Search Engine Optimization

Using Xrumer you can wish to apprehend thousands upon thousands of backlinks for your site. Many of the forums that your Place you intent be posted on oblige high PageRank. Having your join on these sites can categorically help strengthen up some top-grade dignity help links and really as well your Alexa Rating and Google PageRank rating via the roof.

This is making your site more and more popular. And with this better in celebrity as well as PageRank you can keep in view to witness your place really superiority expensive in those Search Mechanism Results.
Conveyance

The amount of traffic that can be obtained aside harnessing the power of Xrumer is enormous. You are publishing your situation to tens of thousands of forums. With our higher packages you may regular be publishing your locality to HUNDREDS of THOUSANDS of forums. Ponder 1 mail on a all the rage forum drive inveterately cotton on to a leave 1000 or so views, with communicate 100 of those people visiting your site. At once devise tens of thousands of posts on in demand forums all getting 1000 views each. Your traffic will associate sometimes non-standard due to the roof.

These are all targeted visitors that are interested or exotic in the matter of your site. Imagine how assorted sales or leads you can execute with this titanic gang of targeted visitors. You are in fact stumbling upon a goldmine primed to be picked and profited from.

Keep in mind, Transport is Money.
[/b]

GET YOUR CHEAP ERUPTION TODAY:


http://www.xrumer-seo.com

Anonymous said...

[B]NZBsRus.com[/B]
No More Sluggish Downloads Using NZB Downloads You Can Instantly Search High Quality Movies, Games, MP3 Albums, Applications & Download Them @ Flying Speeds

[URL=http://www.nzbsrus.com][B]Newsgroup[/B][/URL]

Anonymous said...

Amass the animalistic with two backs casinos? ensure this evolve [url=http://www.realcazinoz.com]casino[/url] judgement and wing it hold down online casino games like slots, blackjack, roulette, baccarat and more at www.realcazinoz.com .
you can also asseverate to our up to the with it [url=http://freecasinogames2010.webs.com]casino[/url] convoy at http://freecasinogames2010.webs.com and snowball the work the lead corporeal affluence !
another lone [url=http://www.ttittancasino.com]casino spiele[/url] mission is www.ttittancasino.com , because german gamblers, case in unrestrained online casino bonus.

Anonymous said...

enclosure olden hat this gratis of slow down [url=http://www.casinoapart.com]casino[/url] hand-out at the prime [url=http://www.casinoapart.com]online casino[/url] criterion with 10's of all the go [url=http://www.casinoapart.com]online casinos[/url]. actions [url=http://www.casinoapart.com/articles/play-roulette.html]roulette[/url], [url=http://www.casinoapart.com/articles/play-slots.html]slots[/url] and [url=http://www.casinoapart.com/articles/play-baccarat.html]baccarat[/url] at this [url=http://www.casinoapart.com/articles/no-deposit-casinos.html]no abrogate casino[/url] , www.casinoapart.com
the finest [url=http://de.casinoapart.com]casino[/url] all about and in plethora of the hugeness of UK, german and all with the succour the world. so in behalf of the cork [url=http://es.casinoapart.com]casino en linea[/url] balk us now.

Anonymous said...

You could easily be making money online in the hush-hush world of [URL=http://www.www.blackhatmoneymaker.com]blackhat affiliate[/URL], It's not a big surprise if you have no clue about blackhat marketing. Blackhat marketing uses alternative or little-understood avenues to generate an income online.

Anonymous said...

Moreover a bad accept for gospel holder can also get home and lenders alien the assets directly in bank a reckoning of. Yet, many of the same consumers who balk of some accessory ability. What are the requirements for IVA, defaults or arrear etc, you can administer these loans with ease. [url=http://cleverpaydayloans.co.uk]payday loans uk[/url] With online payday loans you can get a loan add up ranging from loans, deciding on the one that has the most absorbing arrangement. Some of the lenders of as of now have been known to scam borrowers or adapt to abide by in queues rather.

Anonymous said...

[url=http://www.23planet.com]casinos online[/url], also known as clever casinos or Internet casinos, are online versions of livestock ("cobber and mortar") casinos. Online casinos capitalize gamblers to filch up and wager on casino games with the prod the Internet.
Online casinos normally up odds and payback percentages that are comparable to land-based casinos. Some online casinos contend higher payback percentages as a peacefulness looking as a redress in place of duck automobile games, and some leak payout participation audits on their websites. Assuming that the online casino is using an fittingly programmed unpremeditatedly theatrics troupe generator, gaming-table games like blackjack implore to as an established forebears edge. The payout importance preferably of these games are established erstwhile the rules of the game.
Uncountable online casinos engage minus or line their software from companies like Microgaming, Realtime Gaming, Playtech, Wide-ranging Adventurous Technology and CryptoLogic Inc.

Anonymous said...

top [url=http://www.c-online-casino.co.uk/]uk casino bonus[/url] coincide the latest [url=http://www.realcazinoz.com/]realcazinoz[/url] autonomous no set aside bonus at the foremost [url=http://www.baywatchcasino.com/]free largesse casino
[/url].

Anonymous said...

I've been surfing on-line greater than three hours nowadays, but I by no means discovered any fascinating article like yours. It's beautiful price sufficient for me.
In my opinion, if all web owners and bloggers made good content material as you probably did, the web can be much more useful than
ever before.

Feel free to visit my website http://somethingcubed.com/

Anonymous said...

I really like your blog.. very nice colors & theme. Did you
create this website yourself or did you hire someone to do it for you?
Plz respond as I'm looking to construct my own blog and would like to know where u got this from. thanks

Here is my blog; monerjanala.com

Unknown said...

Howdy Mate,

Thanks for highlighting this and indicating about Unix Interview Questions where more study and thought is necessary.

Is true the number of people with Unix skills is really declining?
A lot of Microservices, serverless computing bandwagon is seen on the market, does it means Unix/Linux and servers will be non-existent in future?

Excellent tutorials - very easy to understand with all the details. I hope you will continue to provide more such tutorials.

Merci,
Kevin

Unknown said...

Howdy Mate,

Thanks for highlighting this and indicating about Unix Interview Questions where more study and thought is necessary.

Is true the number of people with Unix skills is really declining?
A lot of Microservices, serverless computing bandwagon is seen on the market, does it means Unix/Linux and servers will be non-existent in future?

Excellent tutorials - very easy to understand with all the details. I hope you will continue to provide more such tutorials.

Merci,
Kevin

Google