Đom' Đóm Nhỏ'
New member
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:
Answer
One can easily find the PID of the last executed command in shell script or bash.
…
The syntax is as follows:
- Open the terminal application.
- Run your command or app in the background. …
- To get the PID of the last executed command type: echo “$!”