I am working on windows machine and I use bash shell which comes with Git. But there are many utilities which are missing in this version of bash shell. How can I install more commands on this shell?
Cygwinã®gcc ver.3.xã§ã¯-mno-cygwinãªãã·ã§ã³ãä»ããã°cygwin1.dllã®ãªã³ã¯ãããªãå®è¡ãã¡ã¤ã«ãä½ãäºãã§ããããæè¿ã®gcc (ver.4.xç³»å?ï¼ã§ã¯ãã®ãªãã·ã§ã³ã¯ä½¿ããªãã $ gcc -mno-cygwin sample.c gcc: The -mno-cygwin flag has been removed; use a mingw-targeted cross-compiler. $ gcc --version gcc (GCC) 4.5.3 (以ä¸ç¥)代ããã«MinGW-w64ã®gccã使ãã°è¯ãã*1 *2 Cygwin Setupã§ä»¥ä¸ã®ããã±ã¼ã¸ãã¤ã³ã¹ãã¼ã«ã 64ãããç°å¢ãªã mingw64-x86_64-gcc-core 32ãããç°å¢ãªã mingw64-i686-gcc-core ããã§ã¤ã³ã¹ãã¼ã«ãããgccã使ã
macOS ã 㨠iTerm ãé常ã«ä½¿ããããã®ã§ãããWindows ã§ã¯ã¿ã¼ããã«ã¨ãã¥ã¬ã¼ã¿æ¯ã«ä¸é·ä¸çã«æãã¾ã⦠èªåã§ã½ã¼ã¹ã³ã¼ããæ¸ãæãããªã¬ãªã¬ä»æ§ã«ã«ã¹ã¿ãã¤ãºåºæ¥ãã¨ä¾¿å©ãªã®ã§ãWindows ã§ã¯ã½ã¼ã¹ã³ã¼ãã (ç§ã«ã¨ã£ã¦ã¯) èªã¿ããã Poderosa ã使ããã¨ã«ãã¾ããã Poderosa ã«ã¯ãåç¨ãã¨ãOSSãã®ãµãã¤ãããã¾ãããç§ãå©ç¨ãã¦ããã®ã¯ OSS çã§ãã Poderosa åç¨çï¼ç¾å¨ã¯ãã¼ã¸ã§ã³ 5ï¼ Poderosa OSS çï¼ç¾å¨ã¯ãã¼ã¸ã§ã³ 4ï¼ ä»å㯠Poderosa ãã WSL (Windows Subsystem for Linux) ãå©ç¨ããæ¹æ³ãã¡ã¢ãã¦ããã¾ãã ç°å¢ ä»åã¯æçµçã«ä»¥ä¸ã®ç°å¢ã§ãã¹ããã¾ããã Windows 㯠64bit çãç¨ãã¦ãã¾ãã Windows 10 Professiona
Cè¨èªã¯ã1972å¹´ã«AT&Tãã«ç 究æã®ãããã¹ã»ãªããã¼ã主ä½ã¨ãªã£ã¦ä½æããããã°ã©ãã³ã°è¨èªã§ãã Bè¨èªã®å¾ç¶è¨èªã¨ãã¦éçºããããã¨ããCè¨èªã¨å½åããã®ããã表è¨æ³ãªã©ã¯Bè¨èªãALGOLã«è¿ãã¨ããã¦ãã¾ãã Cã®æ¡å¼µçã§ããC++è¨èªã¨ã¨ãã«ãç¾å¨ä¸çä¸ã§ãã£ã¨ãæ®åããã¦ããããã°ã©ãã³ã°è¨èªã§ãã
B! 18 0 0 0 è²ã ã¨ãã¡ããã¡ãã®ãã£ã Cygwinã®ããã±ã¼ã¸ãã³ãã³ãã©ã¤ã³ãã¼ã¹ã§ç®¡çã§ãã apt-cygã§ãããã¡ãã£ã¨ã¬ãã¸ããªãè¦ã«è¡ã£ãæ éçºè ã®äººãéçºçµäºå®£è¨ãåºãã¦ãã¾ããã apt-cyg apt-cygã®ãããã çµäºå®£è¨ ä»å¾ã®apt-cyg ã¾ã¨ã apt-cyg Cygwinã§ã¯ã¤ã³ã¹ãã¼ã©ã¼ã§ããsetup.exeãéãã¦ããã±ã¼ã¸ã ã¤ã³ã¹ãã¼ã«ã§ãã¾ããããã¡ãã¡GUIãç«ã¡ä¸ãã¦ãã§ãã¯ãå ¥ãããçµæ§é¢åã§ãã ãã£ããã®ã³ãã³ãã©ã¤ã³ãã¼ã«ã«ãé¢ãããã apt-cygã¯ãã®setup.exeã§ç®¡çã§ããããã±ã¼ã¸ãCygwinã®ã³ãã³ãã©ã¤ã³ãã 管çã§ããæ§ã«ãã¦ãããã·ã§ã«ã¹ã¯ãªããã§ãã apt-cygã®ä½¿ãæ¹: Cygwinã§ã³ãã³ãã©ã¤ã³ããããã±ã¼ã¸ãã¤ã³ã¹ãã¼ã«ããã管çããã apt-cygã®ãããã ãã¨ã㨠Go
æ°ã¥ãããèªå® ã§ããªãã£ã¹ã§ããã£ããWindowsã¦ã¼ã¶ã¼ã«ãªã£ã¡ãã£ã¦ãWin10æ å ±ã«ãä¸åä¸æãã¦ãã¨ãããå®ç§ãªã転ã³ãã«ã¼ã¶ããçºæ®ãã¦ãããªãã³ã§ãã åºæ¬çã«Winã§ããä¸ä¾¿ãã»ã¨ãã©ãªããªã£ã¦ãã¾ã£ãï¼ã¨ããããããå¿«é©ã«æããï¼ä»æ¥ãã®é ãªãã§ãããå¯ä¸ã«ãã¦æ大ã¨ãè¨ããWindowsã®å¼±ç¹ã¯ããã¾ã§ããªãã¾ã¨ããªã¿ã¼ããã«ã³ã³ã½ã¼ã«ããªããã¨ã§ããã? ã¨ã¯ãããæè¿ã¯ã³ã³ã½ã¼ã«ã§ã¯NodeJSã ããåãã°ãããã¨ããç¶æ ã ã£ãã®ã§ãã³ãã³ãããã³ããã§ãã¾ããããã¯ãã¦ããã§ãããæµç³ã«ã³ãã³ãå±¥æ´ã©ãããã³ããããã¾ã¨ãã«åºæ¥ãªãã®ã¯ã©ãããªã¨ä¸å¿µçºèµ·ãã¦Windowsã§Zshãããã¯ä½¿ããªãããªã¨ã°ã°ã£ã¦ã¿ããããããªã¢ããçºè¦ï¼ Babun | A windows shell you will love! ãããBabunã¨ããWindowsç¨ã®ã¿ã¼ããã«ã¢
Mac大æµè¡ãªã®ã§Cygwinã«éè¦ãªããããããªããã©ãä¸å¹´éã®Cygwinä½é¨ãã¾ã¨ãã¦ã¿ããä»å¹´ï¼å¹´ã§ä¸çªä½¿ã£ããã¼ã«ã§æè¬ãã¦ãã Cygwinã¯Windowsç°å¢ã«ãã®ã¾ã¾Linuxã®CUIãã¼ã«ãå°å ¥ã§ããããããã³ãã³ãããã³ãããã«æãå¿ è¦ã¯èããªãã¾ããã åã¯ä»å¹´ï¼å¹´ã®ä¸çªã®åç©«ã¯Cygwinã使ã£ããã¨ã Cygwinã使ããã¨ã§ã¿ã¼ããã«ã使ãããªããããã«ãªã£ããããã¦Macã«ç§»è¡ãã¦ãã¿ã¼ããã«ããããããå°ããªãã¨æããããã«ãªãã¾ããã ã³ãã³ãããã³ãããæ¨ã¦ãã¹ãçç± ã»SSHã³ãã³ãã§ãªã¢ã¼ããµã¼ãã«ã¢ã¯ã»ã¹ãã¦ãæååãããã ã»è²ã»ãã©ã³ããããµãã¦ä½¿ãç©ã«ãªããªãã ã»ã³ãã³ããå°ãªããgrep ããããfindããã cmd.exeããã¦ã¦Minttyã使ããã Cygwinã使ãã¨ãminttyã¨ããPuttyãã¼ã¹ã®ç´ æ´ããããã¿ã¼ããã«ã
Cygwin ã§Windowsãµã¼ãã¹ãä½ãã³ãã³ãcygrunsrvã cygrunsrv ã§Windowsã®ãµã¼ãã¹ãä½ããã¨ãåºæ¥ã¦ä¾¿å©ã§ãã Cygwinã§Windowsãµã¼ãã¹ãä½ããç°¡åã ã£ãã - ãããã°ã§ï¼ Cygwinã®ãµã¼ãã¹ãä¸è¦§ãã cygrunsrv --list ããã¯UACãå¿ è¦ãªã®ã§ã管çè 権éã¤ãã¦å®è¡ãã cygrunsrv ã§ãµã¼ãã¹ä¸æ°ã«åèµ·å å ¨é¨ãåæ¢ãã¦ãèµ·åãã for i in $(cygrunsrv --list); do cygrunsrv -E $i ; cygrunsrv -S $i; ; done cygrunsrv 便å©ããã¦ã¤ãã¤ã 2016-06-24 è¿½è¨ ãµã¼ãã¹ä¸è¦§ã¯ãé ã« cyg ãã¤ããã»ããå¾ã§åãããããã§ãã
Tipsã¨ããã»ã©ã®ãã®ã§ã¯ãªããã©ããã¡ããåå¿é²ã Cygwinã®/homeã¯ãããã©ã«ãã§ã¯ C:\cygwin\home ã«ãªã£ã¦ãã¾ããã©ã ä»ã®ãã¼ã«ã¨ã®é£æºãªã©ã®ãããC:\home ã /home ã«ããã»ããé½åãè¯ããã¨ãããã Windows XP, 2000ã®å ´åã ãã³ã³ããã¼ã«ããã«ãâãã·ã¹ãã ãâã詳細è¨å®ãâãç°å¢å¤æ°ã ãã¦ã¼ã¶ç°å¢å¤æ°ãã¾ãã¯ãã·ã¹ãã ç°å¢å¤æ°ãã§ãæ°è¦ã ãå¤æ°åãã«HOMEããå¤æ°å¤ãã«C:\home Cygwinã C:\cygwin\ ã§ã¯ãªã C:\ ç´ä¸ã«ã¤ã³ã¹ãã¼ã«ãããã¨ãè¦ãã人ããããã©ã ããããã¨C:\ ç´ä¸ã«ã WINDOWS, Program Files, Documents and Settings ãªã©ã®Windowsç³»ãã©ã«ã bin, dev, lib, sbin, usr, var ãªã©ã®Cygwi
Cygwin 2.7ä½ã® awkããããä»ã¾ã§ DOSã® CR/LF ã®ã³ã¼ãã§ãæ£ããå¦çããã¦ãããã®ããããªããªã£ãã å½æ¹ãããã¤ãã® ã·ã§ã«ã¹ã¯ãªããå 㧠awk ã使ã£ã¦ããããåããå¤ã«ãªã£ãã®ã§èª¿ã¹ã¦ã¿ãããã®åå ã ç¾è±¡ã§ã¯ãè¡ã DOSå½¢å¼ãCR/LFã§ã®æ¹è¡ã³ã¼ãã«ãªã£ã¦ããå ´åã«ãawk ã«ã¦ã1è¡åãåºãã¾ãã¯ãæçµãã£ã¼ã«ããåãåºãã¨ãCR/LF (\r+\n) ã® LF(\r)ã¯ã«ãããããã CR(\r)ã¯æ®ã£ãã¾ã¾ã¨ãªãã $ c:/windows/system32/ipconfig | awk '{printf ("%s", $0);}' . . . : ã¡ãã£ã¢ã¯æ¥ç¶ããã¦ãã¾ãã817d1 ä»ã¾ã§ã¯ããã¹ã¦ã®è¡ãç¹ãã£ã¦è¡¨ç¤ºãããã®ã« CR(\r)ãæ®ãã®ã§ãæå¾ã®è¡ããã§ãªããªã£ãã $ c:/windows/system32/ipconfig
Xwindowã¨ã¯ã¦ã£ã³ãã¦ãºã¨ç´ããããååã§ãããã¦ã£ã³ãã¦ãºãOSã®ä¸ã¤ã§ããã®ã«å¯¾ãã¦ãXwindowã¨ã¯ï¼¸ã¨ããåã®ã¦ã£ã³ãã¦ãããªãã¡ã³ã³ãã¥ã¼ã¿ã¼ã®å ¥åºåãå¸ãé¨åã§ããæ´å²çã«ã¯ãã¡ãã®æ¹ãã¯ããã«å¤ããã¦ããã¯ã¹ã®æ¨æºã·ã¹ãã ã§ããXwindowã®ç¹å¾´ã¯ãå ¥åºåï¼ãã¼ãã¼ãã¨è¡¨ç¤ºç»é¢ããã³ãããåããã³ã³ãã¥ã¼ã¿=Xãµã¼ãã¼ï¼ããã¢ããªã±ã¼ã·ã§ã³ããã°ã©ã ãåããã³ã³ãã¥ã¼ã¿-ï¼ï¼ï¼¸ã¯ã©ã¤ã¢ã³ãï¼ã¨æ©è½çã«åãé¢ããã¦ãã¦ãç©ççã«éã£ãå ´æã«ãããã¨ãããã¨ã§ãã ãã¡ããåä¸ã®ã³ã³ãã¥ã¼ã¿ã¼ã§ãã£ã¦ãæ§ãã¾ãããã¤ã¾ãXã¦ã£ã³ãã¦ãä»ãã¦è¦ãã¨ããããã¯ã¼ã¯ãå ¨ãéæã§ããã¨è¨ããã¨ã§ããå ¸åçãªä½¿ãæ¹ã¯ãèªå® ãããªãã£ã¹ã«ããã³ã³ãã¥ã¼ã¿-ãåãããã¨ã§ããã¦ããã¯ã¹ä½¿ç¨è ã«ã¨ã£ã¦ã¯å½ããåã®ãã¨ã§ãããã¦ã£ã³ãã¦ãºã¦ã¼ã¶ã¼ã®ç§ã«ã¨ã£ã¦ã¯ã使ããã¾ã§ã«ãããªãã®è¦å´
ä½ææ¥ï¼2004.03.12 Cygwinã®æ¬å®¶ã®ããã±ã¼ã¸ã«ãgnuplotãå ¥ã£ã¦ãã®ã§ã試ãã¦ã¿ãã [ç·¨é]ããã±ã¼ã¸ã®ç¢ºèª # ã¾ãã¯ç¢ºèªããã å ´æã $ which gnuplot /usr/bin/gnuplot ãã®ãã¡ã¤ã«ãå«ãããã±ã¼ã¸ã¯ï¼ $ cygcheck -f /usr/bin/gnuplot gnuplot-3.8j.0-1 Cygwinã¨gnuplotã®ãã¼ã¸ã§ã³ã $ cygcheck -cd gnuplot cygwin Cygwin Package Information Package Version cygwin 1.5.7-1 gnuplot 3.8j.0-1 â [ç·¨é]'dumb' ã¸ã®åºå # ãã§ãã£ã¦ãã¾ã㯠testã Xãèµ·åãããç°å¢å¤æ°DISPLAYãè¨å®ããªãã¨ãã $ gnuplot G N U P L O T Versi
ã¯ããã« â è¦ä»¶: Windows 7ã®ãã¿ã¹ã¯ãã¼ã«ãã®ããã°ã©ã ã表示ãããã§ã¿ã¹ã¯ãã¼ã«ãã³æ¢ãããã®ãèæ ®ãã¦, cygwinç¨ã®ç«¯æ«minttyãã ãã¼ã«ã«ã®screen ãèµ·åããã â» å¾æ¥ã ã¨batãã¡ã¤ã«çµç±ãã·ã§ã«ã¹ã¯ãªããçµç±ã§minttyã¨screenãèµ·åããã®ã楽ã§ããã©, Windows 7ã®æ©è½çãªã¿ã¹ã¯ãã¼ã®æ©è½ã使ããããã«ãªãã¨ä¾¿å©ã§ãã, ã¨ãã話ã§ã ãåéä¸ãbatãã¡ã¤ã«ã ã·ã§ã«ã¹ã¯ãªããã®æ¹ãããæè»ã«ç´°ããè¨å®ãã§ããã®ã§, ãã¿ã¹ã¯ãã¼ã«ãã®ããã°ã©ã ã表示ãããã§ããããã¡ã¤ã«ãæå®ãã¦åããæ¹æ³ãç¥ãããã§ã(AppIDãå²ãå½ã¦ãï¼) â æ¹æ³1 ãã¿ã¹ã¯ãã¼ã«ãã®ããã°ã©ã ã表示ãããã®ã·ã§ã¼ãã«ããã®ãªãã·ã§ã³å¼æ°ã«æå®ãã â ã¾ãã¯, minttyã®èµ·åãªãã·ã§ã³ãæå®ã, bash (ããã㯠zsh)çµç±ã§ scr
ã¨ããäºæ ã«ãããCygwin ãå¿ è¦ã«ãªã£ãããã¤ã³ã¹ãã¼ã«ãããã¨ã«ã â Cygwin ã®ã¤ã³ã¹ãã¼ã« ã¾ããå ¬å¼ãµã¤ããã setup.exe ãè½ã¨ãã¦ãã¾ãã Cygwin http://www.cygwin.com/ éä¸ã§ããã±ã¼ã¸ã®é¸æç»é¢ãåºã¦ãã¾ãã wget, subversion ã追å ã§å ¥ãã¾ãã â apt-cyg ã®ã¤ã³ã¹ãã¼ã« Cygwin ã®ã¤ã³ã¹ãã¼ã«ãçµäºããããããã±ã¼ã¸ç®¡çãã¼ã«ãå°å ¥ãã¾ãã æ®é㯠setup.exe ã§å¿ è¦ã«å¿ãã¦ããã±ã¼ã¸ã追å ãã¦ããã®ã§ããããããªã ãããã¨ãã¦ããã¾ããã svn ã¯æ¢ã«å°å ¥ãã¦ããã®ã§ã以ä¸ã®ã³ãã³ãã§ã¤ã³ã¹ãã¼ã«ã§ãã¾ãã svn --force export http://apt-cyg.googlecode.com/svn/trunk/ /bin/ chmod +x /bin/apt-cyg
apt-cyg ãã¤ã³ã¹ãã¼ã«ãããã¨ã§ããã±ã¼ã¸ã¤ã³ã¹ãã¼ã«ãCUIã§è¡ããã¨ãã§ããããã«ãªãã¾ãã apt-cyg ããã¸ã§ã¯ã http://code.google.com/p/apt-cyg/ â ã¤ã³ã¹ãã¼ã«æé : svn âforce export http://apt-cyg.googlecode.com/svn/trunk/ /usr/local/bin/ chmod +x /usr/local/bin/apt-cyg ããã±ã¼ã¸ãã¤ã³ã¹ãã¼ã«ããã apt-cyg install <package names> ããã±ã¼ã¸ãåé¤ããã apt-cyg remove <package names> setup.ini ãæ´æ°ããã apt-cyg update ã¤ã³ã¹ãã¼ã«ããã¦ããããã±ã¼ã¸ã®ä¸è¦§ã表示ããã apt-cyg show ãã¿ã¼ã³(è¤æ°å¯)ã«ä¸è´ããããã±ã¼
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}