Add Cash to Windows section
parent
2c1826af7a
commit
cc0eab999a
|
@ -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"`
|
||||||
|
|
||||||
|
|
||||||
|
@ -556,6 +556,8 @@ These are items relevant *only* on OS X.
|
||||||
|
|
||||||
- You can perform and script most Windows system administration tasks from the command line by learning and using `wmic`.
|
- You can perform and script most Windows system administration tasks from the command line by learning and using `wmic`.
|
||||||
|
|
||||||
|
- Another option to get Unix look and feel under Windows is [Cash](https://github.com/dthree/cash).
|
||||||
|
|
||||||
## More resources
|
## More resources
|
||||||
|
|
||||||
- [awesome-shell](https://github.com/alebcay/awesome-shell): A curated list of shell tools and resources.
|
- [awesome-shell](https://github.com/alebcay/awesome-shell): A curated list of shell tools and resources.
|
||||||
|
|
Loading…
Reference in New Issue