Shared Physics
by Roman Kudryashov
Shared Physics

Notes on Using the Mac Terminal

Published on 1 min read

Because I have a bad memory and find myself constantly looking things up:

cd – Enter a directory.
cd - – Go back
cd ~ – Go to home
cp – copy
ls – list whatever is in the directory
ls -ltrw – list whatever is in the directory with options
sudo – run as admin (“super user do”)
mv – move
chmod– change directory/user permissions. File permissions fall in three categories: readwrite, and execute represented as r , w, x.
chown - Change ownership of directory.
r-sync
pwd
– path
mkdir make a directory
touch create a file if none exists
&& – run subsequent commands… such as npm install && npm start
find / -name abc.dmg
to search via the terminal for something, with abc.dmg being replaces with what you’re looking for

Thanks for reading

Useful? Interesting? Have something to add? Shoot me a note at roman@sharedphysics.com. I love getting email and chatting with readers.

You can also sign up for irregular emails and RSS updates when I post something new.


Who am I?

I'm Roman Kudryashov. I'm a healthcare technologist and organizational fixer with too many side projects. I typically work with early and mid-stage companies to build, fix, or scale operations. I've done this for product, engineering, data, marketing, and design teams. My longer background is here and I keep track of some of my side projects here.


Stay true,
Roman