Bash vs. Fish? I’ve tried both Linux shells, and one makes using the command line much easier


fishhero

Jack Wallen/ZDNET

Follow ZDNET: Add us as a preferred source on Google.


ZDNET’s key takeaways

  • The Linux shell enables communication with the kernel.
  • The default shell for most distributions is Bash.
  • There’s a much more user-friendly option, called Fish.

Essentially, the Linux shell interprets commands so the kernel can understand and use them. Without the shell, not only would commands not work, but applications wouldn’t work.

So, yes, the shell is very important.

Most Linux distributions default to the Bash shell, which stands for Bourne Again Shell. Why “Bourne”? Because Bourne shell was the first shell, and Bash is an improvement on that. With Bash, you can write bash scripts that can do just about anything. However, Bash has been around for a very long time, and it really hasn’t changed much.

Also: I joyfully reunited with my first Linux distro at the Virtual OS Museum

The good news is that there are alternatives, and one of those alternatives adds features that Bash has neglected. That shell is called Fish (Friendly Interactive SHell). The big difference between Bash and Fish is that Bash feels like it works for you, and Fish feels like it works with you.

That might not make sense at first, but let me explain.

The difference between Bash and Fish

When you run a command in Bash, you type it, hit Enter, and wait to see if it worked. Bash doesn’t help you; it just accepts the command and attempts to run it. That’s it.

Fish behaves a bit differently. When you start to type a command in Fish, it will offer suggestions (based on your history). When you see a suggestion that works for you, hit the right-pointing arrow key to accept a suggestion. For example, you might type ssh, and Fish will then present a suggestion like ssh 192.168.1.26. Hit the arrow key and then hit Enter.

Also: The first 5 Linux commands every new user should learn

You might also notice that Fish uses colors. For example, if you type an invalid command, Fish will color it red. If you alter an invalid command to make it valid, it turns blue.

If you start typing a file path, it’ll appear red, and as soon as the path is valid, it’ll turn blue.

When you start typing a command, pressing Tab will display several suggestions. You can then use your arrow keys to scroll through the list and select the command you want to run.

You can also set variables in Fish with the set command. For example, if I want to set a variable called name to my name, I could type:

set name jack

Now, I can use that variable like this:

echo “My name is $name”

Also: Why Wave is my new go-to terminal app – how I use this powerful tool

The response will be:

My name is jack

Fish is user-friendly in other ways. For instance, in Bash, you use back ticks (`) to indicate a command, which can often be confusing. In Fish, commands are placed in parentheses like this:

echo (whoami) in (pwd)

The results of the above command would be:

jack in /home/jack

You can also set abbreviations for commands (similar to aliases in Bash). Let’s say you use the git checkout command a lot and want to make it a bit more efficient. If you want to create the abbreviation gco for that command, it would be:

abbr –add gco git checkout

Or you could set several ssh abbreviations, like so:

abbr –add ssh11 “ssh 192.168.1.11”
abbr –add ssh12 “ssh 192.168.1.12”

Now, when you type ssh11, you’ll connect to 192.168.1.11, and if you type ssh12, you’ll connect to 192.168.1.12.

Also: The best Linux distros for beginners

Those abbreviations remain, even after logging out.

Fish also includes a handy calculator. For example, you could type:

math 5020/220

The answer (22.818182) will be presented at the prompt.

Installing and setting the Fish shell

Fish can be installed from your distribution’s standard repositories. For example, in Ubuntu, the command to install Fish would be:

sudo apt-get install fish -y

On Fedora, that command is:

sudo dnf install fish -y

On Arch, the command is:

sudo pacman -S fish

Once you’ve installed Fish, you must set it as the default shell with the command:

chsh -s $(which fish)

Also: 5 surprisingly productive things you can do with the Linux terminal

If you wind up not liking Fish (you will), you can change it back to Bash with:

chsh -s $(which bash)

And that’s the Fish shell. Remember, if you teach someone to Fish… you empower them for a lifetime.





Source link

Leave a Reply

Subscribe to Our Newsletter

Get our latest articles delivered straight to your inbox. No spam, we promise.

Recent Reviews


Modern displays are amazing when it comes to detail, brightness, color, and all the ingredients that make for an impressive picture—except motion clarity.

CRT screens are still the king of motion clarity, but plasma flat-panel screens hold a respectable second place, and in many ways I still miss my old 720p 51-inch plasma TV and the crisp motion I gave up by switching to a 4K LCD.

Plasma solved motion the “right” way

Plasma displays didn’t just show an image—they flashed it.

While they operate on different principles, CRTs and plasma TVs have a few things in common. First, the phosphors used by CRTs and plasma displays are the same. Second, because these phosphors fade quickly, they need to be continuously refreshed.

In a CRT, the electron beam scanning from the top to the bottom of the screen achieves this, and in a plasma, a high-speed electric pulse does the same. Because of this rapid pulse-and-fade, these screen technologies have crisp perceptual motion, since our brains tend to interpret moving images that don’t pulse as “smearing” across our retinas.

The pulsing nature of plasma technology isn’t the only reason for its better motion reproduction. These screens also have very low latency and very fast pixel response times. Combined, it’s not quite as good as CRT motion handling, but it’s significantly better than LCD and OLED technology, even today.

Modern TVs rely on sample-and-hold—and that’s the problem

Stand and deliver blurry images

Blur Busters UFO Test

Modern LCD and OLED televisions are “sample and hold” technologies. They can hold each frame of video perfectly for the entire duration of that frame without deviating in brightness and then instantly snap to the next frame without any dipping to black in-between.

On paper, this sounds like a good thing, but your eyes don’t stay still when tracking motion. As they follow a moving object, the image being held on screen effectively drags across your retina, creating the perception of blur. Even if the panel itself is perfectly sharp.

You might not even realize how blurry motion is on modern displays if all you’ve ever seen with the naked eye is an LCD or plasma. However, if you see a CRT or plasma in person, the difference is quite striking.

The sample and hold issue means that no matter how much you increase the refresh rate, that type of blur persists. It’s why my 85Hz CRT monitor is clearly less blurry in motion than my 240Hz LCD monitor. It’s especially apparent when you’re playing 2D games that scroll the entire screen, with LCDs or OLEDs smearing the image in a way that gives me a bit of a headache if I’m being honest.

Playing Diablo 2 on a CRT. Credit: Sydney Louw Butler/Shutterstock.com

It creates this weird situation where a modern TV can be incredibly sharp in a freeze frame but somehow look softer than a lower-resolution display that isn’t sample and hold as soon as you press play.

Motion interpolation is a workaround, not a solution

It’s an abomination, that’s what it is

One of the “fixes” that TV makers came up with to reduce unwanted motion blur is a technology known as frame interpolation, or more commonly “motion smoothing.” Here an algorithm creates fake frames that guess at what the middle step of motion would look like if it were captured. This creates a high frame-rate video output, which we see as smoother and more crisp.

While this doesn’t take away sample-and-hold blur, it does improve motion clarity. Unfortunately, it also destroys the intended frame rate that shows and movies were meant to be seen at. It’s also useless for video games, because it introduces an enormous amount of input lag. NVIDIA’s DLSS technology is also frame interpolation, but it works for games because of several mitigations NVIDIA put into the technology. These measures don’t exist on TVs.

While some people think motion smoothing isn’t all bad, TV makers are no longer activating it by default as much anymore, and my advice is to always turn it off because the trade-offs are just not worth it.

Screenshot 2025-07-01 at 9.21.03 AM

7/10

Brand

TCL

Display Size

85-inches

The 2025 model TCL QM6K Google TV delivers a stunningly clear and bright picture with a new Mini-LED panel, improved local dimming zones, Dolby Vision IQ, and a neat new Halo Control system for improved visuals. Get this TV and elevate your living room. 


Black frame insertion tries to recreate plasma—but comes with trade-offs

Who turned out the lights?

The other trick sample-and-hold screens have to mimic what CRTs and plasma TVs do naturally is called BFI, or Black Frame Insertion. As the name suggests, the display inserts a full black frame between every original frame. This provides an instant and dramatic increase in motion clarity. However, it also has a big impact on brightness. As much as half of the light is now gone, so the image is much dimmer. Pushing overall brightness to compensate makes things hotter and more energy-hungry.

Some BFI implementations cause visible flicker, for which I personally have no tolerance at all, but the biggest problem here is that BFI doesn’t have the smooth pulsing roll off of the phosphors used in CRTs and plasma.


The future might circle back—but we’re not there yet

That might be changing, however, because a new generation of LCDs can leverage the power of multi-zone backlight technology to strobe the backlight across the screen in a way that mimics a CRT scanline.

NVIDIA’s G-SYNC Pulsar has received rave reviews from the biggest motion blur haters, and I sincerely hope that a similar technology becomes standard in TVs going ahead, so we can go back to enjoying the crisp motion we used to have without all the compromises.



Source link