'python hack-it.py' would have sufficed. If you haven't seen it, it wasn't much better than this: https://www.youtube.com/watch?v=Bmz67ErIRa4 and at least that was entertaining.
Except the basic CLI knowledge prepared her for when she needed to run some emergency commands e.g. to restore the network connection. I'll allow them a tiny bit of artistic license here, it certainly added to the tension.
Side note: Why is everyone using Kali Linux all the time? Does anyone (who isn't 14) really run that as a daily driver? They use it to surf the web and check their email. It makes no sense.
There's a scene where we can see Elliot running CentOS on his personal laptop. Not that lends any realism (CentOS is more common on servers, not PCs) but it does show their awareness of Linux beyond Kali.
so joke is on you :)
Hacker (film) was painful to watch. So much cheesyness.