Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?
wget ã³ãã³ã 2017/02/20 HTTPã¢ã¯ã»ã¹ããã¦ã³ã³ãã³ãããã¡ã¤ã«ã«ä¿åããã³ãã³ãã curlã§ãåããããªãã¨ãã§ãããã curlã¨éã£ã¦ãªã³ã¯ããã©ããªããå帰çã«ããããã®ãã¡ã¤ã«ããã¦ã³ãã¼ããããã¨ãã§ããã ãã¼ã«ã«ã«ä¿åããã¨ãã®ãã¡ã¤ã«åã¯ã1ãã¡ã¤ã«ã ãã®ãã¦ã³ãã¼ãã®å ´åã¯ã URLãããã¡ã¤ã³åããã£ã¬ã¯ããªåãåã£ããã®ã«ãªããå帰çã«ãã¦ã³ãã¼ãããå ´åã¯ãã¡ã¤ã³åã®ãã£ã¬ã¯ããªãä½æãããã GNU Wget Manual http://www.gnu.org/software/wget/manual/wget.html GNU Wget 1.9 Manual æ¥æ¬èª (1.9ã¯çµæ§å¤ããã¼ã¸ã§ã³) http://www.bookshelf.jp/texi/wget/wget-ja.html â»wgetã®ææ°ãã¼ã¸ã§ã³ã¯2015å¹´3æãªãªã¼
ã¯ããã« ã¨ã³ã¸ãã¢ã®çããã«ã¨ã£ã¦ã¯ä»æ´éããã ãã£ã¦ãããå®çªã§ããããwgetã¯Webãµã¤ããªã©ããã¼ã«ã«ã«ãã¦ã³ãã¼ããã¦ä¿åããããã®ãã¼ã«ã§ããããã¸ã§ã¯ãã§Webãµã¤ãã«èªã¿è¾¼ã¾ãã¦ãããã¡ã¤ã«ãã»ããæãããã¡ã¤ã«ä¸å¼ãã ãããã¨ããã®ãé¢åã ããããããªããã¨ãå¤ã ããã¾ãããããªã¨ãã«ä½¿ããã®ãwgetã§ãã wgetã®å©ç¹ã¨é¡ä¼¼ãã¼ã«ã®curl ç°¡åã«è¨ãã¨wgetã¯ãã¼ã¸å ã®URLãè¦ã¦å帰çã«ä¸å±¤ãã¼ã¸ãªã©ããã§ãã¯ãã¦ãã¦ã³ãã¼ãã§ãã¾ããcurlã¯ãããã§ãã¾ãããã代ããã«é£çªã®ãã¡ã¤ã«ãªã©ããã¦ã³ãã¼ããããã¨ãã§ãã¾ãããããããã解説ãã¦ããã¦ãããã¼ã¸ãwgetã¨curlã®æ ¹æ¬çãªéãããããã®ã§ããããã§ãã¯ãã¦ã¿ã¦ãã ããã wgetã®æ³¨æç¹ æ³¨æç¹ã¨ãã¦ãJavaScriptããå¼ã³åºããã¦ããç»åãªã©ã¯ãã¦ã³ãã¼ãã®å¯¾è±¡ã«ãªãã¾ãããã¾ããå
Xenã®ç°å¢ã®å ´åããã¹ãOSãã²ã¹ãOSã«å¯¾ãã¦ã©ãã ãã®ã¡ã¢ãªãå²å½ã¦ããè¨å®ãã¦èµ·åãã¾ãã ãã®å ´åããã¹ãOSãã©ãã ãã®ã¡ã¢ãªãæã£ã¦ããã®ãããã§ãã¯ãããã¨ã freeã³ãã³ãã/proc/meminfoã§ç¢ºèªãã¦ã¿ãã¨ãXenã§å²å½è¨å®ããã¡ã¢ãªéãã表示ããã¾ããã ä¾ãã°ããã¹ãOSã«512MBã¡ã¢ãªãå²å½ã¦ãã¨ã ãã¹ãOSã§freeå®è¡ããå ´åãããªæãã # free total used free shared buffers cached Mem: 524288 430904 93384 0 51964 233324 -/+ buffers/cache: 145616 378672 Swap: 2096376 0 2096376 524288KB=512MBãtotalã¨ãã¦åºã¦ãã¾ãã ã¾ã/proc/meminfoãè¦ã㨠# cat /proc/mem
opensslã³ãã³ãã§è¨ç®ã§ãã¾ãã $ echo -n "hello" | openssl sha1 (stdin)= aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d ã¤ãã§ã«md5ãã $ echo -n "hello" | openssl md5 (stdin)= 5d41402abc4b2a76b9719d911017c592
rsync ã¯ä¾¿å©ãªãã ãã©ããªãã·ã§ã³ãå¤ãã¦é£ãããç¹ã«ãããããã®ããã¡ã¤ã«ãé¸å¥ããããã® --exclude 㨠--include ãªãã·ã§ã³ã ã man ãèªãã§ãã¤ã¡ã¼ã¸ãã¤ãã¿ã«ããã£ãã®ã§ãã°ã°ã£ããã-vvv ã®çµæãè¦ãããã½ã¼ã¹ãèªãã ããã¤ã¤èª¿ã¹ã¦ã¿ãã¨ããã3 ã¤ã®ã«ã¼ã«ãç解ããã°ä½ã¨ããªããããªãã¨ãåãã£ãã ãã®è¨äºã§ã¯ããã® 3 ã¤ã®ã«ã¼ã«ããªãã¹ãåããããã説æããã ã«ã¼ã«1: æå®é ã«æå³ããã ã³ãã³ãã©ã¤ã³å¼æ°ã¯ãé常ãã©ã®é çªã«æå®ãã¦ãåãæåã«ãªããã¨ãå¤ããããããrsync ã® include 㨠exclude ã«é¢ãã¦ã¯ãæå®é ãæå³ãæã¤ã man ã«ãåºã¦ããä¾ã§èª¬æããããMP3 ã ããã³ãã¼ããã«ã¯æ¬¡ã®ããã«ããã -av ã¯ã³ãã¼ããã¨ãã®ã決ã¾ãã®ãªãã·ã§ã³ããããã¯ã¼ã¯è¶ãã«ã³ãã¼ããã¨ãã¯ã-avz ã¨ãã¦å§
éãªæã«æ¸ãè¾¼ãã ãã®ãä¸å®ææ´æ°ã®blogã§ãï¼ï¼¾ï¼¾ï¼ ãã¿çã«ã¯ãä»äºã§ç¥ãå¾ãæ å ±ããå人çã«å¥½ããªPDAãªã©ã®ã¢ãã¤ã«ç©ã§ãã /procãã£ã¬ã¯ããªé ä¸ã«ããã¼ãã¦ã§ã¢ã®æ å ±ãæ ¼ç´ããã¦ãã¾ãã ãã®ä¸ã«ããcpuinfoã¨meminfoã§ç¢ºèªãããã¨ãå¯è½ã§ããã $ cat /proc/cpuinfo processor    : 0 vendor_id    : GenuineIntel cpu family    : 15 model       : 2 model name    : Intel(R) Pentium(R) 4 CPU 2.40GHz stepping     : 7 cpu MHz      : 2399.412 cache size    : 512 KB fdiv_bug     : no hlt_
ãã°ãã¡ã¤ã«ã空ã«ãããã¨ããªã©ããã¤ãå¿ããã®ã§ã»ã»ã»ã : > file % : > file ãããä¸çªã·ã³ãã«ã§ããã : ã¨ããåºåãã®ã³ãã³ãããããããã file ã«ãªãã¤ã¬ã¯ããã¦ãããã¨ãã¡ã¤ã«ã空ã«ãªãã¾ããman bash ã«ã¯ä»¥ä¸ã®ããã«è¨è¿°ããã¦ãã¾ããããããzshã§ã¯ä¸çªã·ã³ãã«ã§ãã ã»ã»ã» A : separates the event specification from the word designator. ã»ã»ã» ã» ã» ã» SHELL BUILTIN COMMANDS Unless otherwise noted, each builtin command documented in this section as accepting options preceded by - accepts -- to signify the end of
æ¦è¦ lsyncd 㨠rsync ã使ã£ã¦è¤æ°ã®ãã¹ãéã§ãªã¢ã«ã¿ã¤ã ã«ãã¡ã¤ã«ãå ±æããç°å¢ãæ§ç¯ãã ãã¹ã㯠LXC ã³ã³ããã使ã£ã¦æ¤è¨¼ãã åè Lsyncd - Live Syncing (Mirror) Daemon axkibe / lsyncd Lsyncd Wiki lsyncd 㨠rsync ã使ã£ã¦ãªã¢ã«ã¿ã¤ã ãªãµã¼ãã¼éãã¡ã¤ã«åæãå®ç¾ãã Linux ã§ãã¡ã¤ã«ã®å¤æ´ãæ¤åºãã(inotify/fanotify) ãªã¢ã«ã¿ã¤ã ãã©ã¼ãªã³ã°ãã¼ã«å°å ¥(lsyncd+rsyncd) æ§æ æ¤è¨¼ç°å¢ 以ä¸ã®ãããªæ¤è¨¼ç°å¢ãä»åã¯ãã¹ã¿ã¼ã®ã¿ãã¼ã¿ã®æ´æ°ãçºçããç°å¢ãæ§ç¯ããã ãã¹ã OS IP ã¢ãã¬ã¹ åæ対象ãã£ã¬ã¯ã㪠ãã¹ã¿ã¼ Debian 6.0.7 10.0.3.66 /var/www/ ã¹ã¬ã¼ã Debian 6.0.7 10.0.3.253
ããã«ã¡ã¯ãcloudpack ã® ä»å²¡ ã§ãã lsyncd ã使ã£ã¦ã2å°ã®ãµã¼ãä¸ã®ãã¡ã¤ã«ãåæ¹åããã®åæãæ¤è¨¼ãã¦ããæã«ãäºæãã¬ãã¡ã¤ã«åé¤ãçºçãã¾ããããã®è¬ã¨å¯¾å¦æ¹æ³ã«ã¤ãã¦è¿«ãã¾ãã lsyncdã§åæ¹ååæã¨ã¯ï¼ lsyncd ã¯èªåã®ç¹å®ã®ãã£ã¬ã¯ããªãè¦å¼µããå¤æ´(ãã¡ã¤ã«ã®è¿½å ãå¤æ´ãåé¤ç)ã®ã¤ãã³ããçºçããå ´åããããããªã¬ã¼ã«ä»ã®ãµã¼ãã¸ä¼æ¬ããããããã¨ãã§ãã¾ãããããã lsyncd ã¯ããã¾ã§ãèªãµã¼ãã®ãã¡ã¤ã«å¤æ´ãæã¾ããã ããªã®ã§ãç¸æã®ãµã¼ãã«èµ·ãã£ãå¤æ´ã¯ãããã¾ããã ããã§ãä¾ã¨ãã¦2å°ã®ãµã¼ãã§ãäºãã« lsyncd ãããããã¨ã«ããã2å°ãå ¨ãåãç¶æ³ãä½ãã¾ããä¸å³ã®ãããªæ§æã§ãã(çµµã¯AWSã§ãããå¥ã«AWSã«éã£ã話ã§ã¯ãªãã§ãã) lsyncã¤ã³ã¹ãã¼ã« CentOS 6ç³»ã®å ´åã¯ãä¸è¨ãåèã«ã¤ã³ã¹ãã¼ã«ã§ãã¾
diff ã³ãã³ã 2016/07/23 2ã¤ã®ããã¹ããã¡ã¤ã«ã®å·®åãæ½åºããã³ãã³ãã 2ã¤ã®ãã¡ã¤ã«ã®å 容ãä¸è´ãã¦ãããã©ããããã§ãã¯ããç®çã§ã使ããã ç·¨éåã®ãã¡ã¤ã«ãããã¯ã¢ãããã¦ããã°ãç·¨éå¾ã®ãã¡ã¤ã«ã¨ããã¯ã¢ããã¨ãdiffãããã¨ã§ãç·¨éããç®æã確èªã§ãããã¾ãããããªãã¨ããªãã¦ã git ã svn ãªã©ã®ãã¼ã¸ã§ã³ç®¡çã使ã£ã¦ããã°ãå·®åã¯ç¢ºèªã§ãããã diffã³ãã³ãããã©ã¦ã¶ã§ä½¿ããã¦ã§ãã¢ããªãããããã ã ããã¹ãæ¯è¼ãã¼ã« difffãï¾ï¾ï½ï¾ï¾ã http://difff.jp/ åºæ¬çãªä½¿ãæ¹ 2016/07/19 2ã¤ã®ãã¡ã¤ã«åãå¼æ°ã§æ¸¡ãã¨ãå·®åãæ¨æºåºåãããã $ diff -u foo.txt bar.txt çæ¹ã®ãã¡ã¤ã«åã¨ã㦠- ã¨æ¸ãã¨ãæ¨æºå ¥åã使ãããã $ foocmd | diff -u - bar.txt
LinuxãUnixã使ã£ã¦ããä¸ã§ãã©ããªã«çµé¨ãæµ ãã¦ãä¸åº¦ã¯å©ç¨ããgrepã³ãã³ãã ä»åã¯ããã®grepã³ãã³ãã§è¦ãã¦ãããã使ãæ¹ã«ã¤ãã¦ç´¹ä»ããã ãªããããã§æ±ãgrepã³ãã³ãã¯Linuxã®ãã®ããã¼ã¹ã«è¨è¿°ãã¦ãããåç¨UNIXãBSDçã®å ´åããªãã·ã§ã³ãªã©ãç°ãªãäºãããã®ã§æ³¨æã 1.åºæ¬ã®ä½¿ãæ¹ ã¾ãã¯åºæ¬çãªä½¿ãæ¹ããã ããã¹ããã¡ã¤ã«ããç¹å®ã®æååãå«ãè¡ã®ã¿åºåããã grep æ¤ç´¢ãããæåå æ¤ç´¢ãããããã¹ããã¡ã¤ã« ã¯ã¤ã«ãã«ã¼ããç¨ããäºã§ãè¤æ°ã®ãã¡ã¤ã«ãæå®ãã¦grepãè¡ãäºãåºæ¥ãã ã³ãã³ãã®åºåçµæããæ¤ç´¢ããå ´åã¯ãã|(ãã¤ã)ããå©ç¨ããã ã³ãã³ã | grep æ¤ç´¢ãããæåå 2.è¤æ°ã®æ¡ä»¶ã§oræ¤ç´¢ãã è¤æ°ã®æ¡ä»¶ã§æ¤ç´¢ãè¡ãå ´åãeãªãã·ã§ã³ãä»ä¸ããã grep -e æ¤ç´¢ãããæåå1 -e æ¤ç´¢ãããæåå
ããã°ã©ã ãå¼·å¶çµäºããããå¾ãªãå ´åãps aux ã§è¡¨ç¤ºãããPIDãæå®ãã¦ã kill ... ããã£ãããã¾ãã pstreeã¯ããã»ã¹ãããªã¼ç¶ã«è¡¨ç¤ºããã¾ãã-aãã¤ããã¨ãã³ãã³ãã®å¼æ°ã表示ããã¾ãã qmailãåãã¦ãããµã¼ãã§ãã£ã¦ã¿ãã¨ãåããã»ã¹ã®é¢é£ãä½ã¨ãªããããã¾ãã topãå®è¡ããã¨ãããã©ã«ãã§cpu使ç¨çã®é«ãé ã«ããã»ã¹ã表示ããã2ç§ãã¨ã«æ´æ°ããã¦ããã¾ãã å®è¡ãã¦ãã1ãæ¼ãã¨ãè¤æ°CPUã®å ´åã¯åå¥ã®CPU使ç¨çã表示ããã¾ãã sã«ç¶ãã¦æ°åã§ç§æ°ãå ¥åããã¨ãæ´æ°ééãå¤æ´ã§ãã¾ãã â ãã¼ããã£ã¹ã¯å®¹éã®ç¢ºèª
hpingã¯ããããªãã±ãããé£ã°ãããã¼ã«ã§ãã æ¬ä½ã¯ãã¡ããããã¦ã³ãã¼ãããã¦ã tar zxvf hping2.0.0-rc2.tar.gz cd hping2 make make install ã§ã¤ã³ã¹ãã¼ã«ã§ãã¾ãã ãªãã·ã§ã³ãå±±ã®ããã«ããããããã¾ãã®ã§ä¸è¨ã«åæãã¾ãã ã¨ãããã訳ããã ããªã®ã§æå³ä¸æ(ç解ä¸è½)ãªãªãã·ã§ã³ãããã¾ãã
UNIXã®ä»£è¡¨çãªãã¦ã³ãã¼ãã«wgetã¨curlãããã¾ãã ããã¦ãã®å ´åã©ããªOSã§ããã©ã¡ããã®ã½ãããã¤ã³ã¹ãã¼ã«ããã¦ããã®ã§ã¯ãªããã¨æãã¾ãã ãããããã®2ã¤ã®ãã¦ã³ãã¼ãã®æ©è½ã¯ãä¸è¦ä¼¼ã¦ããããã«ãè¦ãã¾ãããå®ã¯ããããã«ç¹å¾´ãè¦ãããã®ã§ãä»æ¥ã¯ããã«ã¤ãã¦è§£èª¬ãã¦ã¿ã¾ãã wgetã®ç¹å¾´ wgetã®ã¹ãã«ã¯ãçæã§ãã³ãã³ãã§ãããã¨ãããã¨ããã£ã¦ãå¤ãã®äººããæ°ã«å ¥ããã¦ãã¾ãã ãããªwgetã®ç¹å¾´ã¨ãã¦ãæãéç«ã£ã¦ããã®ããã¯ãã¼ã©ã¨ãã¦åä½å¯è½ã¨ããç¹ã§ãã ãªãã·ã§ã³ã§-rãä»å ãã¦ãããã¨ã§å帰çã«åä½ãã-lã§ãã®æ·±ããæå®ãããã¨ãã§ãã¾ãã ã¾ãã-Aã-Rãå©ç¨ããã°ããã¦ã³ãã¼ãããæ¡å¼µåã®ãã¯ã¤ããªã¹ãã¨ãã©ãã¯ãªã¹ããæå®ãããã¨ãå¯è½ã§ãã ã¤ã¾ããç¹å®ã®ãµã¤ãå ã«æ£ãã°ã£ã¦åå¨ãããã¡ã¤ã«ããæ¡å¼µåã«ãã£ã¦æå®ãã¦ã³ãã¼ãã§ãã
Linuxã®ãããªUNIXã©ã¤ã¯ã®OSãæ±ãéã大ä½ã¯CUIã§ã®æä½ã«ãªãã ãããã¤ã¾ããUNIXã®ã³ãã³ãã使ã£ã¦æä½ããããããã¨ã«ãªãã ä»åã¯Linuxã®ã³ãã³ãã©ã¤ã³ä¸ãããã³ãã³ãã®ãã¼ãã·ã¼ããåç §ãããCheatãã¨ããããã±ã¼ã¸ããããããªã®ã§ãããã試ãã¦ã¿ããã¨ã«ããã 1.ã¤ã³ã¹ãã¼ã« ã¾ãã¯ã以ä¸ã®ã³ãã³ããå®è¡ãå¿ è¦ãªããã±ã¼ã¸ãã¤ã³ã¹ãã¼ã«ããã Debian/Ubuntu sudo apt-get install git python-pip sudo pip install docopt pygments git clone https://github.com/chrisallenlane/cheat.git cd cheat sudo python setup.py install RHELç³» sudo yum install git python-p
All rights reserved. Copyright (C) 1996,1997 by NARITA Tomio <narit[email protected]> lv: a Powerful Multilingual File Viewer The latest version is ver 4.21: Download English page is here . ç®æ¬¡ èä½æ¨©è¡¨ç¤º ç¹å¾´ lvã®ãã¦ã³ãã¼ã ã¤ã³ã¹ãã¼ã« 使ç¨æ³ å®è¡æ¹æ³ å®è¡æãªãã·ã§ã³ è¨å® ã³ãã³ã æ¤ç´¢æååã®å ¥å æ£è¦è¡¨ç¾ã«ã¤ã㦠è¡ã®åæ±ã ã³ã¼ãç³»ã«ã¤ã㦠ISO 2022 ã«å¾ãã³ã¼ãç³» iso-2022-cn iso-2022-jp iso-2022-kr Extended Unix Code euc-china euc-japan euc-korea euc-taiwan UCS tran
macãunixã®ã¿ã¼ããã«ã§ãããã£ã¬ã¯ããªä»¥ä¸ã®åè¨ãã¡ã¤ã«æ°ãç¥ãã«ã¯ â åè¨ãã¡ã¤ã«æ°ï¼ ls -laR | grep -c '^-' â åè¨ãã£ã¬ã¯ããªæ°ï¼ ls -laR | egrep -c '^d.+[^.]$' ã§ããã¾ãã ãªããã£ã¬ã¯ããªä»¥ä¸ã«ä½æãããã¡ã¤ã«æ°ã¯ 5000以å ã«ã¨ã©ãã¦ãããã»ããã§ãããã é¢é£ï¼ ãã¡ã¤ã«ã»ãã£ã¬ã¯ããªå®¹éããã£ã¹ã¯ã®ç©ºã容éãåå¾ãã http://logic.moo.jp/memo.php/archive/97/
ãç¥ãã
é害
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}