ls | List names in the name space |
[-d] | limit list to data frames |
[-c] | limit list to cldata frames |
[-st] | limit list to structures |
[-fr <frame>] | list the entries in a frame; wildcard * for frame name is available |
[-sd] | list names in subdirectories |
[-r] | list recursively all subdirectories of chosen or current directory |
[-u] | print usage for each listed entry |
[-t] | print the types of entries |
[-p] | print the full paths of listed names |
[-l] | print usage, type and full path for each listed entry |
[-f] | print only field names with the flag '-fr' |
[<dirname>] | name of the subdirectory to be listed |
This command can be used to list the contents of the name space. The sys structure is part of the name space and always present in the root directory. It cannot even be deleted. Types include st(ructure), dir(ectory), fr(ame), int(eger field), float (field), etc.
Example: The Boston data is loaded and then the contents of the name space (or part of it) is listed in a couple of different ways.
NDA> load boston.dat NDA> ls . sys boston NDA> ls -fr boston boston.crim boston.zn ... # Listing types and usages with the names (-l does the same) NDA> ls -t -u -p dir dir /. st 10 /sys fr d /boston