system

linux memory management

hardware spec

[!TIP|label:hardware spec] list info

  • glances

  • hwinfo

  • lshw

  • lscpu

  • lsmem

  • lspci

  • lsscsi

  • lsusb

  • inxi ( inxi --recommends, inxi -F|--full )

  • lsblk

  • lsof

  • ncdu - a disk utility for Unix systems

  • fdisk

  • blkid - command-line utility to locate/print block device attributes

  • mount

  • free

  • dmidecode

  • hdparm

  • lstopo-no-graphics

  • hwloc-ls

  • /proc

    • /proc/cpuinfo

    • /proc/meminfo

    • /proc/version

    • /proc/scsi/scsi

    • /proc/partitions

performance & analysis

  • vmstat - shows system memory, processes, interrupts, paging, block I/O, and CPU info

  • iostat - for storage I/O statistics.

  • iotop - interactive I/O viewer. Get an overview of storage r/w activity

  • netstat – for network statistics

  • iftop - network traffic viewer

  • nload - a super simple, command-line network interface monitoring tool

  • mtr - network diagnostic tool

  • dig - DNS lookup utility tool

  • nethogs - network traffic analyzer

  • apropos - search man page names and descriptions

  • fsck - tool for checking the consistency of a file system

  • vnstat

  • dstat

  • mpstat

  • ss - socket statistics

  • sar

  • nethogs - network traffic analyzer

lshw Classes

  • address

  • bridge

  • bus

  • communication

  • disk

  • display

  • generic

  • input

  • memory

  • multimedia

  • network

  • power

  • printer

  • processor

  • storage

  • system

  • tape

  • volume

os

hardware

system information

manufacturer

product name and version

product name only

uuid

cpu

cpu cores

  • others

check CPU support 64 bit or not

cat /proc/cpuinfo

cpu info

memory

references:

list total memory

[!TIP|label:references:]

list only installed RAM modules

memory information

print memory only

check memory in time

bios

disk

  • hwinfo

disk type

[!INFO] Check disk interface types

  • Advanced technology attachment (ATA)

  • Integrated Drive Electronics (IDE)

  • Serial ATA (SATA)

  • Small Computer system interface (SCSI)

  • Serial attached SCSI (SAS)

  • Fibre Channel

check status

  • $ lsblk

  • $ pvs

  • $ lvs

  • $ vgs

  • $ pvscan

  • $ lvscan

  • $ pvdisplay

  • $ vgdisplay

  • $ lvdisplay

  • $ fdisk -l

  • $ sfdisk -l -uM

  • $ lshw -class disk

  • $ hwinfo --block --short

  • $ cat /proc/partitions

  • $ sudo hdparm -I /dev/sda

RAID Info

[!NOTE|label:references:]

RAID details info

network

get network cards

network speed

get the public ip address

environment variables

show PATH

graphics card driver

[!NOTE|label:references:]

get system info

top

ps

[!TIP|label:references:]

find the zombie process

set system info

clear duplicated PATH

sysctl

  • verify

change net.bridge

  • check status

LS_COLORS

[!NOTE|label:references:]

pattern
name
comments

bd

device

block device

ca

-

cap

cd

device

char device

cl

-

clear end of line

di

directory

directory

do

-

Solaris door

ec

-

end color, unused

ex

executable

executable

fi

file

file

fl

-

file, default

lc

-

left, unused

ln

link

symlink

mh

-

multi hardlink

mi

-

missing file

no

-

normal

or

orphan

orphaned symlink

ow

-

other-writable

pi

fifo

pipe

rc

-

right, unused

rs

-

reset

sg

-

setgid

so

socket

socket

st

-

sticky

su

-

setuid

tw

-

ow with sticky

disable firewall

  • check result

off swap

disable selinux

  • installation

  • setup for exiting account

  • Modifying an existing mapping

  • delete a mapping

  • list mappings

tips

about whatis

service

enable/disable service

check service enable or not

  • or

start/stop service

check log

system encoding

references:

important files:

  • /etc/default/locale

  • /etc/locale.gen

  • /etc/environment

  • /usr/share/locales

  • /var/lib/locales/supported.d/local

  • /usr/local/share/i18n/SUPPORTED

  • /usr/share/i18n/SUPPORTED

setup via environment

  • check locale for account

setup via locale command

  • setup environment files

locales

CentOS8

installation

references:

locale.conf files support the following environment variables.

  • LANG

  • LANGUAGE

  • LC_ADDRESS

  • LC_COLLATE

  • LC_CTYPE

  • LC_IDENTIFICATION

  • LC_MEASUREMENT

  • LC_MESSAGES

  • LC_MONETARY

  • LC_NAME

  • LC_NUMERIC

  • LC_PAPER

  • LC_TELEPHONE

  • LC_TIME

  • check

  • more options

get infomation

langpacks

list

install

  • chinese

applications

disable lock screen in CentOS 8

  • manually

    • Applications -> Settings -> Poswer Manager -> Display

    • Applications -> Settings -> Screensaver -> Lock Screen

  • via script

automatically lock the screen when idle

[!NOTE|label:references:]

sogou Pinyin input method

specified terminal size

burn bootable usb stick

[!NOTE|label:references:]

remove system

[!NOTE|label:references:]

  • remove initrd.img and vmlinuz-*

  • update grub

Q&A

yum issue after python upgrade to 3.x

[!NOTE|label:references:]

  • issue

  • solution

    • or change shebang from #! /usr/bin/python to #! /usr/bin/python2

none of the providers can be installed in dnf upgrade

  • issue

  • upgrade bypass issue

    [!NOTE] issue stills exists, but upgrade will be executed successfully

  • fix with erase conflict packges permanently

ls: Argument list too long

[!NOTE] config files

  • /etc/sysctl.conf

  • /etc/system

  • /etc/security/limits.conf

  • /etc/limits.conf

  • /etc/security/limits.d/*.conf

    • /etc/security/limits.d/99-nproc-devops.conf

  • all modifications requires logout and login again

check the limit

  • check page size

  • grub

    • rebuid bios & efi

setup ulimit

  • via limits.d

modify open file

setup for particular group

others

motd

motd

  • motd upgrade disable

cockpit

Last updated

Was this helpful?