What Is the Correct Syntax to Shorten a Linux Command to Clear the Visible Terminal Shell?
Contents

What is the correct syntax to shorten a Linux command to clear the visible terminal?

Normally we use the clear command or press “Ctrl + L” to clear the terminal screen in Linux. Although it works, in reality the screen is not cleared – only the previous output is shifted upwards outside of the viewable area.

How do I shorten a command prompt in Linux?

You would type termprompt whenever you wanted to shorten your prompt or, have termprompt called from the bottom of your ~/. bashrc for permanency.

Maya Lin-Takahashi

Maya Lin-Takahashi

Consumer Tech & Gadget Reviewer

Maya is a hardware enthusiast who tests and reviews smart home devices, smartphones, wearables, and audio gear. She focuses on practical consumer value and build quality.

Share this article
Twitter Facebook Pinterest