What does echo $0 Do?

Hương Trang

New member
What does echo $0 Do?
Answer
Originally Posted by David the H. $0 is
the name of the running process
. If you use it inside a shell, then it will return the name of the shell. If you use it inside a script, it will be the name of the script.
 

Tìm kiếm

Back
Top