Linux 2
ä»æ¥ã¯éä¸è¬ç¾©ãé·å¼ããã¤ããæã¦ã¦ç 究室ã«ãã£ãã®ã¯ã
ææ¥éå§åã®åæ°åã ãã§ãã£ãã
ã¨ããããããããã¨ãã³ãã ã¹ãã³ã¸ãç½®ãã
ããããå¿
éåã¨ãªãã ããã
帰ãã«ãããã¨æã£ãããä½ããµããµãã§ããã ã£ãã
ãã£ã±ãé£äºã¯ãã¡ãã¨ã¨ããªãã¨...ã
ããããããã§ãä»æ¥ã¯ãæ¨æ¥ã®ç¶ãã§ããããªã«ç°¡å
RedHat Linux 7.2ã®åå¼·ã®ç¶ãããã£ãã
ã¾ãã¯ãã·ã§ã«ã¹ã¯ãªããã®åå¼·ã®ç¶ãã
282ãºã¼ãããã
æ°ããè¦ããã¨ããã
shift -> 次ã®$ã¸ãã¤ãã
expr ç®è¡æ¼ç®ããã
count `expr $count + 1`
ããã¯ã¯ã©ã¼ãã使ããã¨ã
ãã¨ã¯ãPerlãé£ã°ãã
ãããã¯ã¼ã¯ã³ãã³ãã®åå¼·ãããã
ãã¼ã¸ã§ããã°ã306ãã¼ã¸ã
çµæ§å±éºãªã³ãã³ããå¤ãã
traceroute //ãããã¯ã¼ã¯çµè·¯æ¤ç´¢
dig ãã¡ã¤ã³å
ãã¡ã¤ã³åã®IPãåå¾ããã
dig -x IP
IPã¢ãã¬ã¹ãããã¡ã¤ã³åãåå¾ããã
host <- ãã¡ã¤ã³åããIPã¢ãã¬ã¹ãç°¡æã«ã²ãã
nslookup <- hostã¨åãã ããæè¿ã¯æ¨å¥¨ããã¦ããªããããã
finger ã¡ã¼ã«ã¢ãã¬ã¹ãããæ
å ±ãããã
å§ç¸®ï¼è§£åã«ã¤ãã¦ã ããã¯å¤§ä½ãã£ã¦ããã
p325
gzip å§ç¸®
gunzip 解å
gzip -x abcabc
xã«ã¯0-9ã¾ã§ã®æ°åã å§ç¸®çãæå®ã
gzip -r ãã£ã¬ã¯ããª
ãã£ã¬ã¯ããªã®ä¸ãä¸æ¬å§ç¸®
zmore å§ç¸®ããããã¡ã¤ã«ãåç
§ããã
zless zmore ã® less ç
ã¨ããããtar ã¯-zxvfã¤ãã¨ãã
Windowsç¨ã¯
zip unzip
ã½ã¼ã¹ã³ã¼ãã¯
shar <å
¥åãã¡ã¤ã«>
ãã£ã¬ã¯ããªå
¨é¨ãsharããæã¯ã
shar ~~~~/~~~~~/* > sample.shar
ã¿ããã«ãtarã«ããã¹ã¦ãã¨ã³ã³ã¼ãããªãã¦ãããã
解å㯠sh ~~~.shar
- h ã¤ã³ã¹ãã¼ã«ã®é²è¡ç¶æ³ãï¼è¨å·ã§è¡¨ãã
- v 詳細æ å ±
- i ã¤ã³ã¹ãã¼ã«
å¼·å¶çã«ã¤ã³ã¹ãã¼ã«ãããã
rpm -ivh --replacepkgs
-
- replacefiles
ããã±ã¼ã¸ã®æ´æ°
rpm -Uvh ~~~.rpm
å¤ãããã±ã¼ã¸ããã§ã«ã¤ã³ã¹ãã¼ã«ããã¦ããå ´åã«éã
ããã±ã¼ã¸ãæ´æ°
rpm -Fvh ~~~.rpm
ãã¦ã³ã°ã¬ã¼ãããã¨ã
rpm -Uh --oldpackage ~~.rpm
ããã±âã¸ãåé¤
rpm -e ããã±ã¼ã¸å
ããã±ã¼ã¸æ¤ç´¢
rpm -q gcc ã¿ãããªã
ã¨ããæãã
ãã¨ãããããã£ã¦ãæ¬ä¸åãçµäºããã
次ã®æ¬ãããããã¨ã«ãããã