• Result
  • Today's Puzzle
    • Previous Puzzles
    • Prize & Rules
  • Discussion Board
    • Suggestion Board
    • Trending Articles
  • Maths Tricks
  • Placement Papers
    • Placement Questions
    • Interview Experience
    • Placed user Comment
    • Group Discussion
  • English APP
  • login
  • Result
  • Today's Puzzle
    • Previous Puzzles
    • Prize & Rules
  • Discussion Board
    • Suggestion Board
    • Trending Articles
  • Maths Tricks
  • Placement Papers
    • Placement Questions
    • Interview Experience
    • Placed user Comment
    • Group Discussion
  • Walkins
    • Corporate Job Exam
    • Government Job Exam
    • Entrance Exam
  • Training
    • Internship
  • Placement Questions
  • /
  • UNIX

Frequently Asked UNIX interview questions and answers for freshers Page 7

UNIX Select Another Category Select Another Topic

Programming and Technical

  • Android 118
  • ASP.NET 60
  • C 459
  • C++ 448
  • DATA STRUCTURE 66
  • DBMS 77
  • ELECTRONICS 39
  • Java 261
  • OOPs Concepts 117
  • Operating Syst 103
  • RDBMS 109
  • UNIX 70

UNIX Question Topics

    HR Interview (1)

  • Interview (1)
  • Logical Reasoning (2)

  • Blood Relations (1)
  • Mathematical Reasoning (1)
  • Programming (6)

  • Basics (1)
  • Technical (2)
Keep an EYE (0)
Solved Question (0) UnSolved Question (70)
Pages: 7FirstPrev34567
Advertisements

(#M40029525) UNIX QUESTION unix Keep an EYE Keep an eye puzzle Keep an eye puzzle

Q. How would you kill a process?

A. The kill command takes the PID as one argument; this identifies which process to terminate. The PID of a process can be got using 'ps' command

Asked In UNIX MAN (12 years ago)
Unsolved
Is this Puzzle helpful?   (0)   (0) Submit Your Solution

(#M40029524) UNIX QUESTION unix Keep an EYE Keep an eye puzzle Keep an eye puzzle

Q. What is 'ps' command for?

A. The ps command prints the process status for some or all of the running processes. The information given are the process identification number (PID),the amount of time that the process has taken to execute so far etc

Asked In UNIX MAN (12 years ago)
Unsolved
Is this Puzzle helpful?   (0)   (0) Submit Your Solution
Advertisements

(#M40029523) UNIX QUESTION unix Keep an EYE Keep an eye puzzle Keep an eye puzzle

Q. What is a Daemon?

A. A daemon is a process that detaches itself from the terminal and runs, disconnected, in the background, waiting for requests and responding to them. It can also be defined as the background process that does not belong to a terminal session. Many system functions are commonly performed by daemons, including the sendmail daemon, which handles mail, and the NNTP daemon, which handles USENET news. Many other daemons may exist. Some of the most common daemons are:
init: Takes over the basic running of the system when the kernel has finished the boot process.
inetd: Responsible for starting network services that do not have their own stand-alone daemons. For example, inetd usually takes care of incoming rlogin, telnet, and ftp connections.
cron: Responsible for running repetitive tasks on a regular schedule.

Asked In UNIX MAN (12 years ago)
Unsolved
Is this Puzzle helpful?   (0)   (0) Submit Your Solution

(#M40029522) UNIX QUESTION unix Keep an EYE Keep an eye puzzle Keep an eye puzzle

Q. What Happens when you execute a command?

A. When you enter 'ls' command to look at the contents of your current working directory, UNIX does a series of things to create an environment for ls and the run it: The shell has UNIX perform a fork. This creates a new process that the shell will use to run the ls program. The shell has UNIX perform an exec of the ls program. This replaces the shell program and data with the program and data for ls and then starts running that new program. The ls program is loaded into the new process context, replacing the text and data of the shell. The ls program performs its task, listing the contents of the current directory.

Asked In UNIX MAN (12 years ago)
Unsolved
Is this Puzzle helpful?   (0)   (0) Submit Your Solution

(#M40029521) UNIX QUESTION unix Keep an EYE Keep an eye puzzle Keep an eye puzzle

Q. What Happens when you execute a program?

A. When you execute a program on your UNIX system, the system creates a special environment for that program. This environment contains everything needed for the system to run the program as if no other program were running on the system. Each process has process context, which is everything that is unique about the state of the program you are currently running. Every time you execute a program the UNIX system does a fork, which performs a series of operations to create a process context and then execute your program in that context. The steps include the following:
Allocate a slot in the process table, a list of currently running programs kept by UNIX.
Assign a unique process identifier (PID) to the process.
iCopy the context of the parent, the process that requested the spawning of the new process.
Return the new PID to the parent process. This enables the parent process to examine or control the process directly.
After the fork is complete, UNIX runs your program

Asked In UNIX MAN (12 years ago)
Unsolved
Is this Puzzle helpful?   (0)   (0) Submit Your Solution

(#M40029519) UNIX QUESTION unix Keep an EYE Keep an eye puzzle Keep an eye puzzle

Q. What is a zombie?

A. When a program forks and the child finishes before the parent, the kernel still keeps some of its information about the child in case the parent might need it - for example, the parent may need to check the child's exit status. To be able to get this information, the parent calls `wait()'; In the interval between the child terminating and the parent calling `wait()', the child is said to be a `zombie' (If you do `ps', the child will have a `Z' in its status field to indicate this.)

Asked In UNIX MAN (12 years ago)
Unsolved
Is this Puzzle helpful?   (0)   (0) Submit Your Solution

(#M40029520) UNIX QUESTION unix Keep an EYE Keep an eye puzzle Keep an eye puzzle

Q. What are the process states in Unix?

A. As a process executes it changes state according to its circumstances. Unix processes have the following states:
Running : The process is either running or it is ready to run .
Waiting : The process is waiting for an event or for a resource.
Stopped : The process has been stopped, usually by receiving a signal.
Zombie : The process is dead but have not been removed from the process table.

Asked In UNIX MAN (12 years ago)
Unsolved
Is this Puzzle helpful?   (0)   (0) Submit Your Solution

(#M40029518) UNIX QUESTION unix Keep an EYE Keep an eye puzzle Keep an eye puzzle

Q. How can a parent and child process communicate?

A. A parent and child can communicate through any of the normal inter-process communication schemes (pipes, sockets, message queues, shared memory), but also have some special ways to communicate that take advantage of their relationship as a parent and child. One of the most obvious is that the parent can get the exit status of the child.

Asked In UNIX MAN (12 years ago)
Unsolved
Is this Puzzle helpful?   (0)   (0) Submit Your Solution

(#M40029515) UNIX QUESTION unix Keep an EYE Keep an eye puzzle Keep an eye puzzle

Q. Explain fork() system call.

A. The `fork()' used to create a new process from an existing process. The new process is called the child process, and the existing process is called the parent. We can tell which is which by checking the return value from `fork()'. The parent gets the child's pid returned to him, but the child gets 0 returned to him.

Asked In UNIX MAN (12 years ago)
Unsolved
Is this Puzzle helpful?   (0)   (0) Submit Your Solution

(#M40029514) UNIX QUESTION unix Keep an EYE Keep an eye puzzle Keep an eye puzzle

Q. What are various IDs associated with a process?

A. Unix identifies each process with a unique integer called ProcessID. The process that executes the request for creation of a process is called the 'parent process' whose PID is 'Parent Process ID'. Every process is associated with a particular user called the 'owner' who has privileges over the process. The identification for the user is 'UserID'. Owner is the user who executes the process. Process also has 'Effective User ID' which determines the access privileges for accessing resources like files.
getpid() -process id
getppid() -parent process id
getuid() -user id
geteuid() -effective user id

Asked In UNIX MAN (12 years ago)
Unsolved
Is this Puzzle helpful?   (0)   (0) Submit Your Solution
Keep an EYE (0)
Solved Question (0) UnSolved Question (70)
Pages: 7FirstPrev34567
  • Login
  • Register

Resend

Sponsored Links

Advertisements

Challenger of the Day

no image
Dimple
India
Punjab
Time: 00:01:33
Points
19

Maths Quotes

Which is more difficult ? solve a mathematics? or Mathematics to solve?

G. C

If a problem arise in your mind take help your best friend "mathematics.

yash singh

Placed User Comments

M4Math helped me a lot.

Vipul Chavan 5 years ago

Thanks m4 maths for helping to get placed in several companies.
I must recommend this website for placement preparations.

yash mittal 5 years ago

Now enjoy Offline Access of latest Question.

Get M4maths app to avail expert's solution and latest selected questions.

Download m4maths app now

  • 2533K+Registerd user
  • 1774K+Engineers
  • 759K+MBA Asprirant
  • 3K+Enginnering College
  • 250+Company Exam
  • 150K+Interview Questions
  • Site Links
  • Home
  • Result
  • Today's Puzzle
  • Discussion Board
  • Maths Tricks
  • Advertise with us
  • Contact Us
  • Useful Info
  • Maths Quotes
  • Previous Puzzles
  • Prize
  • Privacy Policy
  • Disclaimer and Copyright
  • Terms and Conditions
  • Sitemap
  • Placement papers
  • TCS Placement Paper
  • HCL Placement Paper
  • INFOSYS Placement Paper
  • IBM Placement Paper
  • SYNTEL Placement Paper
  • TECHNICAL Interview
  • HR Interview
All rights are reserved to @m4maths.com