Basic File Operations
| List files in a directory. |
cp | Copy a file. |
mv | Rename (“move”) a file. |
rm | Delete (“remove”) a file. |
ln | Create links (alternative names) to a file. |
One of the first things you’ll want to do in Terminal is manipulate files: copying, renaming, deleting, and so forth.
Get Macintosh Terminal Pocket Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.