mirror of
https://github.com/xmengnet/the-art-of-command-line.git
synced 2024-12-24 11:06:29 +08:00
Add short Microsoft Windows section
This commit is contained in:
parent
5417c239b4
commit
8faadd4897
1 changed files with 19 additions and 1 deletions
20
README.md
20
README.md
|
@ -14,6 +14,7 @@
|
|||
- [One-liners](#one-liners)
|
||||
- [Obscure but useful](#obscure-but-useful)
|
||||
- [OS X only](#os-x-only)
|
||||
- [Windows](#windows)
|
||||
- [More resources](#more-resources)
|
||||
- [Disclaimer](#disclaimer)
|
||||
|
||||
|
@ -35,7 +36,7 @@ but it has since moved to GitHub, where people more talented than the original a
|
|||
Scope:
|
||||
|
||||
- This guide is both for beginners and the experienced. The goals are *breadth* (everything important), *specificity* (give concrete examples of the most common case), and *brevity* (avoid things that aren't essential or digressions you can easily look up elsewhere). Every tip is essential in some situation or significantly saves time over alternatives.
|
||||
- This is written for Linux, with the exception of the "[OS X only](#os-x-only)" section. Many of the other items apply or can be installed on other Unices or OS X (or even Cygwin).
|
||||
- This is written for Linux, with the exception of the "[OS X only](#os-x-only)" and "[Windows](#windows)" sections. Many of the other items apply or can be installed on other Unices or OS X (or even Cygwin).
|
||||
- The focus is on interactive Bash, though many tips apply to other shells and to general Bash scripting.
|
||||
- It includes both "standard" Unix commands as well as ones that require special package installs -- so long as they are important enough to merit inclusion.
|
||||
|
||||
|
@ -507,6 +508,23 @@ These are items relevant *only* on OS X.
|
|||
|
||||
- To get OS X release information, use `sw_vers`.
|
||||
|
||||
## Windows
|
||||
|
||||
- Access the power of the Unix shell under Microsoft Windows by installing Cygwin. Most of the things described in this document will work out of the box.
|
||||
|
||||
- Install additional Unix programs with the Cygwin's package manager.
|
||||
|
||||
- Use `mintty` as your command-line window.
|
||||
|
||||
- Access the Windows clipboard through `/dev/clipboard`.
|
||||
|
||||
- Run `cygstart` to open an arbitrary file through its registered application.
|
||||
|
||||
- Access the Windows registry with `regtool`.
|
||||
|
||||
- Convert between Cygwin and Windows-style file paths with `cygpath`. This is most useful in scripts that invoke Windows programs.
|
||||
|
||||
- You can perform and script most Windows system administration tasks from the command line by learning and using `wmic`.
|
||||
|
||||
## More resources
|
||||
|
||||
|
|
Loading…
Reference in a new issue