Commands for process management

1. ps
a function: display status of processes
a syntax: ps [options] [(process)]
an explanation: Yeah information about currently running processes, indicating the process identifier (PID), parent ID (PPID), process control terminal (TT), process state (STAT-sequence of five letters, each specifying a particular issue rather the process-execution state if the image is in the process memory, priority), the process (TIME). Process status can be: r-execution w-waiting, was suspended, t-off, z-finished, one-existent
Most commonly used options are:
§ all processes associated with the terminal;
§ listing him complete information;
§-in all processes not related to the terminal;
2. nice
a function: load a process (task) with low priority
a syntax: nice [- (priority)] command [arguments]
an explanation: Launch a task in parallel with low priority. Priority is a number, meaning large numbers of low priority. The administrator can launch high priority processes, even negative. Priorities should be given by nice to 20. If priority is not specified the default priority 10 increments on the system.
Trials carried out with nice, are executed in the background (background), possibly after the working session, as big-time process execution (eg, performing a download).
Command & nice prog 19 launches background (the & operator) prog, with minimum priority . The execution is in the same program after the session is done by running:
prog & nohup nice, nohup command allows this.
3. kill
a function: “kill” a process in progress
a syntax: kill [options] (PID)
an explanation: Destroy the process ID (PID). Signal is given by using the secure destruction -9 option, otherwise not sure that the destruction will be done. -9 Option should be used only when the first form of the command fails.
4. Sleep
one function: to temporarily suspend execution of a process
a syntax: Sleep (time)
an explanation: Time is given in seconds
5. Time
a function: provide time execute a command
a syntax-time (command)
an explanation: It launches the execution (command), and the execution end time is displayed during system execution and, in seconds.
6. sh
a function: launching shell interpreter execution
a syntax: sh (file)
an explanation: Execute a shell command file.

Topics: , , , , , , , , , , ,

Did you like this? Share it:

Watch tweets on:
  • You may also like

    1. Picture: Folder management commands

      Folder management commands

      Orders will be used to describe these signs: • [ID] – optional field; • (ID) – ID file o...

    2. Picture: Loading the operating system

      Loading the operating system

      Exercise: Try to remember, without resort to the specification, process definition. Unix operating s...

    3. Picture: User Interface

      User Interface

      After the login process has been verified correct username and password, it changes the current cata...

    4. Picture: What is Key Management Services?

      What is Key Management Services?

      Key Management Service (KMS) enables activation products in the local network. This eliminates the n...

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>