Add Bash on Ubuntu on Windows

This commit is contained in:
Peter Kokot 2016-07-18 08:41:26 +02:00
parent 5544d5c76c
commit 004ac552f3

View file

@ -276,7 +276,7 @@ mkdir empty && rsync -r --delete empty/ some-dir && rmdir some-dir
- File attributes are settable via `chattr` and offer a lower-level alternative to file permissions. For example, to protect against accidental file deletion the immutable flag: `sudo chattr +i /critical/directory/or/file` - File attributes are settable via `chattr` and offer a lower-level alternative to file permissions. For example, to protect against accidental file deletion the immutable flag: `sudo chattr +i /critical/directory/or/file`
- Use `getfacl` and `setfacl` to save and restore file permissions. For example: - Use `getfacl` and `setfacl` to save and restore file permissions. For example:
```sh ```sh
getfacl -R /some/path > permissions.txt getfacl -R /some/path > permissions.txt
setfacl --restore=permissions.txt setfacl --restore=permissions.txt
@ -322,7 +322,7 @@ mkdir empty && rsync -r --delete empty/ some-dir && rmdir some-dir
- Use `dmesg` whenever something's acting really funny (it could be hardware or driver issues). - Use `dmesg` whenever something's acting really funny (it could be hardware or driver issues).
- If you delete a file and it doesn't free up expected disk space as reported by `du`, check whether the file is in use by a process: - If you delete a file and it doesn't free up expected disk space as reported by `du`, check whether the file is in use by a process:
`lsof | grep deleted | grep "filename-of-my-big-file"` `lsof | grep deleted | grep "filename-of-my-big-file"`
@ -540,6 +540,10 @@ These are items relevant *only* on OS X.
## Windows only ## Windows only
These items are relevant *only* on Windows.
- Since Window 10 use [Bash on Ubuntu on Windows](https://msdn.microsoft.com/commandline/wsl/about), which provides a familiar Bash environment with Unix command line utilities and allows Linux programs to run on Windows.
- Access the power of the Unix shell under Microsoft Windows by installing [Cygwin](https://cygwin.com/). Most of the things described in this document will work out of the box. - Access the power of the Unix shell under Microsoft Windows by installing [Cygwin](https://cygwin.com/). Most of the things described in this document will work out of the box.
- Install additional Unix programs with the Cygwin's package manager. - Install additional Unix programs with the Cygwin's package manager.