x
Loading
 Loading
Hello, Guest | Login | Register

Catching some ZZZs

Linux systems have several shells available — some more powerful than others. Perhaps the most powerful shell is zsh, the Z shell. To give you an idea of the shell’s size and complexity, the zshall man page in plain-text format weighs in at more than 16,000 lines. (Rest easy. We won’t try to cover all of zsh in this month’s column.)

Linux systems have several shells available — some more powerful than others. Perhaps the most powerful shell is zsh, the Z shell. To give you an idea of the shell’s size and complexity, the zshall man page in plain-text format weighs in at more than 16,000 lines. (Rest easy. We won’t try to cover all of zsh in this month’s column.)

Instead, we’ll investigate some of the more-obscure zsh features that might still be very handy for you. (For a look at some better-known zsh features, see the “Power Tools” column in the May, June, and July 2002 issues of Linux Magazine. You can find them online at http://www.linux-mag.com/2002-05/power_01.html, http://www.linux-mag.com/2002-06/power_01.html, and http://www.linux-mag.com/2002-07/power_01.html. If you’re new to shells, the things we do here will also show you more of the power of this very useful tool.

By the way, if you want to use zsh occasionally, there’s no need to change your default shell to zsh. This month’s Power Tip explains how to switch shells temporarily.

Labeled Secondary Prompts

If you’ve written shell scripts, you probably know how to use loops (like for and while) and other complex commands. You may also have written multi-line commands — for instance, using echo to output several lines of text at once. All shells let you type these complex commands on a command line, as well as from a script file. But when you nest these (use one complex command “inside” another) on a command line,…

Please log in to view this content.

Not Yet a Member?

Register with LinuxMagazine.com and get free access to the entire archive, including:

  • Hands-on Content
  • White Papers
  • Community Features
  • And more.
Already a Member?
Log in!
Username

Password

Remember me

Forgotten your password?
Forgotten your username?
Read More
  1. KDE 4.4: Does It Work Yet?
  2. Writing Custom Nagios Plugins with Python
  3. Power Up Linux GUI Apps
  4. Tweeting from the Command Line with Twyt
  5. When Memory Serves You: Using ramfs and tmpfs
Follow Linux Magazine
Rackspace