IBM Developer is your one-stop location for getting hands-on training and learning in-demand skills on relevant technologies such as generative AI, data science, AI, and open source.
ãããã¤ã³ã¹ãã¼ã«ä»£è¡¨ã®ã©ã¤ãããã¯ããã°
Linuxãªã©ãå©ç¨ããä¸ã§ããããã¯ã©ããã£ããå®ç¾ã§ããã®ã ãããã¨æããã¨ã¯æ°ç¥ããªããæ¬é£è¼ã§ã¯ãã¦ã¼ã¶ã¼ãã²ãã±ãã«ééããã§ãããåé¡ã¨ããã®è§£æ±ºæ¹æ³ã解説ãããä¸ç´è ã«ã¯æ°ããªçºè¦ããåå¿è ã«ã¯ä¸ç´è ã¸ã®éã®æå¼ãã¨ãªãã ããã ãã¡ã¤ã«ããã£ã¬ã¯ããªãããã¯ã¢ããï¼åæããããã®ãã¼ã«ã¯å¹¾ã¤ãåå¨ãã¦ãã¾ãããrsyncã¯ã¨ããã大ããªäººæ°ãèªã£ã¦ããã¨ãã£ã¦ããã§ããããå¤æ´åãæ¤åºãã¦å·®åã®ã¿ã転éãããã¨ã§ããããã¯ã¼ã¯çµç±ã§ãå¹ççã«ããã¯ã¢ããï¼åæãè¡ããç¹ããsshãªã©ã®ãªã¢ã¼ãã·ã§ã«çµç±ã§ã®å©ç¨ãå¯è½ãªç¹ãªã©ãæ©è½ã®æ´ç·´åº¦ã¯ãããã«ç»å ´ãã10年以ä¸ãã£ã¦ããã ãã®ãã¨ã¯ããã¾ããããã¯ã¢ããããã©ã¼ãªã³ã°ãªã©ã®ç¨éã§ããã°ãåºæ¬çã«ã¯ã³ãã¼å ã¨ã³ãã¼å ã§ããããªéãããçºçããªãã¯ãã§ããã¡ã¤ã«ã®ç¸éé¨åã ãã転éããrsyncã¯å¹ççã«æ©è½ãã¾ãã ãã
This document is a collection of Unix/Linux/BSD commands and tasks which are useful for IT work or for advanced users. This is a practical guide with concise explanations, however the reader is supposed to know what s/he is doing. Unix Toolbox revision 14.5 The latest version of this document can be found at http://cb.vu/unixtoolbox.xhtml. Replace .xhtml on the link with .pdf for the PDF version a
perl - the best friend of find(1) 404 Blog Not Foundãè¦ã¦ã¦ãã·ã§ã«ã«ã¤ãã¦æ¸ãã¦ã¿ãããªãã¾ããã ä¸åº¦ãLinuxãå¦ã¶ããã®10åã®å¹æçãªæ¹æ³ã§è¨åããã·ã§ã«ãè¦ããçµç·¯ã詳ããæ¸ãã¦ã¿ããã£ãã®ã§ã ãã ãã¨æ¸ãã¦ã¿ãã ååæ¸ããå 容ããã¡ãã é ã追ã£ã¦è§£èª¬ãã¦ããã¾ãã ã·ã§ã«è¦ããçµç·¯ã 第ä¸æ®µéã¨ãã¦ã¯ãã¤ãã©ã¤ã³ãè¦ãã | 第äºæ®µéã¯sort ã grep ãªã©ããã¤ãã©ã¤ã³ã§å¦çããã®ã«ä¾¿å©ãªã³ãã³ããè¦ããã 第ä¸æ®µéã§ls | awk '{print $2}' ã¨ããã£ã¦ã¿ã¦ãã¹ãã¼ã¹ã§åºåãããï¼åç®ã表示ãããäºã«æåãã¦ã¿ãã 第å段éã§ls | awk '{print "ls "$2}'ã§ã³ãã³ããä½ã£ã¦ã¿ã¦ls | awk '{print "ls "$2}'|sh ã§ã³ãã³ããã°ã¼ã£ã¨å¦çãã¦ãããäº
screenã¨ãããã®ããã便å©ãªã¢ããªã±ã¼ã·ã§ã³ãããã¾ããä¸è¨åçã®ããã«ã1ã¤ã®ã¿ã¼ããã«å ã§ãä»®æ³çã«è¤æ°ã®ç«¯æ«ãèµ·åããããã¨ãã§ãããã®ã§ãã ãã æ £ããã¾ã§ã¯å°ã 使ãæ¹ãã¨ã£ã¤ãã¥ããã¨ãã話ãèãã¾ãã®ã§ãä»åã¯screenãåºæ¬çã«ä½¿ããã¾ã§ã®ãã¥ã¼ããªã¢ã«ãç´¹ä»ãããã¨æãã¾ãã ã©ããªãã¨ãã§ããã®ï¼ è¤æ°ã®ä»®æ³ç«¯æ«ããããã¨ã©ããã£ãã¡ãªãããããã®ã§ããããï¼å®éã«èªåã¯screenã使ãã¾ã§ã¯ã¿ã¼ããã«ãè¤æ°èµ·åãããDesktopä¸ã¯ã¿ã¼ããã«ã ããã«ãªã£ã¦ãã¾ããã å®éã¯ããã§ãåé¡ã¯èµ·ããªãã®ã§ãããå人çã«ã¯ãã¼ã«ã«PCå´ã§ã¯æ¥µåèµ·åãã¦ããã¢ããªã±ã¼ã·ã§ã³ãå°ãªããããã¨æã£ã¦ãããããscreenã使ãããã«ãªãã¾ããã ãã ããã ãã§ããã°WindowsãªãPoderosa,MacãªãiTerm,GnomeãªãGnome端æ«ãããã®ã§ãããscr
以åã«ãLinuxã®å種ã³ãã³ãã®ãã¼ãã·ã¼ããã¨ããã®ãç´¹ä»ãã¾ããããæ¥æ¬èªè¨³ãããã¼ã¸ã§ã³ãæ°ãã«è¿½å ãããããã§ãã以åã®è±èªçã§ãããªã便å©ã ã£ãã®ã§ããããã§ããã«ä¾¿å©ã«ãªãã¾ããã ãã¦ã³ãã¼ãã¯ä»¥ä¸ããã Unix/Linuxã³ãã³ããªãã¡ã¬ã³ã¹ - ãããã¼ ä¿ç®¡åº« http://www.yotabanana.com/hiki/ja/?fwunixref PDFå½¢å¼ã®ãã¡ã¤ã«ã¨ãODTå½¢å¼ã®ãã¡ã¤ã«ã®2種é¡ããããå ã®ãã¡ã¤ã«ã¨åãã¯ãªã¨ã¤ãã£ãã³ã¢ã³ãºã©ã¤ã»ã³ã¹ã§æä¾ããã¦ãã¾ãã ãã¨ãmanã³ãã³ã使ããã¨ããæè¦ãããã®ã§ãããããããä½ã®ã³ãã³ããããããããªãã¨ãããã以åã®ç¶æ ã®å ´åã¯ãã¼ãã·ã¼ããããã¨å½¹ç«ã¤ãããã¡ãã£ã¨é²æ©ããã¨ãã®ãããã®ã³ãã³ããªãã¡ã¬ã³ã¹ãã¾ã¨ãããµã¤ãã便å©ã«æãã¦ããããã«ãªãã Linuxã³ãã³ããªãã¡ã¬ã³ã¹ http://
ãã¾ãç¥ããã¦ããªãããGNUã®xargsã³ãã³ãã«ã¯ã ããã»ã¹ã®æ大æ°ãè¨å®ã§ãããªãã·ã§ã³ã¨ããã®ãç¨æããã¦ããã ã³ã¬ã使ã£ã¦ãããã»ã¹ã並åå®è¡ããã¦ã¿ããã xargs --max-procs=MAX-PROCS -P MAX-PROCS command MAX-PROCSã«æ°åãæå®ããã¨ã æ大ã§ããã®æ°ã ã command ããã»ã¹ãçæããã ããã©ã«ãã¯ã1ããã»ã¹ã ãã«ãªã£ã¦ããã ããã¤ãä¾ã交ãã¦èª¬æããã ãµã³ãã«ã¨ãã¦ã以ä¸ã®ããã«URLãè¡ãã¨ã«è¨è¿°ããããã¡ã¤ã«ãå ã« curlãxargsã§ä¸¦åå®è¡ãã¦ãHTMLãã¼ã¿ãåå¾ãã¦ã¿ããã $ cat ./url_list.txt http://www.google.co.jp/ http://www.yahoo.co.jp/ http://b.hatena.ne.jp/ ã¾ããæ®éã«xargsã使ã£ã¦c
ping IP ã¬ãã«æ¥ç¶ã®ç¢ºèª arp arp ãã¼ãã«ã®è¨å®/表示 route IPã«ã¼ãã£ã³ã°ãã¼ãã«ã®è¨å®/表示 ntop top ã³ãã³ãã®ããã«ãããã¯ã¼ã¯å©ç¨çã表示ãããã¾ãï¼Web ãã©ã¦ã¶ãé ãã¦ãã¼ã¿ã®é²è¦§ãå¯è½ã netstat TCP/IP ã«é¢ããç·åçãªæ å ±ãåºåããã ã¤ã³ã¿ã¼ãããæ¥ç¶ã®æ å ± ã½ã±ããã®æ å ± ãããã³ã«å¥ã®çµ±è¨æ å ± ãããã¯ã¼ã¯ããã¤ã¹ãã¨ã®çµ±è¨æ å ± ã«ã¼ãã£ã³ã°æ å ±ã¨ãã®çµ±è¨æ å ± traceroute ãã¹ãéã®çµè·¯æ å ±ãåºåãã dsniff ãã¹ã¯ã¼ãã¹ãããã¡ãä¾µå ¥ãã¹ãã«æç¨ãªã¹ãããã£ã³ã°ã¦ã¼ãã£ãªãã£ã http://www.monkey.org/~dugsong/dsniff/ tcpdump ãã±ããæ å ±ã®ãã³ã www.tcpdump.org é¢é£ãã¼ã« ngrep tcpdumpã®åºåãã¡ã¤ã«ããç¹å®ã®æ¡ä»¶ã«ãã£ãã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}