Posts with tag: cli


Command line tricks: Globbing basics

Sat Feb 24 2024

When working with files in the command line, you don't always want to write full file names. Maybe you are working on a group of files that has file names with a given patterns, like log files (e.g, log011023.txt)? Or maybe you want to filter out files that don't fit a given pattern? Or maybe your use case is just picking out shell scripts that starts with the letter P? In this article we will look at globbing, which can be thought of as wildcards we use in place of explicitly writing full filenames. Read on to see several examples on how they can be used to solve various command line tasks!

Read more..

The joy and wonders of browsing the web from the command line - A short introduction to Lynx

Sat Jan 20 2024

There is probably no secret that I enjoy using the command line. Modern Graphical User Interfaces (GUIs) feel bloated to me, and I often have the feeling that there are too much bloat on the screen at once. Fortunately, I can do most of my tasks in Emacs or the command line. Yes, even web browsing! Though I have to admit that I end up using graphical browsers to be able to watch YouTube and do some daily things like internet banking. I have briefly mentioned Lynx and terminal web browsing in previous articles, but I have never really showed it in detail. Today is the day we are finally going to look at web browsing from the command line!

Read more..

QEMU user space emulation in Linux

Sat Nov 19 2022

Most people know of QEMU for emulating a full operating system for various architectures, but did you know that it can also do single executables in its user-mode emulation? That means that you can run programs compiled for another architecture, but with the same OS (we are not emulating that part after all), on the machine you are using. I did not know about it until recently, but I'm very happy I learned about it! So today I will show it to you, so you also know about it if you ever need it!

Read more..

Small command line tricks you should know

Tue Oct 18 2022

This time we will look at some small command line tricks that will improve your productivity. By command line, I am off course referring to bash or similar Unix-style command lines. If you know the complete basics, and want to expand your knowledge a bit, I hope this short article will help you!

Read more..

sed - more than replacements

Sat Oct 15 2022

sed is a very popular command line program for doing various forms of edits to text input. Most people probably use it for simple replacements, and that is also what the most popular use case is. Did you know that you can use it for way more? Including as a simple grep replacement? Or get a cut portion of a file (e.g, between two timestamps in sorted log files)? In this article we will take a quick look at sed and what you can use it for.

Read more..

Summer learning tips! - Programming, DevOps and retro

Wed Jun 29 2022

Summer means that time off work are coming closer and closer for some of us! In my off time I enjoy using extra time on learning and reading. Today, I will share with you some tips for topics that I enjoy, that you could look into if you want to look at something new.

Read more..

Creating container images with Ansible (using ansible-bender)

Thu Mar 17 2022

Did you know that you can use Ansible to make container images? It's actually a very readable way to create images compared to some Dockerfiles you find online (if you don't think so, you have probably never read one that is 100+ lines). In this article we will look at building images using ansible-bender, which makes for a good way to make images with Ansible with minimal fuzz.

Read more..

Introduction to Ansible

Thu Mar 10 2022

More automation! Ansible is a great tool to automate the configuration and handling of your computers. I have to admit I put off looking into Ansible for the longest time, simply because I underestimated how powerful it is! At the surface it seems like just another configuration management tool, but it is not just a way of running shell scripts like some may get you to believe. It comes with great tooling, and have great features that help you get going fast. In this article I will focus on the complete basics to get you started, and there will be features I won't cover here. Hopefully you will be aqainted with a few terms, and get some links that will help you explore these features further. Are you ready to learn the best automation tool for setting up computers?

Read more..

Even more cool CLI tools for you to try!

Sat Dec 11 2021

There are many cool tools for the command line out there! I always look out for new ones that can make me more productive, or maybe ones that just spice up my command line a bit. In this post I will share some tools like this with you, and also share some I'm not really super familiar with, but trying out. If you also love trying new command line tools, then this post is probably for you!

Read more..

Become a Maven ninja!

Mon Oct 11 2021

Today we are going to look at some small tricks that will make you more effective when using Maven! Some of this will be simple, and some of them you might not have heard about. I've done some presentations at work and similar earlier about this, and there is almost always something new to people. The topics range from basic usage and flags, to ways of handling your dependencies. One or two might be a bit enterprise specific, but most can be useful no matter if you program inside a company or not. (no secret that I love those of you who, like myself, LOVE computers with a burning passion! <3 )

Read more..

A no-nonsense beginner guide to the command line

Sat Oct 02 2021

In this article I will introduce you to the command line, or bash equivalent ones at least. These are the command lines you find in operating systems such as GNU/Linux, Mac OS X, BSD-family, and more. On Windows, you can use the Linux Subsystem, Cygwin, Git Bash or something else as well. There are many options here! On some systems these applications can be found as Terminal, Terminal Emulator, Command Line, or something similar. This guide is structured with different headings, each covering different topics related to the command line. In the info-boxes, you will find extra information that might help you with terminology or other things that will help you. Most of this information is optional, so don't be scared if there is something you don't completely understand the first time you read it. Let's get started on your journey to learn the command line!

Read more..

More cool command line tools!

Wed Aug 04 2021

A while ago, I made an article on cool command line tools. Maybe you got inspired to try some new ones? Are you as in love with the command line as I am? Time for another round of "cool command line tools"! Feel free to share your favorites in the comments! :)

Read more..

Cool command line tools

Sun Aug 30 2020

There are a lot of cool CLIs in Unix and GNU/Linux based operating systems to check out. Here we will look at some very useful ones, and one very fun one at the end. None of them will be standard tools that is already installed on your Mac OS X or GNU/Linux setup by default! This article would be very boring if I just listed some tools, so I include some screenshots :)

Read more..