How can you tell when a Linux script was last executed?

How can you tell when a Linux script was last executed?
Answer
One can easily find the PID of the last executed command in shell script or bash.
…
The syntax is as follows:
  1. Open the terminal application.
  2. Run your command or app in the background. …
  3. To get the PID of the last executed command type: echo “$!”
19 нояб. 2019 г.
 

Tìm kiếm

Back
Top