March 6, 2009

count files in directory on Linux

use command

ls | wc

resule could be

1418 1418 34955

1418 is amount of files in the directory

No comments: