jeudi 1 janvier 2015

How to kill a runaway cat?


Many times I accidentally run the cat command on files have contents up to few thousand lines.


I try to kill the cat command with Ctrl+ C or Ctrl+Z, but both only take effect after the total output of cat is displayed in the terminal, so I have to wait till cat gets completely executed.


Is there a better solution that avoids waiting? Because sometimes the files are up to size of 100MBs and it gets irritating to wait for it.



Aucun commentaire:

Enregistrer un commentaire