반응형

Disk 관련

  • hdd인지 sdd인지 확인: rota가 1이면 hdd, 0이면 sdd, ROTA means rotational device (1 if true, 0 if false)
    • lsblk -d -o name,rota
    • cat /sys/block/sda/queue/rotational
  • disk 모델, 제조사 등 확인: http://fibrevillage.com/storage/599-how-to-tell-if-a-disk-is-ssd-or-hdisk-on-linux
    • cat /proc/scsi/scsi
  • disk 관리 관련: https://cptyun.tistory.com/3
    • df : 디스크 마운트 상태 및 용량 확인
    • fdisk : 디스크 파티션 관리
    • mkfs.ext4 : EXT4 형식으로 디스크 포맷
    • mount / umount : 디스크 마운트 / 언마운트
    • fstab : 시스템 부팅시에 디스크 마운트
  • df -h (disk free -human readable): 디스크 마운트 상태 및 용량 확인
  • lsblk (list block devices) https://linoxide.com/linux-command/linux-lsblk-command/
    • NAME :This is the device name.
    • MAJ:MIN :This column shows the major and minor device number.
    • RM :This column shows whether the device is removable or not. Note in this example the device sdb and sr0 have their RM values equals to 1 indicating they are removable.
    • SIZE :This is column give information on the size of the device. For example 298.1G indicate the device is 298.1GB and 1K indicate the device size is 1KB.
    • RO :This indicates whether a device is read-only. In this case all devices have a RO=0, indicating they are not read only.
    • TYPE :This column shows information whether the block device is a disk or a partition(part) within a disk. In this example sda and sdb are disks while sr0 is a read only memory (rom).
    • MOUNTPOINT :This column indicates mount point on which the device is mounted.

디스크 마운트 상태 및 용량 확인

Memory 관련

  • free -h : 전체 메모리와 가용 메모리 human readable하게 알려줌
  • top: Windows 작업관리자 같은 것 - top
  • proc/meminfo
  • ps -ef
    • ps -ef --sort -rss, rss(Resident Set Size) : 물리 메모리를 실제 점유하고 있는 크기
    • 가장 위에 있는 프로세스가 물리 메모리를 가장 많이 점유하고 있음!
    • ps -eo user,pid,ppid,rss,size,vsize,pmem,pcpu,time,comm --sort -rss | head -n 11
  • dmidecode: 설치된 RAM 하드웨어 정보 표시.
    • 예) dmidecode -t 17, type 17이 RAM. (그 외 L1/L2 cache 등)

https://m.blog.naver.com/jayeonsaram/220647978281

반응형

'etc > linux' 카테고리의 다른 글

linux java process 찾기, java 실행  (0) 2020.01.31
리눅스 PC에 백업  (0) 2019.07.26
Ubuntu 단축키  (0) 2019.04.26
troubleshooting  (0) 2019.04.02
Linux 명령어  (0) 2019.03.29

+ Recent posts