how to find largest file?

Answer Posted / mayank

du / -ah |sort -nr |head -n 10
it will show the first 10 largest file in the system

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a command to display a file’s contents in various formats?

630


When i run a programm of orphan process. Instead of getting child's parent (ppid)=1 ..i get 1400 and it varies as per system. How can i findthe right soluion??? My pgm: #include # include int main() { int pid; pid=fork(); if(pid < 0) {exit(-1);} else if(pid==0) { printf("Child Process is Sleeping ..."); sleep(10); printf("Orphan Child's Parent ID : %u ",getppid()); } else { printf("Parent Process Completed ... %u ",getpid()); exit(0); } return 0; } Output:

1766


Why is it called a shebang?

574


Why is awk called awk?

581


What is the use of tee command?

573






What is the use of sed command in unix?

604


Which unix command lists files/folders in alphabetical order?

622


Can you explain a little bit about command substitution?

612


what is the advaantage of each user having its own copy of the shell?

2040


What is pipe command in unix?

677


how to sort the content of the file based on numeric values

1256


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

678


How do I open a port?

596


What are the unix commands?

560


Which command will print your home directory on screen?

548