Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

count number of files linux

ls | wc -l #Count files on current directory
ls path/to/dir | wc -l #Count files on specific directory path
Comment

count number of files in directory linux

ls -R|wc -l
Comment

find number of files in a directory linux

find -maxdepth 1 -type d | while read -r dir; do printf "%s:	" "$dir"; find "$dir" -type f | wc -l; done
Comment

PREVIOUS NEXT
Code Example
Shell :: linux chown www-data 
Shell :: how to increase nginx maximum file upload size 
Shell :: pip install turtle 
Shell :: flush dns cache mac os 
Shell :: ubuntu composer uninstall 
Shell :: [!] Android Studio (not installed) flutter 
Shell :: bash get current ip 
Shell :: linux get port usage 
Shell :: install firefox homebrew 
Shell :: linux caps lock escape swap 
Shell :: install chrome apt-get 
Shell :: install openjdk 8 sdk on ubuntu 
Shell :: install psycopg2 ubuntu 20.04 
Shell :: list users in linux 
Shell :: Port 8080 was already in use. 
Shell :: nvm install lts 
Shell :: how to uninstall mongodb in ubuntu 
Shell :: how to restart heroku server 
Shell :: how to find installed packages in ubuntu 
Shell :: disconnect local git repo from remote 
Shell :: how to uninstall git in ubuntu 18.04 
Shell :: apt-get install ps 
Shell :: windows stop process running on port 8080 
Shell :: restart xampp linux 
Shell :: install spyder conda 
Shell :: linux loop over all arguments one by one 
Shell :: yarn download ubuntu 
Shell :: completely uninstall apache from ubuntu 
Shell :: Job for apache2.service failed because the control process exited with error code. 
Shell :: flutter download all dependencies 
ADD CONTENT
Topic
Content
Source link
Name
1+7 =