Today I discovered the `whatis` command. Over here. That is all.
Category Archives: Sys Admin
Unix command line conventions over time
This didn’t tell me anything I didn’t know, but I was pleased to read it: Unix command line conventions over time.
On the other end of the spectrum: UX patterns for CLI tools.
Monitoring CPU clock speed
$ watch 'grep MHz /proc/cpuinfo | awk "{ print \$4 }" | sort -n'
Linux system specs
If you want to get a simple report on your linux system’s specifications, try these:
- $ neofetch
- $ inxi
- $ hwinfo –short
Distributed Systems Shibboleths
This via r/programming today: Distributed Systems Shibboleths.
Replace a faulty disk on a Mirrored or RAIDZ virtual device
I have a degraded ZFS array due to too many write errors on one of my disks. When my replacement disk arrives I will follow these instructions to resolve the issue: Replace a faulty disk on a Mirrored or RAIDZ virtual device.
ZFS verification process
The ZFS verification process is called a ‘scrub’ and it is done periodically (usually every few weeks). To report on the status of a scrub in progress use the `zfs scrub` command.
File types In Linux
Today I found myself referring to: File types In Linux/Unix explained in detail. Basically:
- Regular file (-)
- Directory file (d)
- Block file (b)
- Character device file (c)
- Named pipe file or just a pipe file (p)
- Symbolic link file (l)
- Socket file (s)
Also apparently there is a thing called a Door File on Solaris, but, alas, we’re not caring about that.
Ethernet on ‘trick’
Note to self: I’ve disabled my second NIC enp7s0 for now, I can enable it when its cable arrives.
-------------------
Mon Mar 28 16:34:31 [bash:5.0.17 jobs:0 error:0 time:1505]
root@trick:/home/jj5
# cat /etc/netplan/00-installer-config.yaml
# This is the network config written by 'subiquity'
network:
ethernets:
enp10s0:
addresses:
- 10.3.2.5/16
gateway4: 10.3.1.1
nameservers:
addresses:
- 10.1.1.113
search: []
#enp7s0:
# addresses:
# - 10.1.2.5/16
# nameservers:
# addresses: []
# search: []
version: 2
-------------------
blockdev –getsize64 /dev/sda
Today I learned you can get the size of a block device with e.g.: sudo blockdev --getsize64 /dev/sda