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 “chmod” command?

568


Who command in unix?

579


What is the nmap command?

588


What is the unix command to confirm a remote host is alive or not?

590


Which command is used to delete all files in the current directory and all its sub-directories?

673






What is awk good for?

590


What are bash commands?

601


What is grep and how do you use it?

581


What is awk used for?

624


How do I use nslookup?

577


What is the functionality of a top command?

628


How does pipe () work?

597


What does sed command do in unix?

568


What is pipe command in unix?

677


Which command is used to find whether the system is 32 bit or 64 bit?

633