How do you exit a shell script command?

Tiên Hương

New member
How do you exit a shell script command?
Answer
exit command in linux is used to exit the shell where it is currently running. It takes one more parameter as [N] and exits the shell with a return of status N. If n is not provided, then it simply returns the status of last command that is executed. After pressing enter, the terminal will simply close.
 

Tìm kiếm

Back
Top