Linux DevOps - yszheda/wiki GitHub Wiki

Hardware

$ lscpu

# Hardware
$ lsblk --nodeps -o name,model

# Memory
$ sudo dmidecode -t memory | grep 'Size\|Speed\|Part Number'

# Motherboard
$ sudo dmidecode -t System Information | grep 'Manufacturer\|Product Name'

CPU Core Number

lscpu | egrep '^Thread|^Core|^Socket|^CPU\('

nproc --all
# Get the CPU
grep 'physical id' /proc/cpuinfo | sort -u

# Get the core
grep 'core id' /proc/cpuinfo | sort -u | wc -l

# Get the threads
grep 'processor' /proc/cpuinfo | sort -u | wc -l

# Get the cpu version
dmidecode -s processor-version

CPU micro

page size

getconf PAGESIZE
getconf PAGE_SIZE

OOM Killer

File System

User / Group Management

echo username:new_password | chpasswd

usermod

$ su terdon -   ## start a new login shell

pkexec

dmesg

$ dmesg -wH

Printer

Log

WMIC (Windows Management Instrumentation Client)

Image size

Uncompress

uncompress *.Z
tar -xvf *.tar

systemd

top

%CPU -- CPU Usage : The percentage of your CPU that is being used by the process. By default, top displays this as a percentage of a single CPU. On multi-core systems, you can have percentages that are greater than 100%. For example, if 3 cores are at 60% use, top will show a CPU use of 180%. See here for more information. You can toggle this behavior by hitting Shifti while top is running to show the overall percentage of available CPUs in use.

dstat -C 0,1,2,3,total

grub

nomodeset

console

EDD

Change default shell

~/.profile:

export SHELL=/bin/bash
exec /bin/bash

file encoding

$ file --mime-encoding filename
$ iconv -f old_encoding -t new_encoding filename

smb

/run/user/<username>/gvfs

sysctl

mqueue

Trouble-shooting

device not accepting address

serious errors while checking the disk drives for

screen resolution

[Kubuntu] kde-config-telepathy-accounts

$ sudo dpkg --remove unity-scope-gdrive
$ sudo dpkg --remove account-plugin-google
$ sudo apt-get -f install

autojump: invalid literal for float()

Restore ~/.local/share/autojump/autojump.txt.bak: invalid literal for float() #463

random: nonblocking pool is initialized

Kernel panic - not syncing: UFS: Unable to mount root fs on unknown-block(0,0)

boot in text console

⚠️ **GitHub.com Fallback** ⚠️