This question evaluates a candidate's proficiency with shell scripting and Unix command-line concepts, including recursive file-system traversal, recognizing regular files versus other file types, handling filenames with whitespace, and extracting size metadata.
Write a Bash command (or short script) that, given a directory path, returns the largest regular file under that directory.
Requirements:
Example:
/var/log
1234567 /var/log/biggest.log