Adding open command with different options for opening a file, application, url, and directory

This commit is contained in:
willywos 2015-10-15 22:25:38 -05:00
parent 1b828ef2e8
commit f160db7eff

View File

@ -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