Blog

Page 511 of my articles, tutorials, and thoughts

Latest Articles

Cover Image for Delete empty lines using sed

Delete empty lines using sed

Published on September 2, 2023

๐Ÿ“ How to Delete Empty Lines Using Sed ๐Ÿงน Are you struggling to delete those pesky empty lines using sed? ๐Ÿ˜ฉ No worries, we've got you covered! In this blog post, we'll walk you through a simple and effective solution to this common problem. ๐Ÿ’ช So, let's

Cover Image for Can you run GUI applications in a Linux Docker container?

Can you run GUI applications in a Linux Docker container?

Published on September 2, 2023

# Can You Run GUI Applications in a Linux Docker Container? ๐Ÿ–ฅ๏ธ๐Ÿ˜ฎ ## Introduction Are you looking to run GUI applications in a Linux Docker container? Perhaps you want to add an extra layer of security by sandboxing applications like Firefox. This guide

Cover Image for Using openssl to get the certificate from a server
security

Using openssl to get the certificate from a server

Published on September 2, 2023

# How to Use OpenSSL to Get the Certificate from a Server ๐Ÿ“œ๐Ÿ’ป So, you want to fetch the certificate of a remote server and utilize it within your Java application? No problem! OpenSSL can come to your rescue. ๐Ÿฆธโ€โ™‚๏ธ **OpenSSL** is a powerful command-line

Cover Image for Linux how to copy but not overwrite?

Linux how to copy but not overwrite?

Published on September 2, 2023

# ๐Ÿง Linux How to Copy But Not Overwrite? ๐Ÿ“‚๐ŸšซโŒ Copy-pasting files in Linux seems like a straightforward task, but what if you want to copy a directory without overwriting any existing files, even if they are older than the copied files? ๐Ÿค” Fear not! In

Cover Image for How can I kill a process by name instead of PID, on Linux?
shell

How can I kill a process by name instead of PID, on Linux?

Published on September 2, 2023

# How to Kill a Process by Name on Linux ๐Ÿš€ If you're a Linux user, you may have come across the frustrating situation where you try to start an application, only to be greeted with an error message saying "a process is already running." The solution usua

Cover Image for How to find the last field using "cut"

How to find the last field using "cut"

Published on September 2, 2023

## How to Find the Last Field Using `cut` ๐Ÿ’ฅ Finding the last field using `cut` can be a bit tricky, especially when the number of fields varies in each line. But fear not, we're here to show you a simple solution without using `sed` or `awk`! So, let's

Cover Image for How to determine SSL cert expiration date from a PEM encoded certificate?

How to determine SSL cert expiration date from a PEM encoded certificate?

Published on September 2, 2023

# How to Determine SSL Cert Expiration Date from a PEM Encoded Certificate ๐Ÿ”๐Ÿ’ปโ“ Have you ever found yourself wondering when your SSL certificate is going to expire? Maybe you have the actual certificate file and a Bash shell in Mac or Linux, but you're

Cover Image for Lost httpd.conf file located apache

Lost httpd.conf file located apache

Published on September 2, 2023

# Lost httpd.conf file located apache: A Complete Guide So, you're running an Ubuntu Linux server on Amazon Web Services EC2, and you've encountered a little hiccup - you can't seem to find your Apache config file, the httpd.conf. Don't fret! We've got yo

Cover Image for How to add users to Docker container?

How to add users to Docker container?

Published on September 2, 2023

# How to Add Users to Docker Container ๐Ÿณ Are you struggling to add users to your Docker container? You're not alone! Many developers face issues when trying to add users with specific permissions to their Docker containers. But fret not, because we've go

Cover Image for How can I assign a name for a screen?
shell

How can I assign a name for a screen?

Published on September 2, 2023

# Assigning Names to Screens in GNU Screen: A Simple Guide ๐Ÿ–ฅ๏ธโœจ If you're a fan of the command shell and a heavy user of the GNU Screen multiplexer tool, chances are you open multiple screens to manage your tasks. However, you may find yourself struggling