Using the console, you can do anything you want: copy files and text fragments, edit text documents, open and delete files, and more. The console allows you to do a lot of things that can not be done with the mouse in the graphical interface.
As a result, Command line in Mac will open.
After any of the commands, you can specify the following characters to specify the desired location of the directory or file:
cd ~ helps you to navigate through various directories. For example, if you decide to go to the directory where your documents are located, the following command will look like this: cd ~ / Documents
Note that, the command is rather case-sensitive, and if some files have the capital K at the beginning, and you typed the usual k, you simply won't see them.
cp - allows copying files and folders. Suppose you want to copy the note.txt file from the desktop to the Documents directory. In this case, you need to type in Mac Command line: cp note.txt ~ / Documents
Please note that if a file with the same name exists in the new location, it will be deleted and replaced with the copied file without warnings and the possibility of recovery.
If you want not just to copy the file, but to copy and save it with a new name (for example, replace the new.txt with a new name), then the required command will look like this: cp note.txt ~ / Documents / new. txt
find - search for files that match your criteria.
Examples:
These are the most popular Command line commands Mac which are used most often. If you are a beginner, then let them not scare you, in fact, everything is simple, you just need to get used a little. Of course, few users use the capabilities of the Terminal in everyday life. But, once you start working with Mac OS Command line, you quite quickly appreciate the opportunities that it provides you.
Terminal is a system command-line application for many decades. However, if you need something more, or just want something else try Commander One. It is a full-featured dual-panel file manager that in addition has a built-in Terminal emulator with all the necessary options. The key feature of the app is the ability to work without switching between the applications. You will get an interface with two panels for conveniently moving and copying files from one place to another; view multiple tabs to eliminate interference; Commander One provides a wide range of features, including the ability to connect to (S)FTP and WebDAV servers, as well as Google Drive, Dropbox, OneDrive and Amazon S3 accounts to your Mac as disks, advanced search, sorting files, setting up hotkeys, ZIP, RAR, TAR, etc. support, and many more.