ȥå   Խ ʬ Хåå ź ʣ ̾ѹ   ñ측 ǽ   إ   ǽRSS

Linuxط

Last-modified: 2017-03-22 () 10:21:28 (67d)
Top / Linuxط

LinuxǰNICʣIPꤹˡ

  • RedHatLinuxIPꥢ(ܤǤ롢ܤϸŤΤDzιΤۤ)
    DEVICE=eth1:0
    BOOTPROTO=static
    HWADDR=00:1D:09:6F:72:3F
    ONBOOT=yes
    IPADDR=61.99.999.9
    NETMASK=255.255.255.0
  • 1NICʣIPɥ쥹Ƥ(Linux̤Ϥ)

ipȻΩ

ǥȥӥ塼ΥСǧˡ

[root@nec root]# cat /etc/redhat-release
Red Hat Linux release 7.2 (Enigma)
[root@nec root]#
  • ǥȥӥ塼̾ʾ/etcǥ쥯ȥϰʲ(ǥȥӥ塼̾)-releaseեõƤ

ǤCentOSܸե򸫤ˡ

$ echo ':set encoding=utf-8' >~/.vimrc
$ echo ':set fileencodings=iso-2022-jp,euc-jp,sjis,utf8' >>~/.vimrc
$ view japanese.txt

vimʸ::Wiki

  • ʸɤμưǧ
    • jvim줿ꤷʤǤܸ줬Ȱޤ
      • Ϥ⤷ΤΥХååפʤΤǡͥȤξ嵭򤴳ǧ
        if &encoding !=# 'utf-8'
          set encoding=japan
        endif
        set fileencoding=japan
        if has('iconv')
          let s:enc_euc = 'euc-jp'
          let s:enc_jis = 'iso-2022-jp'
          " iconveucJP-msбƤ뤫å
          if iconv("\x87\x64\x87\x6a", 'cp932', 'eucjp-ms') ==# "\xad\xc5\xad\xcb"
            let s:enc_euc = 'eucjp-ms'
            let s:enc_jis = 'iso-2022-jp-3'
          " iconvJISX0213бƤ뤫å
          elseif iconv("\x87\x64\x87\x6a", 'cp932', 'euc-jisx0213') ==# "\xad\xc5\xad\xcb"
            let s:enc_euc = 'euc-jisx0213'
            let s:enc_jis = 'iso-2022-jp-3'
          endif
          " fileencodings
          if &encoding ==# 'utf-8'
            let s:fileencodings_default = &fileencodings
            let &fileencodings = s:enc_jis .','. s:enc_euc .',cp932'
            let &fileencodings = &fileencodings .','. s:fileencodings_default
            unlet s:fileencodings_default
          else
            let &fileencodings = &fileencodings .','. s:enc_jis
            set fileencodings+=utf-8,ucs-2le,ucs-2
            if &encoding =~# '^\(euc-jp\|euc-jisx0213\|eucjp-ms\)$'
              set fileencodings+=cp932
              set fileencodings-=euc-jp
              set fileencodings-=euc-jisx0213
              set fileencodings-=eucjp-ms
              let &encoding = s:enc_euc
            else
              let &fileencodings = &fileencodings .','. s:enc_euc
            endif
          endif
          " ʬ
          unlet s:enc_euc
          unlet s:enc_jis
        endif

ڡȻ vim ΥȥǥȤ̵ˤ

:set paste

paste ⡼ɤˤʤäơԡ֤ʸΥǥȤΤޤޤŽդ뤳ȤǤޤ

vine linuxˤĤ

rpmѥåκƹ

debianˤĤ

rpmθ

꥽ƻ(ץƻ)

chmodǥեΥѡߥåƵŪѹ

linuxƥϿ줿桼ΰ

ʤ󤫽ŤʤȤäƻΥå

LVMξ

̤ǰɤ򤬿ޤꤽäƤꤹ뤿Ӥ¿ʬɤऱɡ