The sys admin's daily grind: Fish

Fishy Business

Article from Issue 161/2014
Author(s):

Columnist Charly serves up Fish as the "shellfish" of the day. His conclusion: tasty, but not something you would want every day.

The Friendly Interactive Shell (Fish) [1] is something that attentive readers of this magazine might recall from the "Tool Tips" series [2]. Since then, I've played around with it on a couple of my computers, and here's what I discovered. I immediately enjoyed the well-functioning prediction function. If part of a command is unclear, Fish highlights it in red (Figure  1). At the same time, the shell offers suggestions on how to proceed.

History from Man Pages

Out of the box, Fish derives its recommendations from the history. If I enter the command fish_update_completions at the command line, Fish slogs its way through all the installed man pages – there are nearly 2,000 on my Ubuntu lab machine  – and builds a database (Figure  2). Fish then references them to find additional suggestions for autocompletion.

On the project page [1], the authors may flirt with retro charm – "Finally, a command line shell for the 90s" – but there is much more to Fish than a green-on-black look. On the contrary, Fish is as colorful as the denizens of a coral reef. Commands, parameters, paths, special characters – everything has its own hue from a palette of 256 "glorious VGA" colors.

[...]

Use Express-Checkout link below to read the full article (PDF).

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • Command Line: Fish

    The fish shell provides many features that rival the well-known Bash. We examine some highlights.

  • Fish Shell

    The Fish shell offers some user-friendly features for command line beginners.

  • Charly's Column

    Commercial surveillance systems are expensive and typically involve maintenance agreements. I thought there must be a low-budget alternative.

  • Bash Alternatives

    Don't let your familiarity with the Bash shell stop you from exploring other options. We take a look at a pair of alternatives that are easy to install and easy to use: Zsh and fish.

  • Charly's Column: Metasploitable

    If you mess around with a pen-testing tool on your own network, you might survive the consequences, but chances are you'll take the prize for outstanding recklessness. Charly has some advice: Use Metasploitable, perhaps the most broken Linux ever.

comments powered by Disqus
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters

Support Our Work

Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.

Learn More

News