Dr. Mark Humphrys

School of Computing. Dublin City University.

Online coding site: Ancient Brain

 

Search:


Exercise with ps

Exercise with ps
  
Chrome from GUI:
  1. Launch Chrome from the Linux GUI.
  2. In command-line, type ps
  3. Chrome is not in the list of processes. Why not?
  4. How do you make a list of processes that includes Chrome?

  
Chrome from command-line:
  1. Launch Chrome from command-line:
     google-chrome &  
  2. ps now shows Chrome
  3. It actually shows a program called "chrome" running, not "google-chrome".
  4. So what is google-chrome? Type:
     which google-chrome 
  5. The program is a shell script. Look inside it (how?) to find where it leads. Last time I looked:
    • Code leads into a shell function.
    • Then back to the command-line. Maybe follow a trail of shortcuts.
    • Into another shell script.
    • And then finally a reference to the real "chrome" program, which is huge, and you can see on the command-line.