Recent Articles

Rogue San Fran Sysadmin Found Guilty
The system administrator who made national headlines after locking the city of San Francisco out of its own network has been found guilty of computer tampering. Terry Childs now faces the possibility of...

IPad Apps Prove Useful To System Administrators
Apple didn't really hold back when promoting the iPad; the company went so far as to call the device "magical and revolutionary" in a press release - twice. It would make sense, then, if the iPad could meet...

The Cloud Will Test The Survivability Of Hardware...
Randy Bias wrote a good post today discussing which vendors are leading the cloud race. I totally agree with his assessment that pure play cloud service providers are leading the way with more innovation...

Paragon Launches Virtualization Manager For Windows
Data security management firm Paragon Software Group has introduced its Virtualization Manager 2010 Corporate aimed at providing high-end migration for corporate Windows environments. Designed for use by...


05.13.10



Make Unix/Linux System Administration Easier With Fish

By Alex Trent

Everyday, System Administrators on Unix/Linux based systems work with the console to accomplish the tasks at hand. The underlying system interpreting their commands to the system is a shell, usually bash, or tcsh, or even ksh or zsh for the very passionate shell user. I just found out about a new shell that is better than all of them.

I know what you're thinking, "Oh no here we go again, another shell zealot has found his match," but I promise this one is worth trying today just to see how truly amazing it is in its simplicity and power.

Why fish? Because "fish" stands for the "friendly interactive shell." Names can be deceiving, and fish, is much more than just a friendly shell. Take a look at some screen shots here. Thats right, you can pass input to fish with $argv instead of the cryptic $* and $2. Instead of $# you can just use count $argv. In place of $$ for the shell's current process id you can use %self. If you want to collect a process exit status just use $status instead of $?. By using fish, your shell scripts will actually look like code instead of a perl obfuscation contest.


Fish has a long list of features, a few are: X clipboard integration, syntax highlighting, tab completion for just about any command and descriptions for different completion options, a powerful help system, and an open function to open all files of a certain type in a directory with the default program.

Fish also has improved syntax over other shells. Here are a few code examples:

Posix style syntax Fish style syntax

if true; then echo hello; fi if true; echo hello; end

for i in a b c; do echo $i; done for i in a b c; echo $i; end

case $you in *) echo hi;; esac switch $you; case ‘*'; echo hi; end

hi () { echo hello; } function hi; echo hello; end

This article only covers a small subset of fish features, some of the information in this article comes from arstechnica.com.

Go there to read the full in depth article written by the creator of fish, Ryan Paul.

Download and try fish today!


About the Author:
Alex Trent is a staff writer for WebProNews
About SysAdminNews
SysAdminNews is a collection of articles, news and commentary designed to keep system administrators informed about the latest trends impacting their profession. Updates and Advice for System Administrators





SysAdminNews is brought to you by:

SecurityConfig.com NetworkingFiles.com
NetworkNewz.com WebProASP.com
SysAdminNews.com SQLProNews.com
ITcertificationNews.com SysAdminNews.com
LinuxProNews.com WirelessProNews.com
CProgrammingTrends.com ITManagementNews.com





-- SysAdminNews is an iEntry, Inc. publication --
iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509
2010 iEntry, Inc.  All Rights Reserved  Privacy Policy  Legal

archives | advertising info | news headlines | free newsletters | comments/feedback | submit article


Database Forum Updates and Advice for System Administrators SysAdminNews News Archives About Us Feedback SysAdminNews.com About Article Archive News Downloads WebProWorld Forums iEntry Advertise Contact Jayde