What does du command do in Linux?

The du command is a standard Linux/Unix command that allows a user to gain disk usage information quickly. It is best applied to specific directories and allows many variations for customizing the output to meet your needs.

What is the use of du command?

du command, short for disk usage, is used to estimate file space usage. The du command can be used to track the files and directories which are consuming excessive amount of space on hard disk drive. –apparent-size : print apparent sizes, rather than disk usage.

What is du terminal?

The du (disk usage) command measures the disk space occupied by files or directories.

What is the output of du command?

The output of the du command contains the combined space usage of all the files through the directory tree beginning at the level of the directory where the command is issued.

How do I use find in Linux?

Basic Examples

  1. find . – name thisfile.txt. If you need to know how to find a file in Linux called thisfile. …
  2. find /home -name *.jpg. Look for all . jpg files in the /home and directories below it.
  3. find . – type f -empty. Look for an empty file inside the current directory.
  4. find /home -user randomperson-mtime 6 -iname “.db”

How do I use Linux?

Its distros come in GUI (graphical user interface), but basically, Linux has a CLI (command line interface). In this tutorial, we are going to cover the basic commands that we use in the shell of Linux. To open the terminal, press Ctrl+Alt+T in Ubuntu, or press Alt+F2, type in gnome-terminal, and press enter.

What is difference between du and DF?

du is used to estimate file space usage—space used under a particular directory or files on a file system. df is used to display the amount of available disk space for file systems on which the invoking user has appropriate read access. … The result of the command du doesn’t include the size of the deleting file.

How does du command work?

Use this command to estimate how much disk space each specified file or subdirectory uses. Specify one or more individual files or sub-directories by including the complete path to the desired item as a “ <FILE or SUBDIRECTORY> ” variable. Separate each entry with a whitespace.

What is PS EF command in Linux?

This command is used to find the PID (Process ID, Unique number of the process) of the process. Each process will have the unique number which is called as PID of the process.

What unit is du in Linux?

du computes file space in units of 512 bytes. The actual disk space that is used by files and directories might be more, since some systems allocate space in units of some multiple of a sector. On UNIX System V, it is usually two sectors; on UNIX Version 7, it is one sector.

Like this post? Please share to your friends:
OS Today