Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

get files in directory bash

ls | wc -l #Count files on current directory
ls path/to/dir | wc -l #Count files on specific directory path
 
PREVIOUS NEXT
Tagged: #files #directory #bash
ADD COMMENT
Topic
Name
2+8 =