4. Linux redhat 9.0 - chapter 1 리눅스 기초

Linux redhat 9.0 - chapter 1 리눅스 기초

파티션

/
/root /swap /boot /home /apm /data

power off : 

   shutdown -h now
   shutdown -r now
   halt
   shutdown -h +10
   shutdown -r +10

logout : 

   exit, logout, ctrl + D

basic command : 

   ls (list - 해당 폴더의 show contents)
   cd (change directory)
   pwd (현재 디렉토리 위치)
   clear (ctrl + L)
   cat (see the file content)

network setting : 

   ifconfig (check the ip info)
      ip, sm, mac
      /etc/resolv.conf (파일:찾을dns)
   netconfig (set up the linux sys ip)

네트워크 데몬을 재시작
실행파일은 현재 디렉토리에서 실행 명령 ./
현재 /etc/init.d
->
   ./network restart
   ./network stop
   ./network start
   ./network status

vi /etc/resolv.conf

   i -> 수정 -> esc -> : -> wq or q! 후 확인은 cat으로

cat /etc/sysconfig/network-script/ifcfg-eth0

댓글