Megalextoria
Retro computing and gaming, sci-fi books, tv and movies and other geeky stuff.

Home » Digital Archaeology » Digital Archaeology » Count the files in a directory (Linux)
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Count the files in a directory (Linux) [message #301819] Tue, 06 October 2015 09:18
CyberkNight is currently offline  CyberkNight
Messages: 1606
Registered: July 2012
Karma: 0
Senior Member
To count the files in the current directory, use the following command:

ls -1 . | wc -l


For more info and other variations, see: http://linuxcommando.blogspot.com/2008/07/how-to-count-numbe r-of-files-in.html


  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Keeping a process alive after terminal is closed (Linux)
Next Topic: Archivists Grapple With Problems Of Preserving Recent Culture Held On Cassettes And Floppy Drives
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Tue Apr 23 23:29:16 EDT 2024

Total time taken to generate the page: 0.08874 seconds