Posts Tagged Mac

Install applications on Mac from command line

If you have .dmg file

  1. Mount dmg file: hdiutil mount your_favorite_app.dmg
  2. Copy app to “/Applications” folder: sudo cp -R “/Volumes/your_favorite_app/your_app.app” /Applications
  3. Unmount dmg file: hdiutil unmount “/Volumes/your_favorite_app/”

If you have .pkg file:

installer -pkg your_app.pkg -target /

, ,

Leave a comment

Disk usage in command line for Linux & Mac

Quick way to get disk usage for current folder in command line for Linux:

du * -h –max-depth=0 | sort -h

For Mac:

du -hm -d 1 | sort -n

Free disk space can be checked in both systems the same way:

df -h

 

, , , ,

Leave a comment