From cc0eab999ae90f1e69c9cb92bc23deef58395f8e Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Tue, 15 Mar 2016 02:37:46 +0100 Subject: [PATCH 1/6] Add Cash to Windows section --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ff8d805..e16081e 100644 --- a/README.md +++ b/README.md @@ -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` -- 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 getfacl -R /some/path > 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). -- 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"` @@ -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`. +- Another option to get Unix look and feel under Windows is [Cash](https://github.com/dthree/cash). + ## More resources - [awesome-shell](https://github.com/alebcay/awesome-shell): A curated list of shell tools and resources. From bffd334093b7503113b9cc20d259fba8a67b554f Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Mon, 18 Jul 2016 07:23:00 +0200 Subject: [PATCH 2/6] Add extra note for Cash on Windows --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e16081e..02af8c3 100644 --- a/README.md +++ b/README.md @@ -556,7 +556,7 @@ 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`. -- Another option to get Unix look and feel under Windows is [Cash](https://github.com/dthree/cash). +- Another option to get Unix look and feel under Windows is [Cash](https://github.com/dthree/cash). Note that only very few Unix commands and command-line options are available in this environment. ## More resources From 5544d5c76c0e3962d029391378a6d33b42c8d588 Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Mon, 18 Jul 2016 08:40:32 +0200 Subject: [PATCH 3/6] Add MinGW and MSYS to Windows section --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 02af8c3..e414f66 100644 --- a/README.md +++ b/README.md @@ -558,6 +558,8 @@ These are items relevant *only* on OS X. - Another option to get Unix look and feel under Windows is [Cash](https://github.com/dthree/cash). Note that only very few Unix commands and command-line options are available in this environment. +- Alternative option to get GNU developer tools (such as GCC) on Windows, is [MinGW](http://www.mingw.org/) and its [MSYS](http://www.mingw.org/wiki/msys) package that provides utilities such as bash, gawk, make and grep. MSYS doesn't have all the features compared to Cygwin. + ## More resources - [awesome-shell](https://github.com/alebcay/awesome-shell): A curated list of shell tools and resources. From 004ac552f37229e3bbb75789c7129190bc948f4c Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Mon, 18 Jul 2016 08:41:26 +0200 Subject: [PATCH 4/6] Add Bash on Ubuntu on Windows --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e414f66..8453a96 100644 --- a/README.md +++ b/README.md @@ -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` -- 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 getfacl -R /some/path > 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). -- 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"` @@ -540,6 +540,10 @@ These are items relevant *only* on OS X. ## 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. - Install additional Unix programs with the Cygwin's package manager. From 61f3f8463399377a617f422e7d68fe85554e40b0 Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Sat, 23 Jul 2016 01:39:20 +0200 Subject: [PATCH 5/6] Fix typos --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8453a96..113aa49 100644 --- a/README.md +++ b/README.md @@ -542,7 +542,7 @@ These are items relevant *only* on OS X. 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. +- Since Windows 10, you can 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. @@ -562,7 +562,7 @@ These items are relevant *only* on Windows. - Another option to get Unix look and feel under Windows is [Cash](https://github.com/dthree/cash). Note that only very few Unix commands and command-line options are available in this environment. -- Alternative option to get GNU developer tools (such as GCC) on Windows, is [MinGW](http://www.mingw.org/) and its [MSYS](http://www.mingw.org/wiki/msys) package that provides utilities such as bash, gawk, make and grep. MSYS doesn't have all the features compared to Cygwin. +- An alternative option to get GNU developer tools (such as GCC) on Windows is [MinGW](http://www.mingw.org/) and its [MSYS](http://www.mingw.org/wiki/msys) package, which provides utilities such as bash, gawk, make and grep. MSYS doesn't have all the features compared to Cygwin. ## More resources From abdf4d9760d0544c1efd332c1d081d0e647b12b5 Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Sat, 23 Jul 2016 17:35:17 +0200 Subject: [PATCH 6/6] Add more clarification to Windows section --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 113aa49..c637aa4 100644 --- a/README.md +++ b/README.md @@ -542,7 +542,7 @@ These are items relevant *only* on OS X. These items are relevant *only* on Windows. -- Since Windows 10, you can 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. +- On Windows 10, you can use [Bash on Ubuntu on Windows](https://msdn.microsoft.com/commandline/wsl/about), which provides a familiar Bash environment with Unix command line utilities. On the plus side, this allows Linux programs to run on Windows. On the other hand this does not support the running of Windows programs from the Bash prompt. - 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. @@ -562,7 +562,7 @@ These items are relevant *only* on Windows. - Another option to get Unix look and feel under Windows is [Cash](https://github.com/dthree/cash). Note that only very few Unix commands and command-line options are available in this environment. -- An alternative option to get GNU developer tools (such as GCC) on Windows is [MinGW](http://www.mingw.org/) and its [MSYS](http://www.mingw.org/wiki/msys) package, which provides utilities such as bash, gawk, make and grep. MSYS doesn't have all the features compared to Cygwin. +- An alternative option to get GNU developer tools (such as GCC) on Windows is [MinGW](http://www.mingw.org/) and its [MSYS](http://www.mingw.org/wiki/msys) package, which provides utilities such as bash, gawk, make and grep. MSYS doesn't have all the features compared to Cygwin. MinGW is particularly useful for creating native Windows ports of Unix tools. ## More resources