Find the answer to your Linux question:
Page 2 of 2 FirstFirst 1 2
Results 11 to 12 of 12
Code: * causes the directory listing to be read somehow, just as Code: ls does, so there's really no difference performance-wise. And even if it was, Code: ls isn't gonna ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #11
    Linux Guru lakerdonald's Avatar
    Join Date
    Jun 2004
    Location
    St. Petersburg, FL
    Posts
    5,035

    Code:
    *
    causes the directory listing to be read somehow, just as
    Code:
    ls
    does, so there's really no difference performance-wise. And even if it was,
    Code:
    ls
    isn't gonna cause your system to run out of memory.

  2. #12
    scm
    scm is offline
    Linux Engineer
    Join Date
    Feb 2005
    Posts
    1,044
    Quote Originally Posted by lakerdonald
    ... so there's really no difference performance-wise.
    Well, it cuts down on the overhead of spawning a new process, which might be significant if enough's going on in your system. It's good practice to use the shell's builtin features if they're provided - no need to make work for the system needlessly.

Page 2 of 2 FirstFirst 1 2

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •