Ls: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (typo corrected) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
'''ls''' lists contents of the current working directory. PyMOL comes with a few commands that allows the user to traverse a directory structure and list files. This is a powerful tool if you have many directories full of files --- you don't have to quit PyMOL, you can just '''cd''' to the directory and '''ls''' to find the contents. | |||
'''ls''' lists contents of the current working directory. | |||
===USAGE=== | ===USAGE=== | ||
<source lang="python"> | |||
ls [pattern] | |||
dir [pattern] | |||
</source> | |||
===EXAMPLES=== | ===EXAMPLES=== | ||
<source lang="python"> | |||
# list all files in the current directory | |||
ls | |||
# list all files ending in, pml, in the current directory. | |||
ls *.pml | |||
</source> | |||
===SEE ALSO=== | ===SEE ALSO=== | ||
[[ | [[Cd]], [[Pwd]], [[System]] | ||
[[Category:Commands| | [[Category:Commands|Ls]] |
Latest revision as of 18:02, 15 May 2010
ls lists contents of the current working directory. PyMOL comes with a few commands that allows the user to traverse a directory structure and list files. This is a powerful tool if you have many directories full of files --- you don't have to quit PyMOL, you can just cd to the directory and ls to find the contents.
USAGE
ls [pattern]
dir [pattern]
EXAMPLES
# list all files in the current directory
ls
# list all files ending in, pml, in the current directory.
ls *.pml