/bin/sh -i

This command will execute the shell interpreter specified in the path in interactive mode (-i).

Interactive

 /bin/sh -i

sh: no job control in this shell

sh-4.2$

Perl

perl -e 'exec "/bin/sh";'

Ruby

ruby: exec "/bin/sh"

Lua

lua: os.execute('/bin/sh')

Awk

awk 'BEGIN {system("/bin/sh")}'

Find

find / -name nameoffile -exec /bin/awk 'BEGIN {system("/bin/sh")}' \;

This use of the find command is searching for any file listed after the -name option, then it executes awk (/bin/awk) and runs the same script we discussed in the awk section to execute a shell interpreter.

find . -exec /bin/sh \; -quit

Vim

Vim to Shell

vim -c ':!/bin/sh'

Vim Escape

vim
 :set shell=/bin/sh
 :shell