how to find largest file?

Answer Posted / madhusudan choudhary

We can do this by

ls -lrt | sort +4nr -5 | head -1

or

du -s . | sort -nr | head -1

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is grep short for?

556


Explain the steps that a shell follows while processing a command.

681


What are grep patterns?

575


What command will change your prompt to myprompt?

697


What is the functionality of a top command?

623






Explain ‘system calls’ with respect to unix commands?

599


What are the commands in UNIX to list the files in a Directory?

615


What does sed command do in unix?

558


Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.

619


Are you in or at the office?

609


How do I search for a file in unix command?

544


What is command substitution?

621


What is the difference between grep and grep?

563


What are the unix commands?

556


What is grep in bash?

584