...
Xrootd does not provide the directory listing (ls) semantics as a file system does. The xrdls is a command line tool that looks a little bit like an ls. By defaults it loops over all xrootd data servers and obtains a directory listing for each of them.
The usage is:
xrdls -l dataServer directory
...
Code Block | ||
---|---|---|
| ||
xrdls \[-_l_\] \[_dataserver_\] directory
* \-_l_ prints a long listing
* specify _dataserver_ if the listing from only this server is requested. Default is to loop over all servers
|
...
It is implemented by using the standard unix ls command together with the xrootd preload library.
Below are some examples
Code Block | ||
---|---|---|
| ||
> xrdls /glast/mc ==listing from server sulky02 ServiceChallenge TonyTest junk ==listing from server sulky47 DC2 ServiceChallenge junk ==listing from server sulky48 DC2 ServiceChallenge TonyTest junk |
Code Block | ||
---|---|---|
| ||
>xrdls -l /glast/mc ==listing from server sulky02 total 4 drwx------ 1 wilko ec 1536 Aug 2 15:38 ServiceChallenge drwx------ 1 wilko ec 512 Jun 17 13:39 TonyTest drwx------ 1 wilko ec 512 May 15 16:36 junk ==listing from server sulky47 total 3 drwx------ 1 wilko ec 512 Jan 8 2007 DC2 drwx------ 1 wilko ec 512 May 3 09:54 ServiceChallenge drwx------ 1 wilko ec 512 Feb 28 09:13 junk ==listing from server sulky48 total 5 drwx------ 1 wilko ec 512 Jan 8 2007 DC2 drwx------ 1 wilko ec 1536 Jul 27 17:28 ServiceChallenge drwx------ 1 wilko ec 512 Jun 17 13:39 TonyTest drwx------ 1 wilko ec 512 May 16 18:15 junk |