文書の表示以前のリビジョンバックリンク文書の先頭へ この文書は読取専用です。文書のソースを閲覧することは可能ですが、変更はできません。もし変更したい場合は管理者に連絡してください。 ====== Gow (Gnu On Windows) - Linux コマンド群 (Cygwin 軽量版) ====== ドキュメント: [[https://github.com/bmatzelle/gow/wiki|Home · bmatzelle/gow Wiki]]\\ ソースコード: [[https://github.com/bmatzelle/gow|bmatzelle/gow: Unix command line utilities installer for Windows.]]\\ Gow (Gnu On Windows) は、Cygwin の軽量な代替品です。便利な Windows インストーラーを使用して、ネイティブの win32 バイナリとしてコンパイルされた約 130 の非常に便利なオープンソース UNIX アプリケーションをインストールする。\\ オプションによっては 100 MB をはるかに超えて実行できる Cygwin とは対照的に、それは可能な限り小さく、約 10 MBに設計されている。\\ [[https://github.com/bmatzelle/gow|bmatzelle/gow: Unix command line utilities installer for Windows.]] より\\ ===== インストール ===== [[windows:scoop|Scoop]] によるインストール。\\ <WRAP color_term> <WRAP color_command><html><pre> <b class=GRN>$</b> <b class=HIY>scoop</b> install gow </pre></html></WRAP> <WRAP color_result_long><html><pre> Installing 'gow' (0.8.0) [64bit] Gow-0.8.0.exe (8.7 MB) [======================================================================================] 100% Checking hash of <b class=CYN>Gow-0.8.0.exe</b> ... <b class=GRN>ok.</b> Extracting <b class=CYN>dl.7z</b> ... <b class=GRN>done.</b> Running pre-install script... Linking ~\scoop\apps\gow\current => ~\scoop\apps\gow\0.8.0 Creating shim for 'awk'. Creating shim for 'basename'. Creating shim for 'bash'. Creating shim for 'bc'. Creating shim for 'bison'. Creating shim for 'bunzip2'. Creating shim for 'bzip2'. Creating shim for 'bzip2recover'. Creating shim for 'cat'. Creating shim for 'chgrp'. Creating shim for 'chmod'. Creating shim for 'chown'. Creating shim for 'chroot'. Creating shim for 'cksum'. Creating shim for 'clear'. Creating shim for 'cp'. Creating shim for 'csplit'. Creating shim for 'curl'. Creating shim for 'cut'. Creating shim for 'dc'. Creating shim for 'dd'. Creating shim for 'df'. Creating shim for 'diff'. Creating shim for 'diff3'. Creating shim for 'dirname'. Creating shim for 'dos2unix'. Creating shim for 'du'. <b class=YEL>WARN Overwriting shim to du.exe installed from sysinternals</b> Creating shim for 'egrep'. Creating shim for 'env'. Creating shim for 'expand'. Creating shim for 'expr'. Creating shim for 'factor'. Creating shim for 'fgrep'. Creating shim for 'flex'. Creating shim for 'fmt'. Creating shim for 'fold'. Creating shim for 'gawk'. Creating shim for 'gfind'. Creating shim for 'gow'. Creating shim for 'grep'. Creating shim for 'gsar'. Creating shim for 'gsort'. Creating shim for 'gzip'. Creating shim for 'head'. Creating shim for 'hostid'. Creating shim for 'hostname'. Creating shim for 'id'. Creating shim for 'indent'. Creating shim for 'install'. Creating shim for 'join'. Creating shim for 'jwhois'. Creating shim for 'less'. Creating shim for 'lesskey'. Creating shim for 'ln'. Creating shim for 'ls'. Creating shim for 'm4'. Creating shim for 'make'. Creating shim for 'md5sum'. Creating shim for 'mkdir'. Creating shim for 'mkfifo'. Creating shim for 'mknod'. Creating shim for 'mv'. Creating shim for 'nano'. Creating shim for 'ncftp'. Creating shim for 'nl'. Creating shim for 'od'. Creating shim for 'pageant'. Creating shim for 'paste'. Creating shim for 'patch'. Creating shim for 'pathchk'. Creating shim for 'plink'. Creating shim for 'pr'. Creating shim for 'printenv'. Creating shim for 'printf'. Creating shim for 'pscp'. Creating shim for 'psftp'. Creating shim for 'putty'. Creating shim for 'puttygen'. Creating shim for 'pwd'. Creating shim for 'rm'. Creating shim for 'rmdir'. Creating shim for 'scp'. <b class=YEL>WARN Overwriting shim to scp.bat installed from openssh</b> Creating shim for 'sdiff'. Creating shim for 'sed'. Creating shim for 'seq'. Creating shim for 'sftp'. <b class=YEL>WARN Overwriting shim to sftp.bat installed from openssh</b> Creating shim for 'sha1sum'. Creating shim for 'shar'. Creating shim for 'sleep'. Creating shim for 'split'. Creating shim for 'ssh'. <b class=YEL>WARN Overwriting shim to ssh.bat installed from openssh</b> Creating shim for 'su'. Creating shim for 'sum'. Creating shim for 'sync'. <b class=YEL>WARN Overwriting shim to sync.exe installed from sysinternals</b> Creating shim for 'tac'. Creating shim for 'tail'. Creating shim for 'tar'. Creating shim for 'tee'. Creating shim for 'test'. Creating shim for 'touch'. Creating shim for 'tr'. Creating shim for 'uname'. Creating shim for 'unexpand'. Creating shim for 'uniq'. Creating shim for 'unix2dos'. Creating shim for 'unlink'. Creating shim for 'unrar'. Creating shim for 'unshar'. Creating shim for 'uudecode'. Creating shim for 'uuencode'. Creating shim for 'vim'. <b class=YEL>WARN Overwriting shim to vim.exe installed from vim</b> Creating shim for 'wc'. Creating shim for 'wget'. Creating shim for 'whereis'. Creating shim for 'which'. Creating shim for 'whoami'. Creating shim for 'xargs'. Creating shim for 'yes'. Creating shim for 'zip'. Running post-install script... Directory: C:\Users\tomoyan\scoop\apps\gow\current Mode LastWriteTime Length Name ---- ------------- ------ ---- d---- 2020/05/03 1:14 etc <b class=GRN>'gow' (0.8.0) was installed successfully!</b> </pre></html></WRAP> </WRAP> ==== グローバルインストール ==== <WRAP color_term> <WRAP color_command><html><pre> <b class=GRN>$</b> <b class=HIY>scoop</b> install gow <b class=HIK>--global</b> </pre></html></WRAP> <WRAP color_result_long><html><pre> Installing 'gow' (0.8.0) [64bit] Gow-0.8.0.exe (8.7 MB) [======================================================================================] 100% Checking hash of <b class=CYN>Gow-0.8.0.exe</b> ... <b class=GRN>ok.</b> Extracting <b class=CYN>dl.7z</b> ... <b class=GRN>done.</b> Running pre-install script... Linking C:\ProgramData\scoop\apps\gow\current => C:\ProgramData\scoop\apps\gow\0.8.0 Creating shim for 'awk'. Creating shim for 'basename'. Creating shim for 'bash'. Creating shim for 'bc'. Creating shim for 'bison'. Creating shim for 'bunzip2'. Creating shim for 'bzip2'. Creating shim for 'bzip2recover'. Creating shim for 'cat'. Creating shim for 'chgrp'. Creating shim for 'chmod'. Creating shim for 'chown'. Creating shim for 'chroot'. Creating shim for 'cksum'. Creating shim for 'clear'. Creating shim for 'cp'. Creating shim for 'csplit'. Creating shim for 'curl'. Creating shim for 'cut'. Creating shim for 'dc'. Creating shim for 'dd'. Creating shim for 'df'. Creating shim for 'diff'. Creating shim for 'diff3'. Creating shim for 'dirname'. Creating shim for 'dos2unix'. Creating shim for 'du'. Creating shim for 'egrep'. Creating shim for 'env'. Creating shim for 'expand'. Creating shim for 'expr'. Creating shim for 'factor'. Creating shim for 'fgrep'. Creating shim for 'flex'. Creating shim for 'fmt'. Creating shim for 'fold'. Creating shim for 'gawk'. Creating shim for 'gfind'. Creating shim for 'gow'. Creating shim for 'grep'. Creating shim for 'gsar'. Creating shim for 'gsort'. Creating shim for 'gzip'. Creating shim for 'head'. Creating shim for 'hostid'. Creating shim for 'hostname'. Creating shim for 'id'. Creating shim for 'indent'. Creating shim for 'install'. Creating shim for 'join'. Creating shim for 'jwhois'. Creating shim for 'less'. Creating shim for 'lesskey'. Creating shim for 'ln'. Creating shim for 'ls'. Creating shim for 'm4'. Creating shim for 'make'. Creating shim for 'md5sum'. Creating shim for 'mkdir'. Creating shim for 'mkfifo'. Creating shim for 'mknod'. Creating shim for 'mv'. Creating shim for 'nano'. Creating shim for 'ncftp'. Creating shim for 'nl'. Creating shim for 'od'. Creating shim for 'pageant'. Creating shim for 'paste'. Creating shim for 'patch'. Creating shim for 'pathchk'. Creating shim for 'plink'. Creating shim for 'pr'. Creating shim for 'printenv'. Creating shim for 'printf'. Creating shim for 'pscp'. Creating shim for 'psftp'. Creating shim for 'putty'. Creating shim for 'puttygen'. Creating shim for 'pwd'. Creating shim for 'rm'. Creating shim for 'rmdir'. Creating shim for 'scp'. Creating shim for 'sdiff'. Creating shim for 'sed'. Creating shim for 'seq'. Creating shim for 'sftp'. Creating shim for 'sha1sum'. Creating shim for 'shar'. Creating shim for 'sleep'. Creating shim for 'split'. Creating shim for 'ssh'. Creating shim for 'su'. Creating shim for 'sum'. Creating shim for 'sync'. Creating shim for 'tac'. Creating shim for 'tail'. Creating shim for 'tar'. Creating shim for 'tee'. Creating shim for 'test'. Creating shim for 'touch'. Creating shim for 'tr'. Creating shim for 'uname'. Creating shim for 'unexpand'. Creating shim for 'uniq'. Creating shim for 'unix2dos'. Creating shim for 'unlink'. Creating shim for 'unrar'. Creating shim for 'unshar'. Creating shim for 'uudecode'. Creating shim for 'uuencode'. Creating shim for 'vim'. Creating shim for 'wc'. Creating shim for 'wget'. Creating shim for 'whereis'. Creating shim for 'which'. Creating shim for 'whoami'. Creating shim for 'xargs'. Creating shim for 'yes'. Creating shim for 'zip'. Running post-install script... Directory: C:\ProgramData\scoop\apps\gow\current Mode LastWriteTime Length Name ---- ------------- ------ ---- d---- 2020/05/16 2:42 etc <b class=GRN>'gow' (0.8.0) was installed successfully!</b> </pre></html></WRAP> </WRAP> ===== 動作確認 ===== <WRAP prewrap 100%> <code powershell> $ uname -a </code> </WRAP> <WRAP prewrap 100% #result> <code powershell> windows32 Cmon 2.6.2 9200 i686-pc Intel unknown MinGW </code> </WRAP> ===== Win32 ユーティリティ概要 ===== 以下は、Gow にある 100 以上のアプリケーションのほんの一部である。\\ * シェルスクリプト: bash、zsh * 圧縮: tar、gzip、zip、bzip2、compress * SSH: putty、psftp、pscp、pageant、plink * ダウンロード/アップロード: cURL、wget * FTP: NcFTP * 編集: vim、nano * テキスト検索/表示: grep、agrep、less、cat、tail、head * ファイルシステム: mv、cp、du、ls、pwd、rmdir、whereis ===== 不足しているコマンドのインストール ===== * 圧縮: [[windows:xz|xz]] ===== 参考文献 ===== [[http://www.pixelbeat.org/cmdline_ja_JP.html|コマンド行の中心要素]]\\ windows/gow.txt 最終更新: 2022/06/04 04:06by ともやん