What is Blktrace?

What is Blktrace?

blktrace is a block layer IO tracing mechanism which provides detailed information about request queue operations up to user space. There are three major components: a kernel component, a utility to record the i/o trace information for the kernel to user space, and utilities to analyze and view the trace information.

How do I find the top 5 largest files in Linux?

The procedure to find largest files including directories in Linux is as follows:

  1. Open the terminal application.
  2. Login as root user using the sudo -i command.
  3. Type du -a /dir/ | sort -n -r | head -n 20.
  4. du will estimate file space usage.
  5. sort will sort out the output of du command.

How to calculate disk usage using GNU du?

If you are using GNU du you can use the -S or –separate-dirs option to not include the size of subdirectories when calculating the usage for the parent. Your du command may not support this option. You can use this couple with sort to get the largest individual directories (assuming GNU tools): du –separate-dirs -h. |sort -h

How to check the disk usage of a directory?

To get the summary of a grand total disk usage size of an directory use the option “ -s ” as follows. [ root@tecmint ]# du -sh /home/tecmint 674M /home/tecmint 4. Using “ -a ” flag with “ du ” command displays the disk usage of all the files and directories.

How can I apply du to only the root disk?

The problem is that I have a number of mount points at the root level, and I would like du to skip these. I thought the -x option was supposed to do this, but either I misunderstand what it does or I’m using it the wrong way. How can I apply du to only the root disk without traversing the additional mounts?

What is the du command in Linux used for?

Linux Commands 30 Comments. The Linux “ du ” ( Disk Usage) is a standard Unix/Linux command, used to check the information of disk usage of files and directories on a machine. The du command has many parameter options that can be used to get the results in many formats.