Phil for Humanity

A Guide for the Survival of Humankind, Improving the World, Society, and Yourself!




ClearCase Support: How to Find Checked Out Elements


Ever wonder how to find all the checked out files in your ClearCase View from the command line?

Here is an example on how to do it while in a View:

$ cleartool lspriv -co
/vob/test/a/b.txt [checkedout]
/vob/test/a/c/d.txt [checkedout]
/vob/test/a/e.txt [checkedout]

You may have noticed that the previous command does not locate directories. It only locates files. So, to find all checked out elements (files and directories) in your View, run this command:

$ cleartool lsco -short -cview -me -avobs
/vob/test/a
/vob/test/a/b.txt
/vob/test/a/c
/vob/test/a/c/d.txt
/vob/test/a/e.txt

Note that the second command is much slower than the first command.

by Phil B.

Related Articles
 » ClearCase Support: Creating Elements
 » ClearCase Support: Renaming and Moving Elements
 » ClearCase Support: Checked Out But Removed Error