반응형
[리눅스 명령어]CentOS : man ifup
 
1. 용도 및 목적
인터페이스 활성화
 
2. 자주 쓰는 옵션
-인터페이스 활성화
#ifup eth0
-인터페이스 비활성화
#ifdown eth0
반응형
반응형
[리눅스 명령어]CentOS : man chown
 
1. 용도 및 목적
파일 소유자 및 그룹 변경
 
2. 자주 쓰는 옵션
-test파일을 test유저, test그룹으로 변경
#chown test:test test
 
3. 활용 방법
-test디렉토리 및 하위 파일을 test유저, test그룹으로 변경
#chown -R test:test test
반응형
반응형
[리눅스 명령어]CentOS : man groupmod
 
1. 용도 및 목적
그룹 수정
 
2. 자주 쓰는 옵션
-test 그룹의 이름을 test1로 변경하고 gid를 506으로 변경
#groupmod -n test1 -g 506 test
반응형
반응형
[리눅스 명령어]CentOS : man groupadd
 
1. 용도 및 목적
새 그룹 생성
 
2. 자주 쓰는 옵션
-gid 505 로 test 그룹 생성
#groupadd -g 505 test
반응형
반응형
[리눅스 명령어]CentOS : man userdel
 
1. 용도 및 목적
사용자 계정 및 관련 파일 삭제
 
2. 자주 쓰는 옵션
-계정 삭제
#userdel test
 
3. 활용 방법
-계정 삭제(홈디렉토리도 삭제 -r , 에러무시삭제 -f)
#userdel -rf test
반응형
반응형
[리눅스 명령어]CentOS : man vmstat
 
1. 용도 및 목적
가상 메모리 통계
 
2. 자주 쓰는 옵션
-2초간격 3회 출력
#vmstat 2 3
 
3. 활용 방법
-test 파일에 2초간격 3회 입력
#vmstat 2 3 > testvmstat
반응형
반응형
[리눅스 명령어]CentOS : man mesg
 
1. 용도 및 목적
터미널 쓰기 권한 제어
 
2. 자주 쓰는 옵션
-현재 상태 확인
#mesg
 
-pts1 이 write 로 pts0에 메세지 보내는것을 차단
#mesg n < /dev/pts/1
 
-pts1 이 write 로 pts0에 메세지 보내는것을 허용
#mesg y < /dev/pts/1
반응형
반응형
[리눅스 명령어]CentOS : man dmidecode
 
1. 용도 및 목적
시스템 정보 확인(H/W 부분은 VM 에서 확인할 만한 것이 없음)
 
2. 자주 쓰는 옵션
-정보 확인
#dmidecode
 
3. 활용 방법
-특정 정보 확인 (type_number은 하기 메뉴얼 참고)
#dmidecode -t type_number
 
-bios 정보 확인
#dmidecode -t 0

 

DMI TYPES
       The SMBIOS specification defines the following DMI types:
       Type   Information
       --------------------------------------------
          0   BIOS
          1   System
          2   Baseboard
          3   Chassis
          4   Processor
          5   Memory Controller
          6   Memory Module
          7   Cache
          8   Port Connector
          9   System Slots
         10   On Board Devices
         11   OEM Strings
         12   System Configuration Options
         13   BIOS Language
         14   Group Associations
         15   System Event Log
         16   Physical Memory Array
         17   Memory Device
         18   32-bit Memory Error
         19   Memory Array Mapped Address
         20   Memory Device Mapped Address
         21   Built-in Pointing Device
         22   Portable Battery
         23   System Reset
         24   Hardware Security
         25   System Power Controls
         26   Voltage Probe
         27   Cooling Device
         28   Temperature Probe
         29   Electrical Current Probe
         30   Out-of-band Remote Access
         31   Boot Integrity Services
         32   System Boot
         33   64-bit Memory Error
         34   Management Device
         35   Management Device Component
         36   Management Device Threshold Data
         37   Memory Channel
         38   IPMI Device
         39   Power Supply
         40   Additional Information
         41   Onboard Devices Extended Information
         42   Management Controller Host Interface
 
       Keyword     Types
       ------------------------------
       bios        0, 13
       system      1, 12, 15, 23, 32
       baseboard   2, 10, 41
       chassis     3
       processor   4
       memory      5, 6, 16, 17
       cache       7
       connector   8
       slot        9
 
       Keywords  are  matched  case-insensitively. The following command lines
       are equivalent:
 
       · dmidecode --type 0 --type 13
       · dmidecode --type 0,13
       · dmidecode --type bios
       · dmidecode --type BIOS
반응형
반응형
[리눅스 명령어]CentOS : man modprobe
 
1. 용도 및 목적
리눅스 커널에서 모듈을 추가하고 제거하는 프로그램
 
2. 자주 쓰는 옵션
-bonding 모듈 제거
#modprobe -r bonding
 
-bonding 모듈 인식
#modprobe bonding
반응형
반응형
[리눅스 명령어]CentOS : man lsmod
 
1. 용도 및 목적
리눅스 커널에서 모듈의 상태를 보여주는 프로그램
 
2. 자주 쓰는 옵션
-모듈 확인
#lsmod
 
3. 활용 방법
-bonding 모듈 확인
#lsmod |grep bond
반응형

+ Recent posts