Terminal

General

return the last command

!!

make file executable

chmod +x

add write access to a group

chmod g+w

change file owner and group

chown

check folder size

du -h Gigabyte <folder_name>

-h "Human-readable" output. Use unit suffixes: Byte, Kilobyte, Megabyte, Gigabyte, Terabyte and Petabyte.

Setup

Using Alt/Cmd + Right/Left Arrow in iTerm

Go to iTerm Preferences → Profiles, select your profile, then the Keys tab. Find ⌥← and ⌥→ and set them to send escape sequence b and send escape sequence f respectively.

https://apple.stackexchange.com/questions/136928/using-alt-cmd-right-left-arrow-in-iterm

Last updated

Was this helpful?