What is $0 Unix script?

KellyPoima

New member
What is $0 Unix script?
Answer
$0 expands to the
name of the shell or shell script. This is set at shell initialization. If bash is invoked with a file of commands, $0 is set to the name of that file.
 

Tìm kiếm

Back
Top