Be careful — this code might be very evil! Only compile and run this program if you trust me and the code herein.
This is a minimalistic shell. It comes from the depths of hell, and can do lots of cool things!
Give it a Spin
gcc :: for compiling the shell.
git :: for a quick git clone.
The above utilities should be installed (or readily available) if you are running a Unix derivative (such as Linux, macOS, or any of the BSD’s).
# clone the git repo git clone https://github.com/lbeckman314/devilish # enter directory cd devilish # optionally inspect the makefile and main script cat makefile | less cat devilish.c | less # compile make # run the script ./devilish
0. Delete the directory/folder.
rm -rfI devilish
You will be provided with a prompt (
:), from which you can do all sorts of shell magic!
# First off, how to exit : exit # I can take comments and blank lines # I can run commands in the background sleep 100 & background pid is 31415 # I know standard unix commands ls file 1 file 2 file 3 # Control-Z will run a foreground-only session :^Z Entering foreground-only mode (& is now ignored) :^Z Exiting foreground-only mode # neato!