ls.html 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <html>
  2. <head>
  3. <title>ls</title>
  4. <body bgcolor=#ffffff>
  5. <h2 align=center>ls</h2>
  6. <h4 align=center>OS/161 Reference Manual</h4>
  7. <h3>Name</h3>
  8. ls - list files or directory contents
  9. <h3>Synopsis</h3>
  10. /bin/ls [-adlRs] [<em>path</em>...]
  11. <h3>Description</h3>
  12. ls lists the filesystem objects specified on the command line. If they
  13. are directories, the contents of the directories are listed (unless
  14. the -d option is used).
  15. <p>
  16. If the -a option is given, filenames beginning with dot (.) will be
  17. listed. Ordinarily, they are skipped.
  18. <p>
  19. If the -d option is given, directory contents will not be listed; the
  20. directories themselves will be.
  21. <p>
  22. If the -l option is given, a long format listing showing the file
  23. size, type, and link count will be displayed instead of just the
  24. filenames.
  25. <p>
  26. If the -R option is given, subdirectories encountered will be listed
  27. recursively.
  28. <p>
  29. If the -s option is given, the number of filesystem blocks used by
  30. each object will be displayed in addition to other information.
  31. <p>
  32. If no <em>paths</em> are specified, the current directory is assumed.
  33. <h3>Requirements</h3>
  34. ls uses the following syscalls:
  35. <ul>
  36. <li> <A HREF=../syscall/open.html>open</A>
  37. <li> <A HREF=../syscall/write.html>write</A>
  38. <li> <A HREF=../syscall/fstat.html>fstat</A>
  39. <li> <A HREF=../syscall/getdirentry.html>getdirentry</A>
  40. <li> <A HREF=../syscall/close.html>close</A>
  41. <li> <A HREF=../syscall/_exit.html>_exit</A>
  42. </ul>
  43. ls should function properly once the file system assignment is
  44. completed.
  45. </body>
  46. </html>