5 examples to create multiple directories in Linux

Overview Here we will show couple of ways/tips/hints on how to create multiple directories in Linux. The steps we want to cover in this article are how to create multiple directories in linux and sub-directories with the mkdir tool and for each individual example to create the directories with only one command. In other words, we want to run one mkdir command in terminal that will enables us to create multiple directories and sub-directories at once. For those are curios and keen on to learn, we also covered the steps on how to delte folders in this »>POST«<. ...

August 30, 2024 · 4 min · 649 words · MarkoN

How to upgrade Debian 11 to Debian 12

How to upgrade Debian 11 to Debian 12 Overview Hi there fellow Linuxers! On today’s article we’re all about how to upgrade Debian, in this case, how to upgrade Debian 11 to Debian 12. For my upgrade scenario, I’ll be using a VM that runs Debian I use for one my Docker servers for my home lab and is in dire need for an upgrade. Gathering info To check your exact version you can use: ...

August 30, 2024 · 4 min · 701 words · MarkoN

How to delete lines from a file using sed

How to delete lines from a file using sed Overview Today we’re looking at one of the powerfull tools you can add in your Linux toolbelt and yet underrated standard tool – sed. Sed, shortly for stream editor, is a command with which you can do various actions on a file, amongst which are search, find and replace, insert or delete. And “delete” part is what we’re focused at this time, meaning that we’re covering various methods how to delete lines from a file using sed. Without further ado, let’s get our hands busy, so you’ll see how handy sed really is. ...

August 29, 2024 · 4 min · 800 words · MarkoN

How to kill a process in Linux

How to kill a process in Linux Overview Hi there fellow Linuxers. Hopefully you’re all well, primed and ready for new learning adventure because this one is going to be one hell of a ride. Every Linux user that comes to age faces this so-called rite of passage. The very moment you start killing processes is very moment that you entered Linux adulthood. I’m joking of course, but it’s not far from the truth. A moment you start carrying out ‘seek and destroy’ missions on processes is a moment that you’re a on path to be an experienced Linux user. ...

August 28, 2024 · 6 min · 1183 words · MarkoN

Mount a network shared drive on Linux

Overview In this post we will go through the process on how to mount a network shared drive on Linux. We are going to cover the methods with cifs-utils in order to mount the network shared drive with the SMB protocol and the NFS share as well, by using the nfs tools. Also in this post, we will cover the steps how to mount the network drives permanently and to mount automatically on boot. ...

August 27, 2024 · 7 min · 1373 words · MarkoN

Mastering Linux file permissions: A Deep Dive

Linux file permissions Overview Hi there fellow Linux explorers! Are you ready to take another dive into the depths of Linux waters? Hopefully you’re ready for today’s topic, because we’re about to dwell in linux file permissions and try to learn and explore as much as possible of this in-depth topic in a single post. File permissions in Linux explained As a beginner you’ve probably been puzzled the first time you listed files and folders. ...

July 31, 2024 · 11 min · 2199 words · MarkoN

Rename files and directories in Linux

Rename files and directories in Linux Overview Hello there Linux aficionados! Today’s chapter is all about how to rename files and directories in Linux using many different tools in cli and applying various diferrent techniques. We’ll also cover some example how to rename multiple files and directories in linux, aka - batch renaming. Last time we discussed how to copy files and directories and I mentioned ‘mv’ command. Like its name suggests, it’s used primarily for moving files or directories from one destination to another, practically doing cut & paste operations. But appart from that it’s also capable of renaming the files and directories as well and we’re going to start of this post with introducing the rename files and directories in linux with ‘mv’. ...

April 4, 2024 · 8 min · 1551 words · MarkoN

Copy Files and Folders in Linux

Overview Hello fellow Linux enthusiasts. Hope you’re all well and ready to broaden your knowledge. Today’s topic will be about how to copy files and folders in Linux. And no, it’s with “right-click and copy file”. We do this the cool way, the terminal way. Just kidding… without much further delay let’s get our hands dirty. We’ll be covering several different methods and tools we can utilize that will allow us to perfom the copy actions for various scenarios and use cases. ...

December 24, 2023 · 8 min · 1556 words · MarkoN

25 essential Vim commands for navigation and editing

Overview Vim is an extremely powerful text editor and can be especially useful when editing larger files. It can speed up/ease up the process. We’ll be looking at some essential Vim commands for navigation and editing text.This article focuses on every day Vim usage, meaning - to help out or increase productivity for a individual or to jump start their journey working in Vim(vim navigation and editing). Vim has multiple working modes and in this post we’ll cover - Normal, Command, Visual and Insert mode, which are modes for every day usage. ...

December 23, 2023 · 5 min · 1057 words · MarkoN

Setup a passwordless SSH connection on Linux

Overview Previously we have covered a process on how to change SSH port on your remote server(POST). Next in this article, we will show you how to setup a passwordless SSH connection on Linux. To setup a passwordless SSH connection is very secure and a good practice for hardening your server. It is more secure than any other strong password, really difficult to hack and effortless to set up. ...

December 19, 2023 · 6 min · 1136 words · MarkoN

How to setup a cron job in Linux

Overview The following article will cover the basics of cron scheduler and showcase couple of examples on how to setup a cron job in Linux. Periodically, you want to perform certain task at specific time, like sending disk space report of server or take database backup every night. It will be really wonderful if you can perform such kind of task automatically rather than repeat it and doing it manually, right? ...

December 19, 2023 · 6 min · 1123 words · MarkoN

How to set a static IP address in Linux

Overview Hi! I hope you’re all well and prepared to learn some new stuff. This time we’ll go through the basics of how to set a static IP address in Linux. In case that this stirs a question is there another type (let’s say dynamic, perhaps?), answer is yes, there is! There is a protocol for assigning dynamic IP addresses called Dynamic Host Configuration Protocol or DHCP shortly. Most likely that you have a dynamic IP address assigned by your router in home environment! ...

December 19, 2023 · 6 min · 1201 words · MarkoN