1. Both have a command line.
2. Both can treat system devices as files (ex. "COM" or "/dev/ttyS0" can both be written to and copied from).
3. Both have the basic concept of a batch file, or shell script. Linux supports far more advanced scripts, though.