references for linux admin and development
MIT License
references for linux admin and development
dotnet publish -c Release --runtime linux-x64 --sc
exiftool file.dll | grep 'Product Version'
exdir=$(dirname $(readlink -f "$BASH_SOURCE"))
ls -la --block-size=MB
cat file | sed -n '1d;p'
sed A,Bd file
( skip lines with index range [A,B] )cat file | sed -r '/^\s*$/d'
TZ=GMT date +@GMT-%Y.%m.%d-%H.%M.%S
notify-send title msg
fldiff file1 file2
xtrace -n cmd args
)dotnet msbuild
nm -gDC LIB.so
apt install renderdoc
xprop | awk '/PID/ {print $3}'
apt install cpulimit ; cpulimit -p PID -l 5
( limit process PID to 5% )docker run --restart=unless-stopped --name=pgadmin -p 8080:80 -e 'PGADMIN_DEFAULT_EMAIL=email' -e 'PGADMIN_DEFAULT_PASSWORD=pass' -d dpage/pgadmin4
?
operator (upgrade react-scripts
to 3.3.0
)yarn create react-app my-app --template typescript
http://arduino.esp8266.com/staging/package_esp8266com_index.json
for development )curl -s ifconfig.me
echo sample | nc 10.10.2.10 1000
echo "test" | netcat -w 5 -W 1 host port ; if [ "$?" == "0" ]; then echo "OK"; else echo "UNREACHABLE"; fi
nmblookup <name>
nbtscan <netaddr>
bmon -p eth0,eth1
or nload -m
ip -br a
nmap -sn addr/mask
ifstat -i devname
wget -r --no-parent URL
journalctl -xe --pager
apt install sysbench ; sysbench cpu run
then see events per seconds ( higher better )killall gnome-shell
apt install compiz-plugins
apt install xdg-desktop-portal-gnome
to change file dialog )apt install nautilus-open-terminal
inxi
grc --colour=on tail -f /var/log/syslog
grep -r --include="*.EXT" <search-string> <beginpath>
apt-get install --only-upgrade package
apt list --upgradable
apt-cache policy package
apt-get install package=version
smem --pie=name
smem --pie name -s rss
/etc/bash.bashrc
with export LS_COLORS='di=0;34:ow=1;34'
rsync -Szv --progress src.qcow2 dst:folder
Authentication Required to Create Managed Color Device
ref
lsbusb -tv
iostat -dx 5
or for device (mb/s) iostat -sm -p /dev/DEVICE 1
partprobe <device>
apt install baobab
diff -rq DIR1 DIR2
/etc/dpkg/dpkg.cfg.d/excludes
)docker logs -f CONTAINER | grep --line-buffered -ia WORD
apt upgrade certbot python3-acme
https://drive.google.com/uc?export=download&id=DRIVE_FILE_ID
apt install xournal
convert *.jpg -auto-orient out.pdf
apt install mocp
apt install kaffine w-scan
identify image.jpg
convert input.jpg -crop wxh+x+y out.jpg
apt install mkchromecast
glxinfo -l
compare -metric AE image1.png image2.png diffout.png