Mostly, work in Terminal consists of entering the specific text strings and pressing the Return key. In the text below you will find some Terminal commands for Mac.
Before cleaning, you should analyze the disk space usage and find out what is taking up space on Mac. Here is a guide on all questions related to the Mac disk.