L Lò Ngọc New member Jan 12, 2022 #1 How do you count files in UNIX? Answer To determine how many files there are in the current directory, put in ls -1 | wc -l. This uses wc to do a count of the number of lines (-l) in the output of ls -1.
How do you count files in UNIX? Answer To determine how many files there are in the current directory, put in ls -1 | wc -l. This uses wc to do a count of the number of lines (-l) in the output of ls -1.