The command list bash/zsh gives you with `history` is numbered. You can repeat a specific command with `!<number>`. A bit convoluted. What I do more often is repeat the previous command with `!!`. For example, when I forgot to use `sudo`, I simply go `sudo !!`.
Jochen Lillich
@geewiz.dev
I'm a greybeard geek and IT operations black belt. #DevOps and #SRE trainer/mentor. German living in #Ireland. Likes #Linux, #Ruby and #MechanicalKeyboards. He/him.
You might be familiar with the Linux shell aliases that you can use to run complicated commands by typing a more convenient one. But did you think of using aliases to automatically fix typos? For example, why not save yourself from going "Gerp" by defining `alias gerp=grep`?
To insert the argument of the previous Linux shell command, press Esc, followed by a period. There's also a useful shell variable: `mkdir my_new_directory ; cd $_`
New on my personal blog: "Weeknote 32:2026" www.geewiz.dev/2026/08/07/w...
📖 Interesting read: "My Reason for Building" zerousers.dev/posts/my-rea... #genai #mentalhealth #softwareengineering
🚨LIVE NOW!🚨 DevOps/SRE Instructor Livestream On this lovely Thursday, let's chat about #Linux #SystemAdministration, #SelfHosting, or any other topic in the #DevOps and #SRE space you're interested in! monospacementor.com/live-stream/
🚨LIVE NOW!🚨 DevOps/SRE Instructor Livestream On this lovely Wednesday, let's chat about #Linux #SystemAdministration, #SelfHosting, or any other topic in the #DevOps and #SRE space you're interested in! monospacementor.com/live-stream/
Linux shell tip: Make a quick backup copy `cp originalfile{,.bak}` This command copies `originalfile` to `originalfile.bak` using brace expansion for the name suffixes "" (nothing) and ".bak".
Are you doing backups of your important files? Yes? Great! And when did you last test if your backup can be restored successfully?
📖 Interesting read: "The Value of Domain Knowledge in Software" www.gustavwengel.dk/value-of-dom... #softwareengineering
📖 Interesting read: "System of a test: Proper browser testing in Ruby on Rails" evilmartians.com/chronicles/s... #ruby
Link to podcast I did with @thejournal.ie this week on fires, why the hills are flammable when they should be wet and why we need to get serious about rewilding www.thejournal.ie/podcasts/66f...
Could nature itself help stop Ireland's wildfires?
Read, share and shape the news on TheJournal.ie - Breaking Irish and International News
thejournal.ie
📖 Interesting read: "The Friction Is A Feature, Not A Bug: Teaching and Mentoring in the Age of AI" dev.to/yechielk/the...? #genai #softwareengineering
I've never been more productive than I have with AI. I've also never been more depressed.
Let’s assume for a second AI is making you more productive. Is it making your life any better? Are you healthier? Happier? Have more free time? Have richer social lives? Greater fulfillment? I’m not being hyperbolic, the main thing AI has increased in my life is misery. How am I supposed to act?
Astonishing attack on civil society and environmental justice by a government lacking either vision or basic competence. www.thejournal.ie/jack-chamber...
Chambers claims climate law has been 'weaponised' by NGOs to halt infrastructure projects
Friends of the Earth have said disapplying climate laws sets ‘an alarming precedent’.
thejournal.ie
"Neither Chambers or O'Callaghan have displayed any ability to do the job of being Taoiseach. But that's not the job they're trying to be hired for. They're auditioning to be the leader of the Fianna Fáil" www.thegist.ie/the-gist-who...
The Gist: Who Will Lead FF Next?
We're hurtling towards silly season, so let's just have some FF fun. This is the Gist.
thegist.ie
Southern Europe and Northern Africa are on fire, more than 10000 people so far in Europe have died because of the heat. And that's just the beginning. These people as well as their fossil fuel buddies should be tried for what they're doing.
Astonishing attack on civil society and environmental justice by a government lacking either vision or basic competence. www.thejournal.ie/jack-chamber...
A campaign to engage voters in Belmayne provides a model to learn from, says a new report. As voting turnout declines, the Belmayne Social Inclusion Voting Campaign looks to simple tools to mend the divide.
Campaign to engage voters in Belmayne provides a model to learn from, says a new report
As voting turnout declines, the Belmayne Social Inclusion Voting Campaign looks to simple tools to mend the divide.
dublininquirer.com
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." - Brian Kernighan
Git tip: Create a `.gitmessage` template file and set it with `git config commit.template ~/.gitmessage`. Consistent commit messages improve team communication and project history. #Git
Homelab tip: Set up Prometheus with node_exporter on all machines. Monitor CPU, memory, disk, and network. Grafana dashboards make trends visible.
Linux tip: Use `systemctl --failed` to quickly identify which services failed to start after boot. Much faster than scrolling through journal logs when troubleshooting system issues. #Linux #SystemAdministration #SysAdmin
Linux tip: Set `HISTCONTROL=ignoredups:erasedups` in your init script to prevent duplicate commands cluttering your history. Clean history makes command recall much more efficient. #Linux #SystemAdministration #SysAdmin
I’m delighted with my setup of the Niri window manager. It’s quick, gives me unlimited space on each workspace, and I can exercise my #MechanicalKeyboard. If you’re interested how I set up Niri, systemd and Waybar, check out my dotfiles: gitlab.com/geewiz/dotfi...
Jochen Lillich / dotfiles · GitLab
My collection of configuration files for zsh, tmux, i3 and many other applications.
gitlab.com
Git tip: Use `git commit --fixup <hash>` for small fixes, then `git rebase -i --autosquash` to automatically organize them. Keeps commit history clean during development. #Git
Shell tip: `${var%suffix}` removes the shortest matching suffix. `${var%%suffix}` removes the longest. `${var#prefix}` and `${var##prefix}` work the same for prefixes. Mnemonic: # comes before % on the keyboard. #Linux #SystemAdministration #SysAdmin