answersLogoWhite

0

The 'exit' command allows you to stop a running shell script at any point and to return a "status" value back to whomever called the shell script. This is a very common practice with shell scripts; sometimes you want to stop the script before it gets to the end of the shell script (for various logic reasons).

The 'exit' command also allows you to give a status that any other calling process can use to determine if the shell script ended successfully or not.

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

Which command is used to get out of unix environment?

Typically the 'exit' command gets you out of the current shell environment you are in; if this is the login shell then you will be logged out of the system.


Which Linux command gets you out of your current shell?

exit.


How do you exit the edit command in unix?

There are many editors available in Unix, and they all have different methods of exiting out. You need to specify exactly which editor you are concerned with.


What is the command a user invokes to log off Linux from the command shell?

Type exit to leave a terminal.


Write a shell script which deletes all line containing the word unix in the filesn suppiled as argument to this shell script?

# SS29 # Script to delete all lines containing the word 'unix' from files supplied as arguments # Usage: SS29 file1 file2 file3 ... if [$# -lt 2] then echo Insufficient arguments exit fi for file do grep -v unix $file>/temp/$file cp /temp/$file $file done


How do you end your command line?

Use "exit" command.


What is exit state in Unix known as?

The exit state of a process in Unix is known as the 'exit state'. The value of the exit state tells you whether or not the process completed without error. Usually a value of 0 indicates successful completion. Any other value means something was noted as incorrect, missing, or wrong.


What command is used to close the command prompt window?

exit


What is the command to get out of DOS and back to windows XP?

Use "exit" command..


How do you exit a prompt command?

Use "prompt $p$g" command.


What is a basic shell c plus plus?

A basic shell program should essentially emulate a command prompt with a very limited set of commands, such as exit to close the shell and possibly cd to change the current directory. Shell's are typically used to spawn other processes, but a basic shell will typically limit which processes may be allowed to run.


What command is most likely to log you out of an FTP command line?

I would try 'exit'.