From f160db7eff1d8d1ec99571cb60ba86b9d3c952fc Mon Sep 17 00:00:00 2001 From: willywos Date: Thu, 15 Oct 2015 22:25:38 -0500 Subject: [PATCH] Adding open command with different options for opening a file, application, url, and directory --- README.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/README.md b/README.md index 20f6ac8..59ab7b6 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,7 @@ If you want to contribute, you are highly encouraged to do so. Please read the [ - [Networking Tools](#networking-tools) - [TCP/IP](#tcpip) - [Wi-Fi](#wi-fi) +- [Open](#open) - [Package Managers](#package-managers) - [Printing](#printing) - [Security](#security) @@ -482,6 +483,32 @@ defaults read /Library/Preferences/SystemConfiguration/com.apple.airport.prefere security find-generic-password -ga "ROUTERNAME" | grep "password:" ``` +## Open + +#### Open a Url +```bash +open http://www.github.com +``` + +#### Open a file +```bash +open README.md +``` + +#### Open an application using -a +```bash +open -a "Google Chrome" http://www.github.com +``` + +#### Open a directory in Finder +```bash +open /path/to/directory +``` + +#### Open the current directory +```bash +open . +``` ## Package Managers