DEV Community

StuartCreed
StuartCreed

Posted on • Updated on

Useful Mac Commands

On finder do shift+command+G to type in the path of the folder that you want to go to.

On finder to show hidden files:
Command+Shift+Dot

To do a global search on the Mac for a file:
sudo find / -name filename e.g. sudo find / -name php.ini
The / makes it search the whole computer. You can change this to a specific directory if you know that the file is within a specific directory.

or to use Spotlight to find file:
mdfind filename

Create a file
touch file e.g. touch .zshrc would create a .zshrc file.

To exit spaces in a URL use backslash
ln -s /Users/stuardcreed/Land\ Stack\ Dropbox/LS\ Stuart/.zshrc .zshrc

Top comments (0)