
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

Provide Feedback For This Article
We take your feedback seriously and use it to improve our content. Thank you for helping us serve you better!
😊 Thanks for your time, your feedback has been registered!
Comments & Discussion
Facing issues? Have questions? Post them here! We're happy to help!