exit
Матеріал з Вікіпедії — вільної енциклопедії.
exit (вихід) — вбудована в оболонку команда, яка дозволяє користувачам вийти з поточної сесії оболонки командного інтерпретатора.
В скриптах exit викликає завершення роботи оболонки командного інтерпретатора і часто застосовується зі станом виходу (англ. exit status). Стан задається цілим числом. Якщо стан опущений, стан виходу буде таким самим як і стан виходу останньої виконаної команди. Скрипт часто завершують командою exit 0
, щоб проінформувати батьківський процес про успішне завершення. Введення в скрипт символу кінця файлу (EOF) також призведе до завершення роботи оболонки.
- Linux / Unix exit command [Архівовано 11 грудня 2008 у Wayback Machine.]
UNIX-команди, що запускаються в режимі командного рядка | |
---|---|
Файлові системи: | |
Файли і каталоги: | |
Процеси: | |
Користувачі: | |
Мережа: | |
Тексти: | |
Командний рядок: | |
Друк: |
|
Пошук: | |
Різне: |
Text is available under the CC BY-SA 4.0 license; additional terms may apply.
Images, videos and audio are available under their respective licenses.