How to get the MD5 checksum of a file under Mac OSX
Answer:
To get the MD5 checksum of a file under Mac OSX, like the md5sum command in Linux, you can use:
# md5 my-file.zip
Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.
How to get the MD5 checksum of a file under Mac OSX
Answer:
To get the MD5 checksum of a file under Mac OSX, like the md5sum command in Linux, you can use:
# md5 my-file.zip
How to uncompress a WAR file using command
Answer:
To un-compress a Java Web Archives file (*.war), you can use the command
# jar xvf my-app.war
Import private key into Mac's KeyChain
Answer:
To import a private key e.g. key.p12 into your login keychain, use the command:
# security import key.p12 -k ~/Library/Keychains/login.keychain
How to set JAVA_HOME on OSX
Answer:
To set the JAVA_HOME environment variable on OSX, add the following line in your ~/.bash_profile
export JAVA_HOME=$(/usr/libexec/java_home)
That's all.
How to install homebrew for Mac?
Answer:
Homebrew is the easiest and most flexible way to install the UNIX tools Apple didn't include with OS X. To install under Mac's terminal, type
# /usr/bin/ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)"
That's it.