Get Filename From Path in Bash

Directory names can be part of a path even when a Bash script needs only its final component. GNU basename prints that component, while Bash parameter expansion can remove the directory portion from a variable. This article shows how to use both methods and explains what happens when a path ends in a slash. TL;DR

Get Filename From Path in Bash Read More »

How to Use Vim as an IDE

Project work calls for an editor workflow that fits the tools each project uses. An IDE combines editing with project-level tools, and Vim is a modal text editor that you can extend with plugins. I’ll show you how to set Vim’s basic options and add Git actions with vim-fugitive. TL;DR: Build Vim Around the Features

How to Use Vim as an IDE Read More »

What Is /dev/null in Linux?

To control what a Linux command displays, choose which output stream to redirect. The Linux device /dev/null discards data written to it and supplies an empty input stream when a command reads from it. I’ll show how to discard one output stream while keeping the other visible, and how to check a command’s exit status

What Is /dev/null in Linux? Read More »

Desktop Environment vs Window Manager

Choosing a Linux graphical session means deciding which parts you want ready and which you want to configure yourself. A desktop environment coordinates a complete graphical session, while a window manager handles how application windows are arranged. This article explains how their roles differ and helps you choose between a coordinated desktop and a standalone

Desktop Environment vs Window Manager Read More »