UNIX.
Output the number of regular files in your current directory
The files can be shown by the command - ls.
See Output
It will show all the files in the working directory.
The number of files in a directory can be shown by the command - ls | wc -l
where | is used to filter the result from the ls command and wc is used to count word.
See output
The total number of regular files (ignoring hidden files) is 7.
Get Answers For Free
Most questions answered within 1 hours.