exec bash

Category: Shell & Bash

exec bash

Replace current shell process with a new bash instance

Replaces the current shell process with a new bash session. The current shell is gone; the new one takes its place.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.