Clear SFTP Prompt Screen on macOS Terminal


Clear Screen SFTP Prompt
Clear Screen SFTP Prompt

When you connect to an SFTP server location using the macOS Terminal and you are on the sftp> prompt, you will see that the clear screen command does not work and gives you Invalid command error.

In order to clear the screen on the SFTP prompt you can make use of the keyboard shortcut Command + Control + L

Before:
sftp> clear
Invalid command.
sftp> clear screen
Invalid command.
sftp> cls
Invalid command.
sftp> 


After pressing Command + Control + L
sftp>

Note: you can also perform the same operation by going to the Terminal menu: Edit -> Clear Screen

Terminal Clear Screen Menu Option
Terminal Clear Screen Menu Option
Copyright © Code2care 2024 | Privacy Policy | About Us | Contact Us | Sitemap