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...

  • this is bash scripting. a. When a file is created on Linux Operating System, What are...

    this is bash scripting. a. When a file is created on Linux Operating System, What are the default permissions of the file? b. Write a command to find the total disk space used by a specific user on linux system? c. what is "s" permission bit in a file?

  • Using a Linux command-line interpreter, show the screenshots for executing the following commands: (1) display the...

    Using a Linux command-line interpreter, show the screenshots for executing the following commands: (1) display the current working directory, (2) list the contents of a directory, (3) change directory, (4) create a directory, (5) clear the screen, (6) copy a file from a directory into another directory, (7) delete a directory, (8) delete a file, (9) report information for a single process or set of processes, and (10) report a real-time statistics for current processes.

  • 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.

  • I need help with this. 10-21. Briefly describe the following Linux commands and acronyms. ssh: telnet:...

    I need help with this. 10-21. Briefly describe the following Linux commands and acronyms. ssh: telnet: traceroute: TCP: LAN: DNS: ftp: ssh: ping: env: g++: gcc: 22. Show a command that will create a file named "etc.tar" in your home directory from recursively going through all of the files in the "/etc" directory. In other words, the "etc.tar" file will include the files in the "/etc" directory as well as all of its subdirectories. IMPORTANT: This command must work for...

  • 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...

  • On your Linux machine, use ___________ command that displays the memory Using the previous command, add...

    On your Linux machine, use ___________ command that displays the memory Using the previous command, add the ability to have the command output in "human readable" format Physical Memory___________________ Total Cached___________________ Available ___________________ Free___________________ Again, use the previous two commands and add the ability to watch the memory in real time. Leave that running in the background and open new terminal. Run the command that create a flag file that will dump your cache memory. What is that command? What...

  • 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...

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