How to clear the command line if you need to have a clean shell window in Linux
- Type in the ‘clear‘ command and hit enter.
- Alternatively press the key combination ‘CTRL+L‘ together and it should also clear the screen.
Written by Ian Carnaghan I am a software developer and online educator who likes to keep up with all the latest in technology. I also manage cloud infrastructure, continuous monitoring, DevOps processes, security, and continuous integration and deployment. In my spare time I teach undergraduate classes in web development. Profile