Almost every Linux CLI tool that requires you to edit a file will consult the EDITOR environment variable to spawn the editor you prefer. So, if you want to use nano instead of vim, simply set it as your default editor in your .bashrc or .zshrc:
"The real measure of a great engineer is how quickly that engineer can simplify a complex problem and develop an easily understood and maintainable solution." (Martin L. Abbott, Michael T. Fisher, "Scalability Rules")
Starting my Tuesday DevOps/SRE live coding stream (a little bit late) in a few minutes at 14:20 UTC. Join me for a chat about Linux, Ruby, DevOps, or anything you like!
This afternoon, a client called me, mentioning that since they changed their connectivity provider a few months ago, they can't connect from outside anymore. The client is 500 km away, and visiting them for this issue would be uneconomical for everyone involved. They're not very tech-savvy, so guiding them through any process is nearly impossible. Suddenly, I remembered that I had initially connected their Nextcloud server to my Zerotier network for some initial setups but later revoked the authorization. Luckily, I reauthorized the machine (which was still getting its IP via DHCP from the old router, though it's always been the same due to router settings, before changing provider and router) and regained access.
I went in and altered the router configurations (replacing the unsecure, default passwords), reforwarded the ports, updated the DNS, and fixed the certificates that hadn't been updated for a while.
I'm quite satisfied with the outcome. The only concern is that the client (who are genuinely good people) may not realize how much time/cost has been saved by this approach, and might perceive any (modest) bill I send for this work as too high.
Do you need Linux skills for your job? If you'd like to learn everything important about the operating system, its tools and how to use it in everyday work, this is the course for you.
There's something about Rust that inspires developers to build modern replacements for traditional Unix/Linux commands. One example is bat, a "cat clone with wings". It adds quite a few nifty features like syntax highlighting and line numbers.
If you want to raise your shell scripts to a new level, give shellcheck a try! It'll give you valuable feedback on the style of your shell code and on possible issues with it.
"Crap, I was in the wrong directory when I untarred that package, and now it's full of stuff." Well, you can clean up just as quickly by using the list of files from the tarball:
tar tzf /path/to/ball.tar.gz | xargs -d'\n' rm -rfv
Gehälter 2023: Das verdienen Admins in Deutschland
Admins halten die IT einer Firma am Laufen. Wir zeigen, wie man Admin wird, wie der Arbeitsmarkt aktuell aussieht und welches Gehalt sie erwarten können.