Question

Linux

j. What is the command or commands used to list the top 10 file who use the most disk space? What is this command(s) and show

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Since in Linux everything is considered as files be it any directory or any excel sheet. Thus, in order to get the names of top 10 files who uses the most disk space, execute the below command.

*Note: Make sure you are the root user

Command: du -ax | sort -rh | head -n 10

Output:

6719552 /

4407406 /usr

2264256 /usr/lib

1577336 /opt

1480284 /usr/share

1353796 /usr/bin

1045040 /lib

776008 /usr/bin

534612 /usr/src

368748 /lib/modules

Add a comment
Know the answer?
Add Answer to:
Linux j. What is the command or commands used to list the top 10 file who...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Please write the Linux commands and run them. h. What is the command or commands that...

    Please write the Linux commands and run them. h. What is the command or commands that would list the contents of the /var/log directory in alphanumeric order? List the command and its output. i. What is the command or commands used to list the files in /var/log in order of their size? List the command and its output. j. What is the command or commands used to list the top 10 file who use the most disk space? What is...

  • In Linux Please What is the command or commands that will show you the last 15...

    In Linux Please What is the command or commands that will show you the last 15 lines of the /var/log/kernel.log file? Please write the commands and copy the output.

  • LINUX QUESTIONS (dont have to display output, I will be running these commands myself to check...

    LINUX QUESTIONS (dont have to display output, I will be running these commands myself to check the output) Display the command(s) used to do the following: create an empty file called history by using just a redirection operator. Verify and show. Show/verify all results (i.e., all commands and their corresponding outputs). Wait 1 minute or more and then display the command(s) used to do the following: change the timestamp on the history file you just created. Verify/display the change. Show/verify...

  • List down most linux command use in debian with option work and also command concern with...

    List down most linux command use in debian with option work and also command concern with creating script file, read, write and so on.

  • All commands must be in the command line. The expense data file is separate. Programming Project...

    All commands must be in the command line. The expense data file is separate. Programming Project #2: Manage Spending Using Commands Objectives: • Understand how to create and manipulate list of objects using array or vector class • Handle input errors and invalid values • Design and create a well-structure program using C++ basic programming constructs and classes. Description: Each “expense” contains 2 values: the spending amount (double) and its description (string) Here is an example of the “expense” data...

  • Objective: Practice common UNIX commands. Procedure: The following list of Unix commands are given for self-learning....

    Objective: Practice common UNIX commands. Procedure: The following list of Unix commands are given for self-learning. Use 'whatis' or 'man' command to find out about each command. Your document should include the description or screen shots of the output from each of the command. Commands: df du gzip file history wget Changing access rights: chmod u+x Dir1.0            adds execute permission for the owner chmod go-w file1              removes write permission for the group and others chmod ugo=rw testfile     sets...

  • linux help Create a file called trees, containing the following individual lines: Oak tree Pine Tree...

    linux help Create a file called trees, containing the following individual lines: Oak tree Pine Tree Spruce tree Cottonwood Maple tree Pine Tree Copy in the contents of the trees to more_trees file. Next, add the following trees at the end of the list. Redwood Willow tree Use a command to compare the trees and more_trees files and show the differences in terms of individual lines that differ. Determine the number of bytes in both the trees and more trees...

  • Linux System Administration    What files are used by the “finger” command? What command did you...

    Linux System Administration    What files are used by the “finger” command? What command did you use?        The “uname” command will display certain information about the Linux machine you are using. What option on this command will print the “machine hardware name”? What is the machine hardware name on “loki”? Pay attention to the keyword “machine hardware name”.

  • Linux ps is a command that displays information about all processes currently running in your system....

    Linux ps is a command that displays information about all processes currently running in your system. Read man page of ps command. Enter the following commands: (1) ps-ef more and (1) ps -ef | more and (2) ps-aux | more. Both of these will result in displaying a long list of processes. Identify what processes are started when the system is booted, and what processes are started later on. For each process, find out who owns it, what code it...

  • Consider the given Linux command is "sort". 1. Provide a description of the command and what...

    Consider the given Linux command is "sort". 1. Provide a description of the command and what it was designed to do. 2. List at least three options that can be used with the command and the effects of each. 3. Describe who created or is the current maintainer of the command. 4. Provide three working examples of the command that you have attempted successfully.

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT