![cmd prompt for mac os cmd prompt for mac os](https://cdn.osxdaily.com/wp-content/uploads/2017/01/list-all-terminal-commands-mac-610x381.jpg)
In our example, we have moved the MyProjectFile.txt file from the Downloads folder to the Documents folder.Īlso, if you need to move a file to a subfolder, then you can write as: Let’s understand how this command will work so that you can have a better understanding of Command Prompt on Mac. % mv ~/Downloads/MyProjectFile.txt ~/Documents/MyProjectFile.txt
![cmd prompt for mac os cmd prompt for mac os](https://www.maketecheasier.com/assets/uploads/2017/10/run-java-program-command-prompt-hero-e1508557490973.jpg)
Here’s how you can use it on macOS Terminal: The mv command is used for changing the location of a folder and moving it to a new location. To move any file or folder locally using Terminal, you can use the mv command for getting the job done. Now type “ Ls” and hit Enter to see the list of files.Īs soon as you hit the Return key, you will see the list of all the files that are placed in your Mac’s Documents folder. Type cd~/documents and then hit Enter to open the Documents folder. You can also use Command Prompt on Mac to open any folder and to view all the files that are included in it.
![cmd prompt for mac os cmd prompt for mac os](https://media.idownloadblog.com/wp-content/uploads/2019/04/Open-Terminal-from-Finder-Utilties.jpg)
After typing the command, press the Return key to execute the command. In our example, we have framed a command to open the Spotify app on macOS using Terminal. You can replace it with any other app as well as per your preference. The command is followed by the application’s name. To open any application using Mac’s Terminal, here’s what you need to do. New to the command prompt on Mac? Don’t worry! Let’s get started with the basics first.
Cmd prompt for mac os how to#
So, in this scenario, Michael is the user account’s name, MacBook Pro is the device and the current folder location is the Home folder.Īlso read: Steps To Customise Your Mac Terminal & Increase Productivity How to Use the Terminal Command-Line in macOS