Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

number of files in subdirectories linux

find . -type f -print | wc -l
Comment

linux count files in subdirectories

find . -type f | cut -d/ -f2 | sort | uniq -c | sort -nr
Comment

linux count number of files in directory and subdirectory

find . -type f | cut -d/ -f2 | sort | uniq -c | sort -nr
Comment

linux count files in subdirectories

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 :: start docker at boot 
Shell :: android turn off emulator in mac 
Shell :: yarn upgrade typescript 
Shell :: get files in directory bash 
Shell :: install semantic ui react 
Shell :: install ffmpeg ubuntu 
Shell :: decompress tar.gz 
Shell :: heroku installation check 
Shell :: apt non interactive upgrade 
Shell :: wsl windows 
Shell :: docker-compose container list 
Shell :: nano zsh 
Shell :: close all localhost connections 
Shell :: E: Unable to locate package libboost-signals-dev 
Shell :: bash curl weather report 
Shell :: git set url with user name and password 
Shell :: how to find empty directories in linux 
Shell :: bash time execution 
Shell :: fatal: index file corrupt 
Shell :: git reset origin branch 
Shell :: batch copy silent 
Shell :: check ram memory usage linux 
Shell :: linux list available programs 
Shell :: install arronax 
Shell :: android studio licenses 
Shell :: how to get the size of a file in linux 
Shell :: command to open linux home folder in windows 
Shell :: listen all local open ports 
Shell :: ubuntu bionic update security has sum mismatch 
Shell :: git command to create a branch 
ADD CONTENT
Topic
Content
Source link
Name
3+6 =