Question

In: Computer Science

in linux suppose proccess is down . how to check it up and know whether the...

in linux suppose proccess is down .

how to check it up and know whether the process is running or not running ?

and if process is not running or in down state then how to start that particular process which is not working ??

please tell how to activate or start the particular process is not in working state?

please write the commands and execute and explain the process.

Solutions

Expert Solution

To display Linux processes use
ps (ps command lists running processes )
ps -A(shows all processes)
Or
Enter on terminal - top (running processes)
if u want kill any process then use command ie. kill PId(process id which shows in left side of terminal of top command)


example--
command---->ps -A | grep firefox
 4980 ?        00:00:00 firefox
4950 is the PID
so use kill 4950 (for kill process)

and for start firefox just type firefox and it will be start or for any process u can do same thing Name of process and enter or restart same as above.

some more commands on process 
ps - report a snapshot of the current processes.

      To see every process on the system using standard syntax:
          ps -e
          ps -ef
          ps -eF
          ps -ely

       To see every process on the system using BSD syntax:
          ps ax
          ps axu

       To print a process tree:
          ps -ejH
          ps axjf
       To see every process running as root (real & effective ID) in user format:
          ps -U root -u root u

    

Related Solutions

To check whether the popularity of a political candidate is down from 60%, a random sample...
To check whether the popularity of a political candidate is down from 60%, a random sample of 1000 voters is surveyed. K out of 1000 favor the candidate. If K=580 test the 60% popularity hypothesis at significance level α = .05. Find the minimal number K that does not reject the 60% popularity hypothesis. Using Ti-34 calculator Equations/answer written out using binomcdf(x,x,x) Binompdf(x,x,x) Invnorm InvT tcdf If possible/needed to solve the equation
[Linux permissions] Suppose that you are a superuser on a Linux system, and there is a...
[Linux permissions] Suppose that you are a superuser on a Linux system, and there is a file “/home/alice/foo”, which is owned by an ordinary user Alice. You need to give a permission to read a this file to an ordinary user Bob, but no one else (of course, you as superuser will be able to read it too). Explain how you will do it. Note: You do not have to provide specific commands, just a short description will suffice. [Limitations...
[Linux permissions] Suppose that you are a superuser on a Linux system, and there is a...
[Linux permissions] Suppose that you are a superuser on a Linux system, and there is a file “/home/alice/foo”, which is owned by an ordinary user Alice. You need to give a permission to read a this file to an ordinary user Bob, but no one else (of course, you as superuser will be able to read it too). Explain how you will do it. Note: You do not have to provide specific commands, just a short description will suffice.
2) Suppose that, in the course of a regular check-up, a doctor discovers that the patient...
2) Suppose that, in the course of a regular check-up, a doctor discovers that the patient has a potentially cancerous lesion. Most lesions are benign (non-cancerous), say 99%. The doctor orders an x-ray just in case. In laboratory tests on malignant (cancerous) lesions, the x-ray returns positive (cancer-affirming) results 79.2% of the time and negative results 20.8% of the time. In laboratory tests on benign lesions, the x-ray returns positive results only 9.6% of the time and negative results 90.4%...
For a Linux server: • how to Set up a print server (CUPS), allow clients to...
For a Linux server: • how to Set up a print server (CUPS), allow clients to connect, print to PDF • Create a script that backs up the printed documents every 6 hours please can you help me
Look up the structure of each of the following solvents and determine whether they will speed up or slow down the reaction
Look up the structure of each of the following solvents and determine whether they will speed up or slow down the reaction (t-butyl chloride Sn 1 reaction with NaOH) as compared to ethanol (they all dissolve in water). Tetrahydrofuran, Dimethyl sulfoxide, Isopropanol, Glycerol
Suppose a university teacher wants to know whether or not requiring attendance improves student learning. How...
Suppose a university teacher wants to know whether or not requiring attendance improves student learning. How could she find out? Describe an experiment that an instructor might actually use. Review the experiments posted by your classmates. Evaluate the pros and cons of their proposals, and when applicable, suggest improvements or ask follow-up questions. (175 words)
Suppose there is a task at hand to check whether one can really save a bunch...
Suppose there is a task at hand to check whether one can really save a bunch of money on the car insurance by switching from Allstate to GEICO. Their monthly insurance premiums for various car brands are shown in the table below. Conduct a two-sample test of hypothesis at α = 0.05 significance level to determine whether it is worth switching to GEICO. Car Brands GEICO Allstate Honda 120 136 Toyota 125 135 Nissan 122 135 Ford 107 102 Chevrolet...
KF Services provides Cars' check up its customers. The selling price of each check up is...
KF Services provides Cars' check up its customers. The selling price of each check up is $75 and the variable costs associated are $42,5. The monthly relevant fixed costs are $10,000. Required: a. How many check up are needed to break even? What is the break even point in dollars? b. What is the margin of safety in dollars, assuming sales total $30,000? c. How many check up are needed to achieve a net income of $40,000?, if the tax...
How to keep cortisol level down and leptin level up?
How to keep cortisol level down and leptin level up?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT