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 :: git user config 
Shell :: .nvm bash 
Shell :: to import sass files you first need to install node-sass. react 
Shell :: change branch from master to main 
Shell :: Can I deploy a branch in netlify 
Shell :: git pull from another repository 
Shell :: install composer in ubantu 20 
Shell :: git clone repo with name 
Shell :: Use pip to install the EB CLI. 
Shell :: navigate to folder mac1 
Shell :: delete directory mac terminal 
Shell :: start kafka locally 
Shell :: how to zip my files without ds_store 
Shell :: fork bomb linux 
Shell :: linux commad to show directories 
Shell :: How to use Github Personal Access Token in Jenkins 
Shell :: how to get last in array jq 
Shell :: kill force linux 
Shell :: restart computer by terminul in ubuntu 
Shell :: terminal delete all files that start with 
Shell :: bash get path of script 
Shell :: git replace local branch with remote 
Shell :: open file in finder from terminal 
Shell :: get current time curl 
Shell :: Installing ipython-sql in Jupyter 
Shell :: ubuntu iso download 
Shell :: install homebrew git mac 
Shell :: npm legacy-peer-deps 
Shell :: git empty stash 
Shell :: git log with branch tree 
ADD CONTENT
Topic
Content
Source link
Name
5+3 =