Commands

: null command; returns zero exit status
. file read and execute commands in file
break exit from current enclosing for, select, until, or while loop
break n exit from nth enclosing for, select, until, or while loop
cd dir change directory to dir(default $HOME)
cd dir1 dir2 change to directory where dir1 in current pathname is substituted with dir2
cd – change directory to previous directory
echo args display arguments
eval cmds read and execute commands
exec I/O-redirection-command perform I/O redirection on file descriptors
exec command replace current process with command
exit exit from current program with exit status of the last command. If given at command prompt, terminate the login shell.
exit n exit from current program with ...

Get Korn Shell: Unix and Linux Programming Manual, Third Edition, The now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.