Linux
Command
Library
GitHub
F-Droid
Google Play Store
Basics
Tips
Commands
System information
OS & Kernel
Which distribution, which kernel, and how long has it been running?
$
uname
-a
copy
$
hostnamectl
copy
$
lsb_release
-a
copy
$
cat
/etc/os-release
copy
$
uptime
copy
Pretty system overviews for screenshots and quick orientation.
$
fastfetch
copy
$
neofetch
copy
$
inxi
-Fz
copy
CPU
lscpu
summarizes model, cores, and features; /proc/cpuinfo has the raw per-core details.
$
lscpu
copy
$
cat
/proc/cpuinfo
copy
Current CPU load:
top
in batch mode for a one-shot value,
mpstat
for per-core statistics,
vmstat
for a rolling view.
$
top
-bn1 |
grep
"Cpu(s)"
copy
$
mpstat
1 5
copy
$
vmstat
1
copy
Memory
free -h
answers the common question; /proc/meminfo has every detail.
$
free
-h
copy
$
cat
/proc/meminfo
copy
$
vmstat
copy
In
free
, look at the "available" column, not "free": Linux uses spare RAM for disk cache and releases it when programs need it.
Processes
Snapshot with
ps
, live view with
top
or one of its friendlier successors.
$
ps
aux
copy
$
ps
aux --sort=-%mem |
head
copy
$
top
copy
$
htop
copy
$
btop
copy
$
atop
copy
Disks & Partitions
Free space per filesystem, block devices as a tree, and partition tables (root required for fdisk/parted).
$
df
-h
copy
$
duf
copy
$
lsblk
-f
copy
$
fdisk
-l
copy
$
parted
-l
copy
Hardware
List devices by bus, or get the full inventory including model numbers.
$
lspci
copy
$
lsusb
copy
$
lshw
-short
copy
$
dmidecode
-t memory
copy
Temperatures and fan speeds (run
sensors-detect
once first).
$
sensors
copy
Battery
upower
reports detailed battery state;
acpi
gives the one-line answer. The raw values live in /sys.
$
acpi
-b
copy
$
upower
-i $(
upower
-e |
grep
BAT)
copy
$
cat
/sys/class/power_supply/BAT*/capacity
copy
Bluetooth
bluetoothctl
is the current tool;
hciconfig
is deprecated but still found on older systems.
$
bluetoothctl
show
copy
$
bluetoothctl
devices
copy
$
hciconfig
-a
copy
Network Interfaces
$
ip
a
copy
$
ifconfig
-a
copy
Kernel & Boot Messages
dmesg
prints the kernel ring buffer (root on most distributions);
journalctl -b
shows everything logged since this boot.
$
dmesg
copy
$
dmesg
-w
copy
$
journalctl
-b
copy
$
lsmod
copy
Copied to clipboard
Kai
AltStyle
によって変換されたページ
(->オリジナル)
/
アドレス:
モード:
デフォルト
音声ブラウザ
ルビ付き
配色反転
文字拡大
モバイル