See how you can use it in macOS Terminal:
The mv command is used to change the location of a folder and move it to a new location. To move any file or folder locally using Terminal, you can use the mv command to do the job. Now type “ Ls”And press Enter to see the file list.Īs soon as you press the Return key, you'll see a list of all files placed in your Mac's Documents folder. Model cd ~ / documents and press Enter to open the Documents folder. You can also use Command Prompt on Mac to open any folder and see all the files included in it. After typing the command, press the Return key to execute the command. In our example, we structured a command to open the Spotify app on macOS using Terminal. You can replace it with any other app as you prefer. The command is followed by the application name. To open any app using Mac Terminal, here's what you need to do. New to Mac Command Prompt? Do not worry! Let's start with the basics first.
So, in this scenario, Michael is the user's account name, MacBook Pro is the device, and the current folder location is the Home folder.Īlso Read: Steps to Customizing Your Mac Terminal and Boosting Productivity How to use the terminal command line in macOS Once you launch the Terminal application on your Mac, the prompt window will display your username you are logged in as, the device name, the current folder followed by a prompt symbol. Find the Terminal app and double-tap it to launch it.Īlso read: How to customize the default shell in the terminal? Understanding the Terminal An alternative way to open Terminal is by navigating to Finder > Applications > Utilities folder on your macOS. To open the Terminal app, you can do a quick Spotlight search to launch the command prompt on Mac. Each Terminal window represents a Shell process. Terminal's command line allows you to quickly control the operating system.