Almost every Linux CLI tool that requires you to edit a file will consult the `EDITOR` environment variable to spawn the editor you prefer. If you want to use `nano` instead of `vim`, set it as your default editor like this:
`export EDITOR=nano`
Almost every Linux CLI tool that requires you to edit a file will consult the `EDITOR` environment variable to spawn the editor you prefer. If you want to use `nano` instead of `vim`, set it as your default editor like this:
`export EDITOR=nano`
Linux tip: Use βss -tulnβ to check for open ports. Filter specific port numbers by adding β| grep :80β, for example.
π Learn more in my course: monospacementor.com/courses/lins...
#Linux #SystemAdministration #SysAdmin
If you want to raise your shell scripts to a new level, give this a try! It'll give useful feedback on the style of your shell code and on possible issues with it.
www.shellcheck.net
PS: Know when to switch to a proper programming language.
#Linux #SysAdmin #SystemAdministration
In many of my projects, I need to run sets of commands both on my workstation during development, and later in a CI/CD pipeline to ship my changes. The solution: Taskfile is a modern take on the classic Makefile, but more capable and less fiddly.
taskfile.dev
If your terminal ever gets confused by random control sequences, for example after you accidentally output binary data, there's a good chance you can restore order with the `reset` command.
#Linux #Shell #SystemAdministration #SysAdmin
The `find` command on Linux is as useful as its argument list is hard to construct.
A refreshing alternative is `fd`. I can just type `fd PATTERN` instead of `find -iname '*PATTERN*`. And holy cow, is it fast!
github.com/sharkdp/fd
π Interesting read: "The Noble Path"
www.joanwestenberg.com/the-noble-pa...
#business #mentalhealth #opensourcesoftware
I've been using the Starlite tablet for a long time. It's a decent 2-in-1 device for daily Linux use.
We need devices like the StarLite thelibre.news/we-need-devi...
I had forgotten about Amanda backup. I used it in my early Linux days, and wouldn't have thought it's still in use.
The Amanda backup system and "dump promotion" utcc.utoronto.ca/~cks/space/b...
Time to install #Bluefin on my Starlite tablet!
π Interesting read: "The science-based benefits of writing"
nesslabs.com/science-base...
#writing
New Events post in The Server Room: "Bonus Hangout" community.monospacementor.com/t/364
If you'd like to benefit from our community's knowledge, join us: monospacementor.com/devops-learn...
βοΈ Interesting project: github.com/gcormier/meg...
Open-source IKEA Bekant controller board
New Courses post in The Server Room: "How can I make Office Hours more beneficial for you?" community.monospacementor.com/t/363
If you'd like to benefit from our community's knowledge, join us: monospacementor.com/devops-learn...
π Interesting read: "I Sold Out for $20 a Month and All I Got Was This Perfectly Generated Terraform"
matduggan.com/i-sold-out-f...
#genai #softwareengineering
New Basic Linux System Administration post in The Server Room: "Module 6: Networking Fundamentals" community.monospacementor.com/t/362
If you'd like to benefit from our community's knowledge, join us: monospacementor.com/devops-learn...
If you think that mastery requires you to be a β10x engineerβ and displaying the most βleet of skills, youβre mistaken. Most of mastery is a mastery of the basics.
monospacementor.com/2024/05/engi...
I can't think of a Linux shell command that I use more often than `ls`. But these days, my `ls` is an alias for `eza`, a modern directory listing command written in Rust for Linux and macOS. It has more features, is faster and more user-friendly.
github.com/eza-communit...
Is growing your Dev/Ops skills important to you? My no-fluff newsletter has my βMentor Monologueβ column, news from my #DevOps membership community, and a bunch of useful reading recommendations.
monospacementor.com/devops-know-...
Tabs vs spaces has always been a controversial topic. Thankfully, #vim isn't biased in any way.
To convert spaces to tabs, use `:set noexpandtab`, then `:retab!`.
Convert tabs to spaces with:
:set expandtab
:set tabstop=4
:set shiftwidth=4
:retab
π Interesting read: "Smalltalkβs Browser: Unbeatable, Yet Not Enough"
blog.lorenzano.eu/smalltalks-b...
#softwareengineering
βοΈ Interesting project: github.com/reznikmm/oll...
Ollama API library in Ada
The /proc filesystem was a genius idea giving the #sysadmin direct control of the Linux kernel. In this article, David Both explains how to change kernel parameters at runtime.
www.redhat.com/sysadmin/lin...
βοΈ Interesting project: github.com/BrentSeidel/...
CPU Simulations written in Ada
Test-Driven Development is a bit like daily exercise. We know it's good for us, but putting it in practice requires so damn much willpower. Hereβs a talk that outlines a helpful way to think about TDD: monospacementor.com/2023/08/test...
Did you know that you can literally multiply array elements in #Ruby?
`[1, 2, 3] * 3 # => [1, 2, 3, 1, 2, 3, 1, 2, 3]`
And with a scalar string, itβs a shortcut for `join`:
```
h = { a: 1, b: 2}
h.map { |pair| pair * "=" } * ", " # => "a=1, b=2"
```
π Interesting read: "What AI coding costs you"
tomwojcik.com/posts/2026-0...
#genai #softwareengineering
I code in the Linux shell with tools that follow the Unix philosophy, "Do one thing, and do it well". One of these tools is `ripgrep`. It's like `grep`, but searches recursively by default, and can filter file types (`-trb` for Ruby).
github.com/BurntSushi/r...
Seeking a supportive environment to enhance your #DevOps knowledge? With "The Server Room", I offer an inclusive space for professionals to connect, learn, and grow together. Join us, and take your skills to new heights!
β monospacementor.com/devops-learn...
Linux tip: Use βsed -n '100,200p' largefile.txtβ to extract a specific line range of a log or text file.
π Learn more in my course: monospacementor.com/courses/lins...
#Linux #SysAdmin