ã¯ããã« install(1)ã¨ãããcpã¨mkdirã¨chmodãåæã«è¡ããããªä¾¿å©ã³ãã³ãããããã¨ãç¥ãã¾ããã (å¿ãã¡ããã¾ããããä½ãã®Makefileãè¦ã¦ããã¨ãã«åå¨ã«æ°ä»ãã¾ãã) ããã使ãã¨ããããã¸ã§ãã³ã°ãªã©ã®ã¹ã¯ãªãããç°¡æ½ã«æ¸ããããã«ãªãããã§ãã â¦â¦ã¨ããããã§ä½¿ãæ¹ã®ã¡ã¢ãã¦ãã¾ã¨ãã¦ã¿ã¾ãã manã®å 容ã¾ã¨ã installã¯BSDçã¨GNUçãããããã§ãããããã§ã¯GNUçã«ã¤ãã¦æ¸ãã¾ãã BSDçã§ã¯ããã¤ãã®ãªãã·ã§ã³ã使ç¨ã§ãã¾ããã(-D ã¯ãªãã£ãã¨æã) ã¡ãªã¿ã«macã®å ´åã¯æ¨æºã§BSDçã®installãå ¥ã£ã¦ãããCoreutilsãå ¥ããã¨GNUçã®installã使ããããã«ãªãã¾ãã 4種é¡ã®ä½¿ãæ¹ install [OPTION]... [-T] SOURCE DEST SOURCEãDESTã«ã³ãã¼ããã-Tã
ããæè¿ã沢山ã·ã§ã«ã¹ã¯ãªãããæ¸ãããã«ãªãã¾ããã å ã ãã¾ãã·ã§ã«ã¹ã¯ãªãããæ¸ãããã¨ç¡ãã£ãã®ã§ãè²ã ã¨åå¼·ãã¤ã¤æ¸ãã¦ãã®ã§ããã ä»ã®ããã°ã©ãã³ã°è¨èªã¨ã¯ã¡ãã£ã¨éã£ã¦ç¬ç¹ãªã¯ã»ã¨ããããçºè¦ã®åº¦ã«ããã¼ï¼ã£ã¦ãªããã¨ã沢山ãã£ã¦æ¥½ããã§ãã ãããªããã§ãæè¿å¦ãã ãåèã«ããä¸ã§ç¹ã«æåããã·ã§ã«ã®ä¸æãæ¸ãæ¹ãã¾ã¨ãã¦ã¿ã¾ãã ãã£ã¨ã¾ã ç¥ããªããã¨ã¨ããã£ã¨ä¸æãããæ¹æ³ãªããã沢山è¦ã¤ãããããªã®ã§ã ãã£ã¨ããããæ¹ãããï¼ã£ã¦æ¹ã¯ã³ã¡ã³ããã ãã ä½ãããªã : (ã³ãã³)ã³ãã³ã ã·ã§ã«ãæ¸ãã¦ããæã«é常ã«æ¬²ããã£ãã³ãã³ããããï¼ä½ãããªãï¼ : ã¨ããã³ãã³ã(ï¼)ãå©ç¨ããã¨ã**ä½ãããã«çµäºã¹ãã¼ã¿ã¹0(ã¤ã¾ãæ£å¸¸çµäº)**ãè¿ãã¾ãã ãããæ§ã ãªäºã«ä½¿ããä¸è½ã³ãã³ãã§ãããã«ãã£ã¦é¢åãªã¨ã©ã¼å¦çãç°¡æ½ã«ã§ãããã å ¥åãåºåã®ãªãã¤ã¬ã¯ã
cdã®å¼æ°ãç¸å¯¾ãã¹ã®ã¾ã¾ã³ãã³ããã¹ããªã«æ®ã£ã¦ä¾¿å©ãªä¾ãæãã¤ããªãã®ã§ã絶対ãã¹ã§ã³ãã³ããã¹ããªã«æ®ãããã«ããã å ·ä½çã«ã¯ã以ä¸ã®ã·ã§ã«é¢æ°ã.bashrcã«æ¸ãã if [[ -n "$PS1" ]]; then cd() { command cd "$@" local s=$? if [[ ($s -eq 0) && (${#FUNCNAME[*]} -eq 1) ]]; then history -s cd $(printf "%q" "$PWD") fi return $s } fi ããã¤ãã®éè¦ãªãã¤ã³ãã以ä¸ã«è¨ãã cdã®å®ç¾©ãä¸æ¸ããã¦ãããããã®ãããªå ´åä¸ã§æ®éã«cdãå¼ã¶ã¨å帰ãã¦ãã¾ãããcommandçµã¿è¾¼ã¿ã³ãã³ãã使ãã "$@"ã®ä»£ããã«"$1"ã使ããã¨ã¯ã§ããªããcdãå¼æ°ãªãã§å¼ãã ã¨ããã¼ã ãã£ã¬ã¯ããªã«ç§»åããªããªã£ã¦ãã¾ãã cdã®
pecoã¨ããã¤ã³ã¿ã©ã¯ãã£ãã«å ¥åããã£ã«ã¿ãã¦åºåããã³ãã³ãããã£ã¦ã使ãå§ãã¦ããã·ã§ã«ã®æä½æ¹æ³ãå¤§å¹ ã«ããããã ãã¶ã©ã¤ããã§ã³ã¸ã³ã°ã ã£ãã æè¿ãã®ã¸ããæµè¡ã£ã¦ãã®ã§ãããè¨äºãããã©ããã£ãããªã®ã§åã使ãéãç´¹ä»ãããã¨æãã pecoãzshã§ä½¿ã 1. peco ghq ghqã使ã£ããã¼ã«ã«ãªãã¸ããªã®çµ±ä¸çã»å¹ççãªç®¡çã«ã¤ãã¦ã®ãã¨ã åã$GOPATHã¯$HOMEã«ãã¦ãã¦ãä»ã®ã¨ããå¥ã«å°ããã¨ã¯ãªãã go getãããghq getããããã¦ç¾ãããã£ã¬ã¯ããªåã£ãä¸ã§ãpecoã«å²ãå½ã¦ã¦ãããC-sã§ããç®çã®ãã£ã¬ã¯ããªéããããã«ãã¦ããã®ã§ããã¡ããã¡ãã½ã¼ã¹ç®¡çã楽ã«ãªã£ãã function peco-src() { local selected_dir=$(ghq list | peco --query "$LBUFFER") if
追è¨2009/10/16: ããã¤ãææãåãã¾ããããlinuxã§ã£ã¦ãããzshã«çµæ§ä¾åãã¦ãã¾ã£ã¦ãã¾ãã ã¤ãèªåç°å¢ã«ã¤ãã¦ã°ã£ããèããæªãæãï½ æ¸ããã¨æã£ãçºç«¯ã "disownã³ãã³ã - Do You PHP ã¯ã¦ãª" ãã¨ã³ãã³ãã©ã¤ã³ã®TIPSã«é¢ãã¦ã¯ãäºæ³å¤ãªäººãäºæ³å¤ãªäºãç¥ããªããã®ã ï¼ã¨é©ãäºãããã¾ãã disownãç¥ããªãã£ãã£ã¦ãã¨ã¯ããã®ã¸ããããããããç¥ããã¦ãªããã?ã¨ããããã¯ã°ã©ã¦ã³ãå¦çã«é¢ããè±ç¥èï¼ï¼ãã¾ãï¼ãããã¤ãã ç¥ã£ã¦ããããããªããã ãã©ãããããã®ãéè¦ããã£ã¦ããã£ããå£ã«åºãã¦è¨ã£ã¦ã¿ã¦ããã®ã¯å¤§äºã ãã! 1. ããã£ã±ãªããdisownããç¶æ ã§ããã¯ã°ã©ã¦ã³ãå¦çã«ããã&|ã ãã¡ãã¡ããã¯ã°ã©ã¦ã³ãå¦çã«ããå¾ã«disownããã£ã¦2度æéãå«ãªäººã«ã disownã«ã¤ãã¦ã¯ä¸è¨ã®è¨äºåç §ã % p
æ¨æ¥ç¥ãã¾ããï½ disownã¯ããã¯ã°ã©ã¦ã³ãããã»ã¹ããã¼ã¢ã³åããbashã®çµã¿è¾¼ã¿ã³ãã³ãã§ãå¼æ°ã«"%"ï¼ã¸ã§ãçªå·ãæå®ãã¾ãã 以ä¸ã使ç¨ä¾ã $ cat tmp.php <?php while (true) { sleep(10); file_put_contents('/tmp/tmp.php.log', date('YmdHis'). PHP_EOL, FILE_APPEND|FILE_TEXT); } $ php tmp.php & [1] 31993 $ jobs [1]+ Running php tmp.php & $ disown %1 $ jobs $ããã§ã¿ã¼ããã«ãçµäºããã¦ã大ä¸å¤«ã å度ã¿ã¼ããã«ã§ç¹ãã¦ãpstree確èªãã¦ã¿ãã¨ãinitããã»ã¹ã®åããã»ã¹ã«ãªã£ã¦ããã®ãåããã¾ãã init(1)ââ¬âatd(1819) : ââmingett
æãããã°ã¢ã¦ãå¾ãã³ãã³ããå®è¡ãç¶ãããå ´åãã¨ããã¨ã³ããªã§"nohup"ã³ãã³ãã®ä½¿ãæ¹ãæ¸ããã®ã§ãããnohupãå¿ããæã¯ã©ãããã°ããã®ããã¨ãã話ã æå®ããããã¯ã°ã©ã¦ã³ãããã»ã¹ããã¼ã¢ã³åããããã«disownã¨ããbashã®çµã¿è¾¼ã¿ã³ãã³ããããã¾ãã #!/bin/sh while :; do sleep 5 done ãããã«ä¸è¨ã®ãããªã¹ã¯ãªãããç¨æãã¦ã"&"ä»ã§å®è¡ãã¾ãã $ sh test.sh & [1] 2692 $ jobs [1]+ å®è¡ä¸ sh test.sh &次ã«ãdisownã³ãã³ããå®è¡ãã¾ããå¼æ°ã«ã¯"%"+ã¸ã§ãçªå·ãæå®ãã¾ãã(ä¸è¨ä¾ã ã¨ã¸ã§ãçªå·ã¯"1") $ disown %1 $ jobs $ ãã®éããpsã³ãã³ãã®çµæã¯â $ ps -edf ã»ã»ã»çç¥ã»ã»ã» nami 2692 1708 0 02:25 pts
ã§ããã°ã·ã§ã«ã¹ã¯ãªãããªãã¦æ¸ããããªããã ãã©ï¼ã¾ã ã¾ã æ¸ãæ©ä¼ã¯å¤ãï¼ã·ã§ã«è¸ãã¯ã³ã©ã¤ãã¼ã®ãããªåã£ããã¨ã§ã¯ãªãï¼ä»ã®ã²ã¨ã使ããããã·ã§ã«ã¹ã¯ãªãããæ¸ãããã«èªåãå®è·µãã¦ãããã¨ãã¾ã¨ãã¦ããï¼ ãã«ãã¡ãã»ã¼ã¸ æ¸ãã¦ãã·ã§ã«ã¹ã¯ãªããã使ãæ¨ã¦ã§ã¯ãªãä½åº¦ã使ããã®ã§ããå ´åã¯ï¼æ¬ä½ãæ¸ãå§ããåã«ï¼ãã®ã¹ã¯ãªããã®ä½¿ãæ¹ã表示ããusageé¢æ°ãæ¸ãã¦ãã¾ãï¼ ãããæ¸ãã¦ããã¨ï¼å¾ã ãã¼ã ã¸å ±æããããããªãï¼ã¨ããããusageè¦ã¦ãã ããã¨è¨ããï¼ã¾ãï¼ãããããæ¸ããã¨ã§ï¼åãªãã·ã§ã«ã¹ã¯ãªããã§ãã£ã¦ãèªåã®ä¸ã§åä½ãæ´çãã¦ããæ¸ãå§ãããã¨ãã§ããï¼é¢æ°ã¨ãã¦æ¸ãã®ã¯ï¼usageã表示ãã¦ãããã¨ããå ´é¢ãããã¤ãããï¼ä½¿ãåããã¨ãã§ããããï¼ ä»¥ä¸ã®ããã«æ¸ãï¼ function usage { cat <<EOF $(basename ${0})
ã¯ããã« ãã®ã¬ã¤ãã§ã¯ãã¯ãã㦠Zsh ã使ã人ã Zsh ã®ä¾¿å©ãªä½¿ãæ¹ãç¥ããªã人ã«åãã¦ãããã¤ãã®ä¾¿å©ãªè¨å®ã¨æä½æ¹æ³ãç´¹ä»ãã¾ããã¾ãã Zsh ã«ã¤ãã¦ã®çåãç´ æ©ã解決ã§ãããããããã¥ã¢ã«ã®èª¿ã¹æ¹ãä»ã®ããã¥ã¡ã³ãã¸ã®ãªã³ã¯ãçãè¾¼ãã§ããã¾ãã ãã®ã¬ã¤ãã§ã«ãã¼ãããã¦ããªãè¨å®ãåãããããããã¥ã¡ã³ãããåç¥ã§ãããããã²ç·¨éãªã¯ã¨ã¹ããã³ã¡ã³ãã§ãç¥ãããã ããã è¨å®ãã¡ã¤ã« ããã§ã¯ä¸»ã«æ®æ®µã®ãã¼å ¥åæ°ãå¤§å¹ ã«æ¸ããããããªè¨å®ãç´¹ä»ãã¾ãã .zshrc ~/.zshrc 㯠Zsh ã®ã¤ã³ã¿ã©ã¯ãã£ãã·ã§ã«ï¼ã¦ã¼ã¶ã¼ãã³ãã³ããå ¥åããç»é¢ï¼ãèµ·åããéã«èªã¿è¾¼ã¾ããè¨å®ãã¡ã¤ã«ã§ãã Zsh ã¹ã¯ãªãããå®è¡ãããã zsh -c 'command...' ã§ã³ãã³ããå®è¡ãããããã¨ãã«ã¯èªã¿è¾¼ã¾ãã¾ããããã®ãã¡ã¤ã«ã«ã¯ä¸»ã« Zsh ã®æä½ã«é¢ã
ç¹ã«ã·ãªã¼ãºåãç®è«ãããã§ã¯ãªãã§ããã å®å ¨ã«ç解ãã¦ããããã§ã¯ãªããã©ã使ããã ã¿ãããªãã®ã£ã¦ããã¾ãããã ããããã®ã¯ãããªãã®ã§ãã£ããã¨ç解ããã! ã¨ãããã¼ãã§ããã¾ãã ä»åã¯SSHã®ä»çµã¿ã«ã¤ãã¦æ¸ãã¦ãããã¨æãã¾ãã åèè¨äº æ¦è¦ ~SSHã¨ã¯~ SSHã®ä»çµã¿ãç解ããããã®ç¨èª éµäº¤ææ¹å¼ã®ä»çµã¿ã¨å®éã®ã³ãã³ã 便å©ãªãªãã·ã§ã³ ã¾ã¨ã ãã®ãããªæµãã§æ¸ãã¦ããã¾ãã åèè¨äº ãã¡ããåèã«ãã¾ãã(ã¶ã£ã¡ããããã ãè¦ãã°ãªãã±ã¼ãªæ°ãããã) å ¬ééµæå·ã«ã¤ãã¦ç解ã足ãã¦ããªãã£ãã®ã§ã¡ã¢ - ãããããã¨ã éµäº¤ææ¹å¼ã«ããèªè¨¼ æ¦è¦ ~SSHã¨ã¯~ SSHã¯Secure Shellã®ç¥ã§ããããã·ã³ã«å¥ã®ãã·ã³ããã¢ã¯ã»ã¹ , ãã°ã¤ã³ããã¨ããã¤ã¡ã¼ã¸ã§ãã 主ã«ãµã¼ãã¼(ãªã¢ã¼ã)ã«ã¯ã©ã¤ã¢ã³ã(ãã¼ã«ã«)ããã¢ã¯ã»ã¹ããã¨ãã«ä½¿ã
ç§ã¯ã·ã§ã«ã¹ã¯ãªããã®å¤§ãã¡ã³ã§ãä»äººã®ã¹ã¯ãªããããé¢ç½ãæ¹æ³ãå¦ã¶ã®ã大好ãã ãæè¿ãSSHãµã¼ãã®2è¦ç´ èªè¨¼ãç°¡åã«ããããã®authy-sshã¹ã¯ãªããã«åºä¼ã£ãããã®ã¹ã¯ãªãã群ãè¦ã¾ããã¦ãã¦ãã¿ããªã¨å ±æãããããããã®ã¯ã¼ã«ãªãã¨ãè¦ã¤ããã åºåã«è²ä»ããã åºåæååããæåããæã¯ç·ã«ã失æããæã¯èµ¤ã«ãè¦åã¯é»è²ã«è²ã¥ããããã¨æããã¨ã¯ããããããã ããã NORMAL=$(tput sgr0) GREEN=$(tput setaf 2; tput bold) YELLOW=$(tput setaf 3) RED=$(tput setaf 1) function red() { echo -e "$RED$*$NORMAL" } function green() { echo -e "$GREEN$*$NORMAL" } function yellow() { e
ã³ãã³ããã¢ã³ã¤ã³ã¹ãã¼ã«ããããæ ¼ç´å ´æãå¤æ´ããã¨ããä¸æçã« command not found ãªç¶æ ã«ãªã£ã¦ãã¾ãã®ã§ãshellãä¿æãã¦ãã hash ãã¼ãã«ãåæ§ç¯ãã¦ãããå¿ è¦ãããã ã¦ã£ãããrehashã¨ããã³ãã³ããããããã ã¨æã£ã¦ããéã£ã¦ãã ç´ ç´ã« Google å çã«èãã¦ã¿ãã¨ããã >*Z.K. : > I was trying to install gEda which installed fine from their CD, but > after setting the path variables I ran rehash as the instructions told > me and I get this error: > > bash: rehash: command not found > > Where is the reha
AboutFeatures Team Screenshots Sponsors NewsBlog Release Notes Press Getting GrmlDownload Packages & Files DocumentationDocumentation FAQ Wiki Zsh DevelopmentReporting Bugs Known Bugs Beta Versions Contribute Get in touchContact Introduction / grml-zsh-refcard / grmlzshrc(5) / grml-zsh-config / zsh-lovers / Resources IntroductionOne of the main features of the grml system is the zsh (Z shell). The
ããã©ã«ãã ã¨è²ãã¤ããªããããªã®ã§ï½¤GNU lsãã¤ã³ã¹ãã¼ã«ãã。 GNUã®åºæ¬çãªãã¼ã«ãã¾ã¨ããããããã±ã¼ã¸ããã¦ã³ãã¼ããã¦ï½¤ã¤ã³ã¹ãã¼ã«ï½¡ http://www.gnu.org/software/coreutils/ ls ã®ãªãã·ã§ã³ã«ï½¤--color=auto ãã¤ããã°è²ãã¤ã。 zshã®è£å®ãªã¹ããåãããã«è²ãã¤ããå ´åã¯ï½¤ä»¥ä¸ã®è¨å®ã.zshrc ã«ãã。 zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}via http://www.ex-machina.jp/zsh/index.cgi?FAQ%40zsh%A5%B9%A5%EC#l2
ããã°ã©ã ã®ç¨®é¡ã«ãã£ã¦ã¯ããã®ã¾ã¾å®è¡ã§ãããã®ã¨ãå®è¡ã§ããããã«ããããã«ããã«ãããå¿ è¦ãªãã®ã¨ãããã¾ããCãªã©ã®ã³ã³ãã¤ã«ãå¿ è¦ãªè¨èªã§æ¸ãããããã°ã©ã ã¯å½ç¶ãã«ããå¿ è¦ã§ãããã³ã³ãã¤ã«ãä¸è¦ãªè¨èªã§ãã£ã¦ããã¤ã³ã¹ãã¼ã©ããã±ã¼ã¸ãä½ãã¨ãããã«ãä½æ¥ãå¿ è¦ãªå ´åã¯ããã¾ãã ãã«ãä½æ¥ã®èªååã®ããã®ãã¼ã«ã¨ãã¦makeãªã©ãããã¾ãããããã¾ã§æ¬æ ¼çãªäºãããå¿ è¦ããªãå ´åã¯ãã·ã§ã«ã¹ã¯ãªããã§ããã«ãã¹ã¯ãªããããä½ãã®ãæ軽ã§ããããã§ãããã®è¨äºã§ã¯ããã®ãããªå ´åã«å½¹ç«ã¤ã·ã§ã«ã¹ã¯ãªããã®ãã¯ããã¯ã4ã¤ãç´¹ä»ãã¾ãã ã¨ã©ã¼ã®æ°ä»ããããã¨ãããã°ã®ãããããé«ãã ã¡ãã»ã¼ã¸ã«è²ãä»ãã ã·ã§ã«é¢æ°ãã©ã¤ãã©ãªã«ãã ä¸æçã«ä½æ¥ãã£ã¬ã¯ããªã®ä¸ã«å ¥ã ã¨ã©ã¼ã®æ°ä»ããããã¨ãããã°ã®ãããããé«ãã ã¯ããã«ç´¹ä»ãããã¯ããã¯ã¯åé¡ãçºçããæã«æ°ã¥ãã
ããå¿ããããã¡ã¢ã ä»äºã§å¤ãUNIXã使ãã®ã§ãã©ããã¦ãæã'more'ã¨è¦ãã¦ãã¾ã£ã¦ããããä»æ¹ããªãã $ alias more='less' ããã¯ã¢ããããã¨ãã®ã·ã§ã«ã®é¢æ°ãå人çã«ã¯ä¾¿å©ã $ backup(){ cp -pr $1{,.`date +%Y-%m-%dT%H:%M:%S`}; } $ backup a.c $ ls a.c* a.c a.c.2012-09-17T00:46:46 空ãã£ã¬ã¯ããªãåé¤ããã¯ã³ã©ã¤ãã¼ããã aliasã«ããã ãã $ alias rmdir_r='find . -depth -type d | xargs rmdir 2> /dev/null' 空ãã£ã¬ã¯ããªãåé¤ããã¯ã³ã©ã¤ãã¼ãLinuxã®findutilsãªããã£ã¡ã®æ¹ãããã®ãããããªãã $ alias rmdir_r='find . -type d -empt
Most of us default to wget, curl, netcat and others when in need of network data from the commandline, not knowing, or perhaps forgetting, that bash often provides the support that we need using redirection from /dev/proto/host/port. For example: $ cat </dev/tcp/time.nist.gov/13 55103 09-09-29 17:58:55 50 0 0 0.0 UTC(NIST) * Reads the time in Daytime Protocol (RFC-867) from the NIST Internet Time
ã©ã³ãã³ã°
ã¡ã³ããã³ã¹
ãç¥ãã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}