 A restricted mode operation is found in the original Bourne shell and its later counterpart Bash, and in the Korn shell.In some cases a restricted shell is used in conjunction with a chroot jail, in a further attempt to limit access to the system as a whole.The restricted mode of the Bourne shell sh, and its POSIX workalikes, is used when the interpreter is invoked in one of the following ways