ZSH(1) General Commands Manual ZSH(1) (NAME) zsh - Z (OVERVIEW) zsh : zsh zsh ( ) zshroadmap zshmisc zshexpn zsh zshparam zsh zshoptions zsh zshbuiltins zsh zshzle zsh zshcompwid zsh zshcompsys zsh zshcompctl zsh zshmodules zsh zshcalsys zsh zshtcpsys TCP zsh zshzftpsys FTP zsh zshcontrib zsh zshall (DESCRIPTION) zsh () . zsh ksh . POSIX << (COMPATIBILITY)>> . zsh ( ) . (AUTHORS) Zsh Paul Falstad . Zsh zsh-workers . Peter Stephenson . . (AVAILABILITY) Zsh HTTP FTP : ftp://ftp.zsh.org/pub https://www.zsh.org/pub Git Sourceforge . https://sourceforge.net/projects/zsh . https://zsh.sourceforge.io . (MAILING LISTS) Zsh : Zsh (). . . ( ) . zsh . . . zsh-announce zsh-users . zsh-users zsh-workers . . . : https://www.zsh.org/mla (THE ZSH FAQ) Zsh (FAQ) Peter Stephenson . comp.unix.shell zsh-announce . FTP Zsh https://www.zsh.org/FAQ . . ZSH (THE ZSH WEB PAGE) Zsh https://www.zsh.org . . ZSH (THE ZSH USERGUIDE) . ( <> ). https://zsh.sourceforge.io/Guide . . (INVOCATION) : -c . $0 . -i . . -s . -s . -c -s . PATH_SCRIPT ( / ) PATH . / . . set zshoptions(1) . --emulate ( ) . emulate zshbuiltins(1) . --emulate ( ) . emulate : POSIX path . -o . -o . : zsh -x -o shwordsplit scr scr XTRACE -x SH_WORD_SPLIT . +o -o . -o -xo shwordsplit -xoshwordsplit -x -o shwordsplit . GNU : --option-name. - : _ . zsh --sh-word-split zsh SH_WORD_SPLIT . - + +-sh-word-split --no-sh-word-split . GNU -x-shwordsplit -x --shwordsplit . GNU --version . --help . - + . - ( +) . -- ( +-) ( POSIX ) ( -x- -x -- ). -- ( -x-f ) GNU --shwordsplit . sh ksh -b ( +b) . -b -- -b . (COMPATIBILITY) Zsh sh ksh sh ksh r ( <> ) b s k sh ksh . su ( su ) SHELL . sh ksh : ARGC argv cdpath fignore fpath HISTCHARS mailpath MANPATH manpath path prompt PROMPT PROMPT2 PROMPT3 PROMPT4 psvar status. / zsh . (login) /etc/profile $HOME/.profile . ENV $ENV . ENV . PRIVILEGED . sh ksh : NO_BAD_PATTERN NO_BANG_HIST NO_BG_NICE NO_EQUALS NO_FUNCTION_ARGZERO GLOB_SUBST NO_GLOBAL_EXPORT NO_HUP INTERACTIVE_COMMENTS KSH_ARRAYS NO_MULTIOS NO_NOMATCH NO_NOTIFY POSIX_BUILTINS NO_PROMPT_PERCENT RM_STAR_SILENT SH_FILE_EXPANSION SH_GLOB SH_OPTION_LETTERS SH_WORD_SPLIT. zsh sh BSD_ECHO IGNORE_BRACES . zsh ksh KSH_OPTION_PRINT LOCAL_OPTIONS PROMPT_BANG PROMPT_SUBST SINGLE_LINE_ZLE . zsh POSIX . zsh https://www.zsh.org/FAQ . (RESTRICTED SHELL) zsh r -r . r . : o cd o EGID EUID GID HISTFILE HISTSIZE IFS LD_AOUT_LIBRARY_PATH LD_AOUT_PRELOAD LD_LIBRARY_PATH LD_PRELOAD MODULE_PATH module_path PATH path SHELL UID USERNAME o / o hash o o exec o jobs -Z o ARGV0 argv[0] o set +r unsetopt RESTRICTED . PATH . . RESTRICTED . . (Restricted Mode) : chroot jails (containers) zones. . zsh . ( ). PATH . env env . ( ) . . zsh . perl python bash PERL5LIB PYTHONPATH BASHENV ( ) . GNU GCONV_PATH ( zsh) . . readonly zsh . . zsh zsh/system zsh/mapfile zsh/files . / (STARTUP/SHUTDOWN FILES) /etc/zsh/zshenv . RCS GLOBAL_RCS ( / ) . . $ZDOTDIR GLOBAL_RCS . RCS GLOBAL_RCS . $ZDOTDIR/.zshenv . (login shell) /etc/zsh/zprofile $ZDOTDIR/.zprofile . /etc/zsh/zshrc $ZDOTDIR/.zshrc . /etc/zsh/zlogin $ZDOTDIR/.zlogin . $ZDOTDIR/.zlogout /etc/zsh/zlogout . exit logout (EOF) . exec . RCS GLOBAL_RCS . RCS RCS . ZDOTDIR HOME . /etc . /etc/zsh/zshenv zsh . if [[ -o rcs ]]; then ... zsh -f . zcompile ( zshbuiltins(1) ). ( .zwc ) . (FILES) $ZDOTDIR/.zshenv $ZDOTDIR/.zprofile $ZDOTDIR/.zshrc $ZDOTDIR/.zlogin $ZDOTDIR/.zlogout ${TMPPREFIX}* ( /tmp/zsh* ) /etc/zsh/zshenv /etc/zsh/zprofile /etc/zsh/zshrc /etc/zsh/zlogin /etc/zsh/zlogout ( - /etc ) (SEE ALSO) sh(1), csh(1), tcsh(1), rc(1), bash(1), ksh(1), zshall(1), zshbuiltins(1), zshcalsys(1), zshcompwid(1), zshcompsys(1), zshcompctl(1), zshcontrib(1), zshexpn(1), zshmisc(1), zshmodules(1), zshoptions(1), zshparam(1), zshroadmap(1), zshtcpsys(1), zshzftpsys(1), zshzle(1) IEEE Standard for information Technology - Portable Operating System Interface (POSIX) - Part 2: Shell and Utilities, IEEE Inc, 1993, ISBN 1-55937-255-9. zsh 5.9.2 July 12, 2026 ZSH(1)