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....
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:...
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....
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....
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....
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....
How to Install Docker using Ansible[Ubuntu/Debian]
Overview This article will showcase a process how to install Docker using Ansible. We’ll be covering two different approaches how to install Docker with Ansible, one for production environment and other for development/testing purposes. This process can be applied on any type of Linux machine - bare metal, VM or a cloud VM instance. For this example we’ll be running the playbook on Ubuntu 24.04 LTS. Side note - we also covered a process how to deploy Docker containers using Ansible - The process can be looked at this post, and how to deploy Nextcloud and Wordpress on Docker using Ansible....
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....
Deploy Nextcloud on Docker using Ansible
Overview In this article we are going to go through the steps how to deploy Nextcloud on Docker using Ansible. Purpose of this procedure is to automatize the deployment process of Nextcloud on Docker with the Ansible playbook. In order to deploy nextcloud on docker using ansible successfully, there are some requirements first to configure(listed bellow in the prerequisites) Prerequisites Docker installed and running on the target host machine(Docker installation can also be automated with Ansible - link to the POST) SSH access enabled on the remote hosts with the login parameters preset in the Ansible hosts file Ansible installed on client machine(your machine) Installed Python and Python docker module for Ansible on target machine Installed Python on your local machine Install Python Docker module for Ansible Most Linux distros have Python3 preinstalled but for others the Python Docker module that Ansible uses may be missing....
Deploy Docker container using Ansible
Overview This article will showcase the steps how to deploy docker container using Ansible on a remote Linux machine. This will enable us to automate the process of Docker container deployment, when required, on a multiple remote Linux hosts, with a preset of environment variables and configs for the needed Docker container. Prerequisites In order to successfully deploy Docker container using Ansible on a remote Linux machine, there are following prerequisites that are required:...
Clone a git repository with ansible
Overview One of cool things that Ansible can do is to clone a git repository and that’s what we’ll be talking about in this article - how to clone a git repository with Ansible. This enables us to have an automated solution for various setup processes(ie, downloading and setting up a dev environment on a remote location, need of download a script that needs to execute after the git repo is cloned, etc… )....
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....