mac

MAC commands list

Tag(s):

Lock screen: Ctrl+Shift+Power
sudo shutdown -h +45

Make new executable run anywhere from command line

Tag(s):

# Symblink binary(i.e. mpv) to PATH folder(i.e. /usr/local/bin)

Where are application binaries stored?

Tag(s):

Example for MPV:

cd /Applications/mpv.app/Contents/MacOS/
./mpv yourVideoFile.avi

Home and End key equivalent in Mac

Tag(s):

  • Home=fn+shift+left arrow
  • End=fn+shift+rigth arrow

https://support.apple.com/en-us/HT201236

Add color to ls

Tag(s):

Add the following in .profile:

export CLICOLOR=1

If you want to customize the coloring scheme, then define your color scheme with LSCOLORS. e.g.

Customize command prompt

Tag(s):

Add your customizations in ~/.profile.

Subscribe to RSS - mac