Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

count files in a directory

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

How to count number of files in each directory

du -a | cut -d/ -f2 | sort | uniq -c | sort -nr
Comment

PREVIOUS NEXT
Code Example
Shell :: adobe reader linux 
Shell :: linux print system info 
Shell :: brew services start mongodb-community@4.4 
Shell :: install python mysqlclient on mac 
Shell :: git pull sith ssh key 
Shell :: show debian point release 
Shell :: silent install google chrome 
Shell :: fuser install linux 
Shell :: how to push changes to branch in git 
Shell :: bash for loop parallel 
Shell :: iptables remove docker rules 
Shell :: cmd copy all files to another folder 
Shell :: docker kill running container(s) 
Shell :: how to add images to git readme 
Shell :: uninstall all extensions vscode 
Shell :: git get current branch 
Shell :: how to delete command from terminal history 
Shell :: bash split string into array 
Shell :: whats the file path for the documents folder linux 
Shell :: remove mongo lock file from centos 7 
Shell :: Ubuntu – Root folder access via gui 
Shell :: vim replace multiple lines 
Shell :: poetry command install mac 
Shell :: bash cheat sheet 
Shell :: wget file from google drive 
Shell :: how to reset local git credentials of android studio 
Shell :: show processor usage linux 
Shell :: prettier-plugin-tailwindcss 
Shell :: mongodb start 
Shell :: git stash one file 
ADD CONTENT
Topic
Content
Source link
Name
9+2 =