Essential Mac Terminal Commands
pwdshows the folder you are currently inside.lslists files and folders in the current location.cd folder-namemoves into a folder.cd ..moves up one folder.cd ~returns to your home folder.mkdir notescreates a folder named notes.touch journal.txtcreates an empty text file.cp journal.txt backup.txtcopies a file.grep "error" server.logsearches for matching text.man lsopens the manual page for the ls command.
How to Practice Safely
Begin with read-only commands such as pwd, ls, head, and man. Then move into simple folder and file commands such as cd, mkdir, and touch. Command Trail gives you a browser-based practice space before you try commands in your real files.