how to find largest file?

Answer Posted / prasanta das

ls -l | sort +4 -nr | head -1

Is This Answer Correct ?    9 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to use grep command to list find the records of a file containing 10 different strings?

650


What does the command '$ls | wc –l > file1' do?

684


Which command is used to copy files?

559


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

673


What will the following command do?

621






hw will u use awk in replacing cahrs and files

2737


What is the comma to show the space allocation of files?

562


What is the command to compare two files in unix?

625


Explain command to display different lines that are found when compare two files?

678


Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?

593


Enlist some filename manipulation commands in unix.

556


Can you enlist some commonly used network commands?

604


What does sed command do in unix?

568


How do I use grep to search for a file?

584


What is sed awk grep?

609