惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

F
Full Disclosure
Recorded Future
Recorded Future
T
Tenable Blog
S
Securelist
C
CERT Recently Published Vulnerability Notes
T
Threatpost
S
Schneier on Security
A
Arctic Wolf
The Hacker News
The Hacker News
C
CXSECURITY Database RSS Feed - CXSecurity.com
Know Your Adversary
Know Your Adversary
P
Privacy International News Feed
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
The Register - Security
The Register - Security
Cisco Talos Blog
Cisco Talos Blog
AWS News Blog
AWS News Blog
K
Kaspersky official blog
T
True Tiger Recordings
T
Threat Research - Cisco Blogs
V
Vulnerabilities – Threatpost
P
Palo Alto Networks Blog
T
The Exploit Database - CXSecurity.com
小众软件
小众软件
B
Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Microsoft Azure Blog
Microsoft Azure Blog
Cyberwarzone
Cyberwarzone
C
Cybersecurity and Infrastructure Security Agency CISA
T
Tor Project blog
Spread Privacy
Spread Privacy
Malwarebytes
Malwarebytes
P
Proofpoint News Feed
F
Fox-IT International blog
F
Fortinet All Blogs
P
Privacy & Cybersecurity Law Blog
G
GRAHAM CLULEY
量子位
Latest news
Latest news
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 叶小钗
Project Zero
Project Zero
T
Tailwind CSS Blog
N
Netflix TechBlog - Medium
Martin Fowler
Martin Fowler
IntelliJ IDEA : IntelliJ IDEA – the Leading IDE for Professional Development in Java and Kotlin | The JetBrains Blog
IntelliJ IDEA : IntelliJ IDEA – the Leading IDE for Professional Development in Java and Kotlin | The JetBrains Blog
I
Intezer
博客园_首页
腾讯CDC
H
Hackread – Cybersecurity News, Data Breaches, AI and More
D
Darknet – Hacking Tools, Hacker News & Cyber Security

Latest news

One of the most user-friendly Linux distros I've ever used is also one of the most secure I built my own Wi-Fi router with a Raspberry Pi for Starlink and solar control - here's how I quit ChatGPT for a free, private, and local AI called Ollama - here's why How I make my solar panels last long enough to pay for themselves Avoid these 8 solar mistakes that cut your power output in half - I learned the hard way I wore Google's Fitbit Air for a week, and it gives the Whoop a serious run for its money How I easily built my own Wi-Fi router with a Raspberry Pi - for Starlink and solar control You can easily make Zorin OS look any feel like Windows, MacOS, or Linux - here's how Best Buy discounted this Lenovo gaming laptop almost 50% for Memorial Day Best Buy dropped this 64GB Kingston DDR5 RAM kit by nearly $200 - and I'd consider it After wearing Sennheiser's Momentum 5, I'll never doubt the company's competitive edge again This Alienware laptop is a gaming powerhouse, and it's $650 off right now This lab-tested robot vacuum picked up more dirt than any other - and it's on sale 5 gadgets I'm buying this summer to grow my green thumb (and they're all discounted) The top 10 Memorial Day deals our readers keep buying (No. 3 is tiny yet functional) I found the best Memorial Day outdoor deals: Lawn mowers, power banks, and more These are my favorite Home Depot and Lowe's power tool deals up to $400 off this Memorial Day Best Buy and Amazon has dropped major SSDs prices - I found the best storage deals I found the best Memorial Day Walmart deals: Apple, Dyson, and more on sale The best Memorial Day laptop deals: Save on Apple, Dell, Lenovo, and more I found the best Memorial Day phone deals: Save big on Samsung, Google, Apple and more These are the best Memorial Day 2026 TV deals I've found so far My favorite Memorial Day deals: Save big on laptops, tablets, and more I tested 100x zoom on the Galaxy S26 Ultra, Pixel 10 Pro, and Razr Fold - here's who won Looking for a new computer? Save hundreds on these Memorial Day desktop deals This HP laptop is a great MacBook alternative - and it's 50% off for Memorial Day Best Buy just discounted top gaming monitors for Memorial Day I'm expanding my smart home, and these are the best Memorial Day deals I've found I test robot vacuums for a living, and these are the best Memorial Day deals right now This rugged Windows tablet handles mud and rain - but didn't impress with the basics I joyfully reunited with my first Linux distro at the Virtual OS Museum This QLED canvas art TV isn't made by Samsung, and it's $650 cheaper this weekend I've tested portable speakers from Bose, Sony, JBL, more - these deals are actually worth it Best Buy is selling this 2TB Corsair SSD for over 60% off Yes, you need a smart bird feeder in your life - and this one's on sale for Memorial Day These are my favorite gadgets to add ambiance to your home, and they're all on sale 5 iPad accessories I'll never regret buying (including a $35 Apple Pencil alternative) AT&T will give you the new Razr+ flip phone for under $5 a month - no trade-in required Hundreds of readers preordered the Fitbit Air with this deal - here's why Amazon just slashed the price of Meta Ray-Ban smart glasses - up to 25% off 7 WFH gadgets that are huge quality of life improvements This Costco deal cuts the price of membership to $45 - here's how to get it Lowe's just dropped its Memorial Day deals - I found the best ones Thinking about plug-in solar? It may be coming to your state soon Google showed me the future of Android Auto - and now I dread my own car 96% of IT pros use AI now: Their top 7 agentic applications and biggest implementation roadblocks How Sony nearly ruled spatial audio - until Apple changed music forever Samsung's free 32-inch Odyssey monitor deal is back in stock - how to qualify These Marshall ANC headphones might finally pull me away from Bose and Sony - here's why You can't install Deepin Desktop from the official Fedora repo anymore - here's why Microsoft won't send you SMS texts for login anymore - why it's pushing passkeys instead 6 pet deals you don't want to miss this Memorial Day weekend, including robot litter boxes I tested a portable battery with graphene heat dissipation - and cracked it open for proof Google's AI features just got more confusing Is Google's AI Ultra plan worth $100/month? I compared it to Plus and Pro tiers I tested Motorola's $1,500 Razr Ultra, and it's so close to being my dream flip phone The Flipper One is a full-on Linux cyberdeck that solves my biggest Raspberry Pi problem I talked to homeowners considering a battery backup - these are their biggest questions Every preorder offer on the new Fitbit Air - where to save and score free accessories We never travel without these useful gadgets - here's why Every preorder offer on the new Fitbit Air - where to save and score free accessories 5 unique Father's Day gadgets your dad will actually use Linus Torvalds admits he has a 'love-hate relationship with AI' You can get $1,500 off Samsung's 85-inch Frame Pro TV - but hurry These 8 Kindle models just lost support, but that doesn't make them obsolete How AI can trick you into making fake payments - 5 red flags 5 Memorial Day deals that are worth your time (including a Costco membership discount) Google says AI agents spending your money is a 'more fun' way to shop Ubuntu Core 26 offers an immutable Linux you can trust through 2041 51% of professionals say AI workslop lowers their productivity - stop it in 2 steps I wore Google's Android XR glasses again - and my limit-testing should scare Meta and Apple 11 cheap gadgets we've found to be highly useful (and they're on sale) Mobile phishing is a bigger threat than email now - how to stay protected TCL vs. Hisense: I've tested both TV brands for nearly a decade, and here's my pick I tested KDE Plasma 6.7 beta, and it's easily my new Linux desktop of choice Why I still recommend NordVPN to most people in 2026 We tested the most popular VPNs in New York, London, and Tokyo - this one is the best for traveling This E ink tablet is the best annotator I've tested - but there's a steep learning curve 4 Android Auto settings I always turn on for a safer ride These backyard solar panels saved me $20/mo on my power bill - here's my setup Kubuntu vs. Fedora KDE: Which KDE Plasma distro is right for you? 6 reasons why Firefox is the better browser for most users OpenAI's new image watermarks make it easier to spot AI fakes - here's how I was intrigued by Google's new video-cloning Omni AI - then I considered the implications Google overhauls its AI plans - which one should you now choose? Google's new AI Search box is here - along with agents and 5 more upgrades ZDNET Big Guessing Game: Official contest rules I tested Sony's new premium headphones, and they define practical luxury for me Apple, Sony, and Bose headphones are all on sale for Memorial Day - I found the best deals 6 Android Auto apps I wish I found sooner, because they make every drive easier Google I/O 2026 live updates: Biggest news on Android, Gemini AI, XR, and more we're seeing I tested the Surface Pro's new privacy filter, and it's Microsoft's best business feature yet Marshall Milton ANC headphones aim to combine portability with performance I used Motorola's version of DeX with my Razr Fold, and it's nearly replaced my laptop My favorite early Memorial Day deals: Save big on laptops, tablets, and more This sneaky deal gets you a month of Peacock or Paramount+ for $1 - what to know Google I/O 2026 live blog: Updates on Android, Gemini AI, XR, and more we expect Microsoft surprises with its first server Linux distribution: Azure Linux 4.0 Cloud attacks are getting faster and deadlier - 4 ways to secure your business 5 ways to fortify your network against the new speed of AI attacks
Bash vs. Fish? I've tried both Linux shells, and one makes using the command line much easier
2026-05-27 · via Latest news
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.