recentpopularlog in

kme : ls   5

Development notes: Search results for dircolors |
<code class="language-bash">
export LS_COLORS=$(echo $LS_COLORS|sed 's/di=01;34/di=01;36/')
unix  terminal  shell  colors  annoyance  directory  ls  dircolors  solution 
10 weeks ago by kme
linux - Find the number of files in a directory - Stack Overflow
See also the '-f' option (list unsorted), which avoids some of the extra stat(2) calls.
readdir is not as expensive as you may think. The knack is avoid stat'ing each file, and (optionally) sorting the output of ls.

/bin/ls -1U | wc -l
ls  filemanagement  unix  solution 
march 2016 by kme

Copy this bookmark:

to read