Adding open command with different options for opening a file, application, url, and directory
This commit is contained in:
parent
1b828ef2e8
commit
f160db7eff
27
README.md
27
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)
|
- [Networking Tools](#networking-tools)
|
||||||
- [TCP/IP](#tcpip)
|
- [TCP/IP](#tcpip)
|
||||||
- [Wi-Fi](#wi-fi)
|
- [Wi-Fi](#wi-fi)
|
||||||
|
- [Open](#open)
|
||||||
- [Package Managers](#package-managers)
|
- [Package Managers](#package-managers)
|
||||||
- [Printing](#printing)
|
- [Printing](#printing)
|
||||||
- [Security](#security)
|
- [Security](#security)
|
||||||
@ -482,6 +483,32 @@ defaults read /Library/Preferences/SystemConfiguration/com.apple.airport.prefere
|
|||||||
security find-generic-password -ga "ROUTERNAME" | grep "password:"
|
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
|
## Package Managers
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user