Difference between revisions of "Ls"

From PyMOLWiki
Jump to navigation Jump to search
Line 1: Line 1:
 
===DESCRIPTION===
 
===DESCRIPTION===
'''ls''' lists contents of the current working directory.
+
'''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 quite PyMOL, you can just '''cd''' to the directory and '''ls''' to find the contents.
  
 
===USAGE===
 
===USAGE===
ls [pattern]
+
<source lang="python">
dir [pattern]
+
ls [pattern]
 +
dir [pattern]
 +
</source>
  
 
===EXAMPLES===
 
===EXAMPLES===
ls
+
<source lang="python">
ls *.pml
+
# 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===
[[Cmd cd]], [[Cmd pwd]], [[Cmd system]]
+
[[Cd]], [[Pwd]], [[System]]
  
 
[[Category:Commands|ls]]
 
[[Category:Commands|ls]]

Revision as of 02:43, 24 February 2007

DESCRIPTION

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 quite 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

SEE ALSO

Cd, Pwd, System