Unix Review > Archives > 2004 > January

January 2004

Tool of the Month: cdargs

by Joe "Zonker" Brockmeier

This month, I'll discuss cdargs, a tool that simplifies using the command line. cdargs is a handy little utility that provides browsing and bookmarks for cd.

Installing and using cdargs

I just recently dicovered cdargs, but it's already proved to be a great application and big time-saver. It's also easy to set up — just grab the source tarball and unpack it. Run configure ; make then su to root and run make install-strip. I'm using cdargs on SUSE 9.0, but it should compile just fine on most recent Linux distros. (I'm not sure about the portability for *BSDs or other Unixes.)

You can use cdargs alone, but there's also a nifty script for Bash users that makes cdargs even more useful. Recent releases of cdargs come with a script called cdargs-bash.sh, which provides several shell functions that you'll want to use. Add this to your .bashrc with the following line:

source $HOME/src/cdargs/contrib/cdargs-bash.sh

Naturally, the path to cdargs-bash.sh will depend on your local setup. If you want to utilize the cdargs functions as root, you'll need to do the same with the .bashrc for your root user account. Also, don't forget that you'll need to source the cdargs-bash.sh script in any current sessions or it will not take effect.

Note that there is also a similar file for tcsh and related shells in the same directory called cdargs-tcsh.csh, which will provide some of the same functionality, as well as an Emacs front-end for cdargs called cdargs.e

Sys Admin Spotlight

CMP DevNet Spotlight

Ada and the Language Renaissance
A renaissance in computer language design has allowed "little" languages like Ruby and Lisp to accumulate large, active communities of developers that continue to discover new uses for these technologies. Ada is another language that has benefitted from grassroots-level development. The result: Ada 2005.

In the News

CD-ROM

Sys Admin and The Perl Journal CD-ROM version 11.0

Version 11.0 delivers every issue of Sys Admin from 1992 through 2005 and every issue of The Perl Journal from 1996-2002 in one convenient CD-ROM!

Order now!




MarketPlace

�Six Sigma� Certified?
100% Online-Six Sigma Certificate From Villanova -Find Out More Now.

Project Management-Online
Nation's Leading Online PMP Course From Villanova-Find Out More Now.

Automate Software Builds with Visual Build Pro
Easily create an automated, repeatable process for building and deploying software.

WinDev 12 - Powerful IDE
Develop 10 times faster ! ALM, IDE, .Net, RAD, 5GL, Database, 5GL, 64-bit, etc. Free Express version

Wanna see your ad here?