PROCESS MANAGEMENT COMMANDS a Process Is an Executing Prgm

PROCESS MANAGEMENT COMMANDS a Process Is an Executing Prgm

PROCESS MANAGEMENT COMMANDS A process is an executing prgm. A process is created whenever the user gives a comm. To computer and the process is given a unique number i.e. known as process ID or simply PID. In unix process communicate to each other and share the common resources like CPU, main memory & storage devices. The main process can Communicate sub-processes, known as the parent process and the child process resp. Unix provides various process management tasks like as to get info about all the running processes. Following are the commands :- 1. Ps ( process status ) Purpose :- it is used to list the running processes. Syntax :- $ps[option] options :- a-displays all processes e-displays every process running at the moment u(username)-displays processes of the single mentioned user. t(terminal name)-displays the processes running on the mentioned terminal. l-displays running processes in long format with memory related information. 2. Kill Purpose :- it sends a signal with the intention of killing one or more processes. Syntax :-$kill process-id e.g. :- $kill 4512, it will send a signal to kill process whose PID is 4512 3. Nice Purpose :- it is used with ‘&’ operator to reduce the priority of jobs. In other words, the higher the nice value ,lower is the processing priority. E.g. :- $nice -15 pwd here the ‘pwd’ command is assigned the nice value 15 4. Sleep Purpose :- it is used to suspend the execution of shell script for the specified time. Usually the time is in seconds. Syntax :- $sleep 10 this command will wait for 10 seconds before returning to the command prompt. 5. Batch Purpose :- it is used to schedule the jobs for later execution. When we submit our jobs using this comm. , Unix executes our job when it is relatively free and system load is light. In this system will assign time. E.g. :- $batch sort employee.dat/grep nagpur cntrl-d 6. At it is capable of executing Unix comm. At a future time and date. E.g. :- $at date command name>directory name/file name cntrl-d it will display date and job-id .

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    10 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us