How to avoid recording commands to history in Fish Shell

In certain situations, you may need to run commands in the shell without having them saved in the shell history. If you are using Fish Shell, which happens to be my default shell, you can accomplish this quite easily. The following steps outline how to achieve this: Start a new shell instance with the following command: fish --private This will initiate a new shell session that will not record any commands to the history....

How to Use the macOS Terminal for Programming

The terminal is an essential tool for programmers, allowing you to perform tasks that would otherwise be impossible. Here’s a guide on how to use the terminal in macOS: Opening the Terminal: You can easily find the Terminal app by searching for “Terminal” in Spotlight or navigating to the Applications folder, opening the Utilities subfolder, and locating the Terminal app. Understanding the Shell: When you open the Terminal, you’ll see a screen similar to this: The “bash-3....

Linux Commands: Echo - A Quick Guide

The echo command is a versatile tool that is used to print the argument passed to it. In this guide, we will explore the various ways you can use the echo command in a Linux environment. To begin, let’s look at a simple example: echo "hello" When this command is executed, it will print hello to the terminal. Appending the output to a file is also possible with the echo command:...

Shell Command for Monitoring File Content in Real-Time

In this blog post, we will explore the tail command, a highly useful tool in the UNIX command line. This command is available on most Unix-like systems, including macOS and Linux. According to the tail command’s man page, it allows us to display the last part of a file. Here is an example screenshot of the man page for reference. One common usage of the tail command is to display a specific number of lines from the end of a file using the -n option....

The Fish Shell: An Introduction to the Best Shell for Developers

I have been using the Fish Shell for months now, and I can confidently say that it is the best shell I have ever used. While many people stick with Bash or use Zsh with tools like Oh My Zsh, Fish Shell offers a more powerful and customizable option right out of the box. Bash is a basic shell with limited configuration options, making it more suitable for running Bash scripts rather than as an interactive shell....