Post by tag: linux

using patch command with git, and how to reverse it
2026/11/24 git linux terminal
The patch command is an old tool that is still useful when changes need to move between machines without push or remote access. A typical case is an old server without git access, or a small fix that …

port knocking with knockd, hiding ssh from the internet
2026/11/23 linux security network
I have a small vps that I use for everything, and the auth log on that machine is just bots trying ssh passwords all day long. fail2ban helps, but it still feels wrong to expose port 22 to the whole …

Add new mode for display using xrandr
Generate new mode for xrandr using cvt $ cvt 1600 900 # 1600x900 59.95 Hz (CVT 1.44M9) hsync: 55.99 kHz; pclk: 118.25 MHz Modeline "1600x900_60.00" 118.25 1600 1696 1856 2112 900 903 908 934 …

Get absolute link on nix/linux
2015/03/04 unix linux command-line
$ cat script.sh #!/usr/bin/env bash THIS_FILE=$(readline -e $) THIS_DIR=$(dirname $THIS_FILE) echo $THIS_DIR source

Kill defunct process on nix/linux
2015/01/13 linux command-line
$ ps aux | grep name $ pstree -sp $ ps -ef –forest kill the parent