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


  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.

    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

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

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

  2. Very Informative Thank you

  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.

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

  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.

  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

  7. Cheers, i thought this was amazing for the reason that it's acceptable, fascinating but additionally high quality tank top, shaded in class i quickly

  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.

  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.

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

  11. thank u very much sir...

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

  13. thanks a lot for giving basic questions

  14. thanks a lot boss very informative page

  15. Thanks for sharing information..

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

  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

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

  18. Thnx for the article man..

  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.

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

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

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

  23. Coach Outlet Store Online Michael Kors Outlet Coach Factory Outlet Toms Shoes Cheap Jerseys Michael Kors Coach Outlet Coach Factory Outlet Coach Outlet Coach Handbags Giuseppe Zanotti Coach Factory Outlet Online Coach Outet Store Online Coach Factory Outlet Michael Kors Outlet Online Celine Outlet Michael Kors Michael Kors Store Tomss Hoes Prada Outlet Fitflop Footwear Celine Bags Fitflops Flipflops Fitflops Giuseppe Zanotti Designer Fitflops Giuseppe Zanotti Sneakersmen Fitflops

  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

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

    Garcinia Cambogia Extract Reviews

  26. coach factory outlet coach factory coach outlet coach outlet store online michael kors outlet timberland shoes michael kors outlet coach factory outlet coach factory outlet true religion outlet true religion jeans coach outlet online louis vuitto purses timberland boots isabel marant shoes coach outlet store online michael kors purses louis vuitton handbags coach outlet true religion jeans coach factory outlet online coach factory outlet coach factory outlet louis vuitton outlet coach factory outlet coach factory outlet online michael kors outlet michael kors outlet store tiffanys jewelry celine outlet cheap jerseys toms shoes alexander wang shoes alexander wang bags sac burberry celine bags toms outlet fitflops fitflop outlet giuseppe zanotti sneakers marc by marc jacobs prada outlet tiffany jewelry prada outlet michael kors marc jacobs giuseppe zanotti supra shoes Polo ralph lauren alexander wang tiffany jewelry

  27. Most Useful Interview Questions

  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

  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.

  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.

  31. Thanks for sharing. Learn a lot from your Blog.I have read your blog about Professionals Point It is very help full.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. IT Support Bristol

  32. Nice Blog Thanks for sharing.I must say you've done a wonderful job by sharing your article with us.Visit: A Better Choice In Home Care for more information.