Audio Analytic Interview Question: How do you find the largest f... |

Interview Question

Software Engineer Interview Cambridge, England

How do you find the largest file in a directory?


Interview Answer

2 Answers


ls -l and pipe to awk and add some rule to select the largest file, i admitted i didn't know awk sitax that much. The interviewer said that there was a way to do it directly with ls.

Interview Candidate on 27 Feb 2015

ls -S

Sid on 16 Jun 2015

Add Answers or Comments

To comment on this, Sign In or Sign Up.