Linux Today: Linux News On Internet Time.

Z shell made easy

Jul 16, 2010, 14:06 (0 Talkback[s])

"Following on from our other articles that make various Linux tasks easy, in this article we'll introduce Zsh (Z shell), a shell that has many of the benefits of Bash and others, plus a lot more on top. After reading this, you'll have a good idea about the power of Zsh and will be able to make an informed decision whether to switch from your distro's default shell. We'll be looking more at the interactive use of Zsh, and less at non‑interactive shell scripts - that is, we'll focus on daily use, and not on scripting and automating tasks.

"A handy feature of many shells is globbing, also known as filename generation. An example that you're probably familiar with is when you type *.txt to mean all files that end in the .txt file extension. Your shell expands this to the list of all these files, which it passes on to the command - for example, as in ls *.txt.

"In Bash, globbing is rather limited. For example, what if you want to list all .txt files in subdirectories of the current directory?"

Complete Story

Related Stories: