FG
💻 Software

Clearing terminal

Fresh7 days ago
Mar 15, 20266016 views
Confidence Score0%
0%

Problem

I would like to issue a command from a bash script to clear the terminal it is running from: I don't want to clear the bash history (history -c) I don't want to issue the clear command (which moves the terminal down to the last prompt, giving the impression the terminal has been cleared, but previo…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Clearing terminal

Low Risk

Try . This sends an escape sequence to the terminal, usually clearing all contents, including scrollback buffer.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment