Cute Running Puppy

Linux

Linux_01Day

jwjin 2019. 5. 10. 23:44
728x90

# 기본명령어

Vmware 설치

CentOs7 설치 

(인터넷 참조)

login as: root
root@192.168.245.128's password:
Last login: Fri May 10 21:04:04 2019
[root@localhost ~]# if
if         ifcfg      ifconfig   ifdown     ifenslave  ifstat     ifup
[root@localhost ~]# if
if         ifcfg      ifconfig   ifdown     ifenslave  ifstat     ifup
[root@localhost ~]# ifconfig ens33
ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.245.128  netmask 255.255.255.0  broadcast 192.168.245.255
        inet6 fe80::20c:29ff:febf:c95f  prefixlen 64  scopeid 0x20
        ether 00:0c:29:bf:c9:5f  txqueuelen 1000  (Ethernet)
        RX packets 6421  bytes 8740188 (8.3 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 2318  bytes 153335 (149.7 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

[root@localhost ~]# pwd # 현재경로
/root
[root@localhost ~]#
[root@localhost ~]# clear # 화면 지움
[root@localhost ~]#
[root@localhost ~]# man pwd  # pwd의 명령어에 대한 설명
[root@localhost ~]#
[root@localhost ~]# #halt-p # 종료
[root@localhost ~]# #shutdown -h now # 당장 종료
[root@localhost ~]# #shutdown -h +5 # 5분 후에 종료
[root@localhost ~]# #shutdown -h 22:00 # 10시에 종료
[root@localhost ~]# #init 0
[root@localhost ~]# #poweroff # 종료
[root@localhost ~]#
[root@localhost ~]# #reboot
[root@localhost ~]# #shutdown -r now
[root@localhost ~]# #shutdown -r +10
[root@localhost ~]# #shutdown -r 22:00
[root@localhost ~]# #init 6
[root@localhost ~]# shutdown -h 22:00
Shutdown scheduled for 금 2019-05-10 22:00:00 KST, use 'shutdown -c' to cancel.
[root@localhost ~]# shutdown -c

Broadcast message from root@localhost.localdomain (Fri 2019-05-10 21:43:02 KST):

The system shutdown has been cancelled at Fri 2019-05-10 21:44:02 KST!

[root@localhost ~]# #shutdown -c # 종료 취소
[root@localhost ~]# shutdown -k +5
Shutdown scheduled for 금 2019-05-10 21:48:59 KST, use 'shutdown -c' to cancel.
[root@localhost ~]#
Broadcast message from root@localhost.localdomain (Fri 2019-05-10 21:43:59 KST):

The system is going down for power-off at Fri 2019-05-10 21:48:59 KST!


[root@localhost ~]#
[root@localhost ~]# shutdown -c

Broadcast message from root@localhost.localdomain (Fri 2019-05-10 21:44:36 KST):

The system shutdown has been cancelled at Fri 2019-05-10 21:45:36 KST!

[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]#

리눅스는 보통 이런형태로 실행됩니다.

빨간색으로 칠한게 명령어 인데  종료에 대한 명령어가 매우 많습니다.

종료 취소는 shutdown -c 입니다.

728x90

'Linux' 카테고리의 다른 글

Linux_06Day  (0) 2019.05.17
Linux_05Day  (0) 2019.05.16
Linux_04Day  (0) 2019.05.15
Linux_03Day  (0) 2019.05.14
Linux_02Day  (0) 2019.05.13