Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

how to count files in a directory linux

# Use this command

ls /etc | wc -l

# replace /etc with the path to the directory you want to work with
Source by devconnected.com #
 
PREVIOUS NEXT
Tagged: #count #files #directory #linux
ADD COMMENT
Topic
Name
5+8 =