Blog

Page 564 of my articles, tutorials, and thoughts

Latest Articles

Cover Image for What does "rc" mean in dot files

What does "rc" mean in dot files

Published on September 2, 2023

šŸŽ‰šŸ“šŸ”„ What Does "rc" Mean in Dot Files? A Beginner's Guide! šŸ”„šŸ“šŸŽ‰ If you've ever stumbled upon files with names like ".bashrc", ".vimrc", or ".screenrc" in your Linux home folder and wondered what the mysterious "rc" stands for, you're in the right plac

Cover Image for How do I run a program with a different working directory from current, from Linux shell?
shell

How do I run a program with a different working directory from current, from Linux shell?

Published on September 2, 2023

# How to Run a Program with a Different Working Directory from the Linux Shell šŸ“‚ Are you struggling to run a program in the Linux shell with a different working directory? Don't worry, we've got you covered! In this blog post, we'll address this common i

Cover Image for Command to get time in milliseconds
shelltime

Command to get time in milliseconds

Published on September 2, 2023

# šŸ’” Get the Time in Milliseconds with a Simple Shell Command in Linux Have you ever found yourself needing to get the time in milliseconds in Linux? Maybe you're working on a script or trying to measure the performance of a specific process. Whatever the

Cover Image for How can I format my grep output to show line numbers at the end of the line, and also the hit count?

How can I format my grep output to show line numbers at the end of the line, and also the hit count?

Published on September 2, 2023

# Formatting grep Output with Line Numbers and Hit Count: A Complete Guide If you're a regular user of the `grep` command, you might have come across the need to format the output to show line numbers and the hit count. This can be particularly useful whe

Cover Image for How to terminate a python subprocess launched with shell=True
pythonsubprocess

How to terminate a python subprocess launched with shell=True

Published on September 2, 2023

# How to Terminate a Python Subprocess Launched with shell=True So, you're trying to terminate a Python subprocess that was launched with `shell=True`, but it keeps running in the background even when you try to use `p.terminate()` or `p.kill()`. Don't wo

Cover Image for How to limit depth for recursive file list?

How to limit depth for recursive file list?

Published on September 2, 2023

šŸ“ **Limiting Depth for Recursive File List in Linux** šŸ¤” Have you ever found yourself needing to get a file listing in Linux but only interested in the ownership and permissions information for the first level subdirectories? šŸ“‚ šŸ” Fear not! We've got a

Cover Image for sed command with -i option failing on Mac, but works on Linux
macos

sed command with -i option failing on Mac, but works on Linux

Published on September 2, 2023

# Command Line Magic: Fixing the `sed -i` Command on Mac šŸ§™ā€ā™€ļøšŸ’» So you've been using the powerful `sed` command on Linux to search and replace text, but when you tried it on your Mac, it blew up in your face? Fear not, my fellow tech sorcerer! We are abo

Cover Image for How can I run dos2unix on an entire directory?

How can I run dos2unix on an entire directory?

Published on September 2, 2023

šŸ‘‹ Welcome to my tech blog! Today, I'll show you how to run dos2unix on an entire directory. šŸ“‚ So you've found yourself in a situation where you need to convert an entire directory using dos2unix, but you're not quite sure how to go about it. Don't worry

Cover Image for How do I escape spaces in path for scp copy in Linux?
whitespace

How do I escape spaces in path for scp copy in Linux?

Published on September 2, 2023

šŸ“ **How to Escape Spaces in Path for SCP Copy in Linux?** Have you ever encountered the frustrating "No such file or directory" error message while using the `scp` command in Linux? Fear not, as we have the solution to this common problem. Let's dive in

Blog | Matheus Mello