Wednesday, 26 December 2012

21 Most Frequently Asked Basic Unix Interview Questions and Answers

21 Most Frequently Asked Basic Unix Interview Questions and Answers

Here is the list of most frequently asked basic unix interview questions and answers. There unix interview questions are very basic and based upon unix shell scripting and common unix commands which are frequently used by any unix user.

1. What is UNIX?

It is a portable operating system that is designed for both efficient multi-tasking and mult-user functions. Its portability allows it to run on different hardware platforms. It was written is C and lets user do processing and control under a shell.

2. What is Shell?

A shell acts as an interface between the user and the system. As a command interpreter, the shell takes commands and sets them up for execution.

3. What are the key features of the Korn Shell?

- history mechanism with built-in editor that simulates emacs or vi
- built-in integer arithmetic
- string manipulation capabilities
- command aliasing
- arrays
- job control

4. 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

5. What is shell scripting in UNIX?

Shell scripting is used to program command line of an operating system. Shell Scripting is also used to program the shell which is the base for any operating system. Shell scripts often refer to programming UNIX. Shell scripting is mostly used to program operating systems of windows, UNIX,  Apple etc. Also this script is used by companies to develop their own operating system with their own features.

6. What is a typical syntax being followed when issuing commands in shell?

Typical command syntax under the UNIX shell follows the format:
Command [-argument] [-argument] [--argument] [file]

7. What is command substitution?

Command substitution is one of the steps being performed every time commands are processed by the shell. Commands that are enclosed in backquotes are executed by the shell. This will then replace the standard output of the command and displayed on the command line.

8. What is a directory?

Every file is assigned to a directory. A directory is a specialized form of file that maintains a list of all files in it.

9. What is history command in UNIX?

We use history command along with grep command in unix to find any relevant command you have already executed.

10. How do you copy file from one host to other?

By using "scp" command. You can also use rsync command to answer this UNIX interview question or even sftp would be ok.

11. How do you find which process is taking how much CPU?

By using "top" command in UNIX.

12. How do you check how much space left in current drive?

By using "df" command in UNIX. For example "df -h ." will list how full your current drive is.

13. How do you know if a remote host is alive or not?

You can check these by using either ping or telnet command in UNIX.

14. How will you run a process in background? How will you bring that into foreground and how will you kill that process?

For running a process in background use "&" in command line. For bringing it back in foreground use command "fg jobid" and for getting job id you use command "jobs", for killing that process find PID and use kill -9 PID command.

15. How will you find which operating system your system is running on in UNIX?

By using command "uname -a" in UNIX

16. What is the command to list all the links from a directory?

You can answer command like: ls -lrt | grep "^l"

17. How will you create a read-only file in your home directory?

You need to create a file and change its parameter to read-only by using chmod command you can also change your umask to create read only file.
touch file
chmod 400 file

18. What is the difference between Swapping and Paging?

Swapping:Whole process is moved from the swap device to the main memory for execution. Process size must be less than or equal to the available main memory. It is easier to implementation and overhead to the system. Swapping systems does not handle the memory more flexibly as compared to the paging systems.
Paging:Only the required memory pages are moved to main memory from the swap device for execution. Process size does not matter. Gives the concept of the virtual memory. It provides greater flexibility in mapping the virtual address space into the physical memory of the machine. Allows more number of processes to fit in the main memory simultaneously. Allows the greater process size than the available physical memory. Demand paging systems handle the memory more flexibly.

19. What are filters?

The term Filter is often used to refer to any program that can take input from standard input, perform some operation on that input, and write the results to standard output. A Filter is also any program that can be used between two other programs in a pipeline.

20. Differentiate multiuser from multitask.

Multiuser means that more than one person can use the computer at the same time. Multitask means that even a single user can have the computer work on more than one task or program at the same time.

21. What is inode?

An inode is an entry created on a section of the disk set aside for a file system. The inode contains nearly all there is to know about a file, which includes the location on the disk where the file starts, the size of the file, when the file was last used, when the file was last changed, what the various read, write and execute permissions are, who owns the file, and other information

37 comments:

  1. Thanks for sharing these nice set of questions. I have also shared questions collected from my friends and colleagues as Top 30 Unix Command Interview Questions asked in IB , let me know how do you find it.

    ReplyDelete
    Replies
    1. Excellent and decent post. I found this much informative, as to what I was exactly searching for. Thanks for such post and please keep it up.
      does garcinia cambogia extract work | does green coffee bean works | raspberry ketones

      Delete
    2. I value the blog.Really looking forward to read more. Keep writing.
      | Garcinia Cambogia German | Raspberry ketone Side Effects |

      Delete
    3. Really, very helpful. Please keep writing ............

      Delete
  2. Very Informative Thank you

    ReplyDelete
  3. You are of course welcome to read them on your own time, and maybe even learn something from them, but to post to wikicite, you would actually have to work custom essays writing back to the primary sources, and confront evidence you could cite.

    ReplyDelete
  4. thanks for such important information, It will help to get well prepared for an interview

    ReplyDelete
  5. What I can't comprehend is how our custom essays programs are sending candidates out in numbers vastly exceeding jobs, and, to judge from the dossiers, not providing any guidance on how to apply for a job.

    ReplyDelete
  6. I have read so many article of this site in which some of them were very intresting and inspiring.This article has good title with good description.



    reviews on raspberry ketone |reviews on garcinia cambogia
    reviews on green coffee extract |reviews on green coffee bean

    ReplyDelete
  7. Cheers, i thought this was amazing for the reason that it's acceptable, fascinating but additionally high quality tank top, shaded in http://www.homeworkguard.com/physics-assignment-help/ class i quickly

    ReplyDelete
  8. I get it, you’re busy. You’re teaching like a madman. You’re frustrated with subpar applications. editing services But just take one second to think outside yourself, to think what these applicants may be going through. So let’s review, shall we.

    ReplyDelete
  9. This is what I need. Thanks for making this write my essay for me web-site, and I will be visiting again. Do you do newsletters? I Cant find it.

    ReplyDelete
  10. Great post, learned from it while preparing for job interview questions. Thanks.

    ReplyDelete
  11. thank u very much sir...

    ReplyDelete
  12. Please refer the below link for UNIX Basic Questions and Answers..

    http://tecz.org/interview-questions/85-unix-basic-questions.html

    ReplyDelete
  13. thanks a lot for giving basic questions

    ReplyDelete
  14. thanks a lot boss very informative page

    ReplyDelete
  15. Thanks for sharing information..

    For more unix basic interview questions and answers, pls refer below link.

    http://tecz.org/interview-questions/189-unix-basic-interview-questions-and-answers.html

    ReplyDelete
  16. This is a terrific article, and I would like more information if you have any. I am fascinated with this topic and your post has been one of the best I have read. What are raspberry ketones | what is garcinia cambogia

    ReplyDelete
  17. it was really terrific article I have read ever. Thanks a lot and keep it up.

    ReplyDelete
  18. Thnx for the article man..

    ReplyDelete
  19. Thanks for sharing these nice set of questions. I have also shared questions collected from my friends. I am learn for many information about UNIX. Thanks for sharing this information.
    http://www.dreamdestinations.in/

    ReplyDelete
  20. This is excellent post. Its having good description regarding this topic. Thanks for sharing..!
    it outsourcing new jersey

    ReplyDelete
  21. This is excellent post. Its having good description regarding this topic. Thanks for sharing..!
    Business Sales Training Program Philadelphia

    ReplyDelete
  22. The web pages you are creating should be fast in loading on any type on browser and internet connection.
    Web Development Saudi Arabia

    ReplyDelete
  23. http://www.coachoutletstoreinc.com/ Coach Outlet Store Online
    http://www.michaelkorsoutletmkinc.com/ Michael Kors Outlet
    http://www.coachfactoryoutletwebsite.com/ Coach Factory Outlet
    http://www.tomsusashoes.com/ Toms Shoes
    http://www.cheapjerseysinc.com/ Cheap Jerseys
    http://www.michaelkors-bedford.com/ Michael Kors
    http://www.coachoutlet-sale.com/ Coach Outlet
    http://www.coachfactoryoutletorg.com/ Coach Factory Outlet
    http://www.coachoutlet-buy.com/ Coach Outlet
    http://www.coachhandbagsonlineoutlet.com/ Coach Handbags
    http://www.giuseppezanottionline.com/ Giuseppe Zanotti
    http://www.coachfactoryoutlet-handbags.com/
    http://www.coach-factory-outlet-online.com/ Coach Factory Outlet Online
    http://www.coachstoreonline.com/ Coach Outet Store Online
    http://www.coachfactoryoutlets2014.com/ Coach Factory Outlet
    http://www.michaelkorsoutletonlinemk.com/ Michael Kors Outlet Online
    http://www.celineoutlet-online.com/ Celine Outlet
    http://www.michaelkors.name/ Michael Kors
    http://www.michael-kors-outlet-store.com/ Michael Kors Store
    http://www.tomsshoescompany.com/ Tomss Hoes
    http://www.pradaoutlet-store.com/ Prada Outlet
    http://www.fitflopfootwear.com/ Fitflop Footwear
    http://www.celinebags-outlet.com/ Celine Bags
    http://www.fitflopsflipflops.com/ Fitflops Flipflops
    http://www.fitflopusaonline.com/ Fitflops
    http://www.giuseppezanottidesigner.com/ Giuseppe Zanotti Designer
    http://www.fitflopflip-flop.com/ Fitflops
    http://www.giuseppezanottisneakersmen.com/ Giuseppe Zanotti Sneakersmen
    http://www.fitflopsandalssale.com/ Fitflops

    ReplyDelete
  24. Interview is required a number of activities which are often most effective when an integrated approach is adopted, bringing together the complementary elements.
    Web Designing Company | Web Development Company

    ReplyDelete
  25. This info you provided in the blog that was really unique I love it!!

    Garcinia Cambogia Extract Reviews

    ReplyDelete
  26. http://www.coachfactoryoutletsco.com/ coach factory outlet
    http://www.coachfactory.us.com/ coach factory
    http://www.coachoutletstoresco.com/ coach outlet
    http://www.coachoutletstoresinc.com/ coach outlet store online
    http://www.michaelkorsoutletsmk.com/ michael kors outlet
    http://www.timberlandshoes.us.com/ timberland shoes
    http://www.michaelkorsoutlet-factory.com/ michael kors outlet
    http://www.coachfactoryoutletspurses.com/ coach factory outlet
    http://www.coachfactoryoutlete2014.com/ coach factory outlet
    http://www.truereligionbrandjeans.us.com/ true religion outlet
    http://www.truereligionjeans.us.com/ true religion jeans
    http://www.coachoutletonlinehandbag.com/ coach outlet online
    http://www.louisvuittonoutlet-purses.com/ louis vuitto purses
    http://www.timberlandboots.us.com/ timberland boots
    http://www.isabelmarantshoes.us.com/ isabel marant shoes
    http://www.coachoutletstore-factory.com/ coach outlet store online
    http://www.michaelkorsoutlet-purses.com/ michael kors purses
    http://www.louisvuittonoutlethandbag.com/ louis vuitton handbags
    http://www.coachoutletstoresofficial.com/ coach outlet
    http://www.truereligionjeans-2014.com/ true religion jeans
    http://www.coachfactoryoutlets-online.com/ coach factory outlet online
    http://www.coachfactoryoutlet-store.com/ coach factory outlet
    http://www.coachfactoryoutlet-handbag.com/ coach factory outlet
    http://www.louisvuittonoutlets2014.com/ louis vuitton outlet
    http://www.coachfactoryoutletstoreco.com/ coach factory outlet
    http://www.coachfactoryoutletonlineinc.com/ coach factory outlet online
    http://www.michaelkorsoutletonlineco.com/ michael kors outlet
    http://www.michaelkorsoutletstoresco.com/ michael kors outlet store
    http://www.tiffanysjewelry-co.com/ tiffanys jewelry
    http://www.celineoutlet-online.com/ celine outlet
    http://www.cheapjerseysco.com/ cheap jerseys
    http://www.tomsshoescompany.com/ toms shoes
    http://www.alexanderwang-shoes.com/ alexander wang shoes
    http://www.alexanderwang-bags.com/ alexander wang bags
    http://www.sacsburberry.com/ sac burberry
    http://www.celinebags-outlet.com/ celine bags
    http://www.tomsusashoes.com/ toms outlet
    http://www.fitflopsandalssale.com/ fitflops
    http://www.fitflopusaonline.com/ fitflop outlet
    http://www.giuseppezanottisneakers.co.uk/ giuseppe zanotti sneakers
    http://www.marcbymarcjacobsoutlet.co.uk/ marc by marc jacobs
    http://www.pradaoutleteco.com/ prada outlet
    http://www.tiffanyandcoinc.com/ tiffany jewelry
    http://www.pradaoutlet-factory.com/ prada outlet
    http://www.michaelkors-co.com/ michael kors
    http://www.marcjacobs.us.com/ marc jacobs
    http://www.giuseppezanotti.us.com/ giuseppe zanotti
    http://www.supra.us.com/ supra shoes
    http://www.ralphlauren.us.com/ Polo ralph lauren
    http://www.alexanderwang.us.com/ alexander wang
    http://www.tiffanyjewelry.us.com/ tiffany jewelry

    ReplyDelete
  27. Most Useful Interview Questions

    ReplyDelete
  28. Thanks for sharing. Learn a lot from your Blog.I really enjoyed reading it, you may be a great author.I must say you've done a wonderful job by sharing your article with us. XPS Analysis

    ReplyDelete
  29. Nice Blog! Really i am impressed from this post.Chiropractic care is one of best ways to get rid of any kind of body pain and increase muscles strength.Thanks again for posting such great reading material!! To get new information visit here Sports Injuries Perth.

    ReplyDelete
  30. Nice Post,Thanks for Sharing me.Isabella's Salon provide top quality services for their customers. They offer a full line of services, including cuts and hair coloring for men and women.Greenwood Village Salons use professional products to achieve the most stylish looks.

    ReplyDelete