Fixing My Shell
For an embarassingly long time, my shell has unnecessarily tried to initialize a console font in every kind of interactive terminal.
A place for my random thoughts about software
For an embarassingly long time, my shell has unnecessarily tried to initialize a console font in every kind of interactive terminal.
For many using Unix-derived systems today, we take for granted
that /some/path and /some/path/ are the same.
Most shells will even add a trailing slash for you when you press the Tab key
after the name of a directory or a symbolic link to one.
(The below was written by Rob Pike, copied here for posterity from The Wayback Machine)
Recently I’ve been curious about how hibernation works on Linux, as it’s an interesting interaction between hardware and software. There are some notes in the Arch wiki and the kernel documentation (as well as some kernel documentation on debugging hibernation and on sleep states more generally), and of course the ACPI Specification
If you look up how to only forward ports with ssh, you may come across
solutions like this:
ssh -nNT -L 8000:example.com:80 user@bastion.example.com
Or perhaps this, if you also wanted to send ssh to the background:
ssh -NT -L 3306:db.example.com:3306 example.com &