Count Files in Folder


ls -1 | wc -l

*NOTE: ls -1 will list all files one per line, afterwards we pipe the results to wc which will count the lines and thus the total number of file.
It is up to the user to modify the ls in such way that it will perform more complex operations.

This post is also available in: Αγγλικα

Απάντηση

Αυτός ο ιστότοπος χρησιμοποιεί το Akismet για να μειώσει τα ανεπιθύμητα σχόλια. Μάθετε πώς υφίστανται επεξεργασία τα δεδομένα των σχολίων σας.