Command

du Command on Linux

du Command on 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. As with most commands, the user can take advantage of many options or flags.

  1. How do I find DU command in Linux?
  2. Why we use DU command in Linux?
  3. What is DU command line?
  4. What is the use of DU and DF command in Unix?
  5. How do I find the Linux version?
  6. How do I check memory on Linux?
  7. How do I use Linux?
  8. What does du mean in Linux?
  9. What is File command in Linux?
  10. How do I copy directories in Linux?
  11. How do I see CPU usage on Linux?
  12. What is available in free command in Linux?

How do I find DU command in Linux?

unlike df which prints information about the disk usage of the mounted file systems , the du command gives you estimate of disk space used by given files or directories. You can view all available du command options by typing man du in your terminal.

Why we use DU command in Linux?

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.

What is DU command line?

The du command is a command line utility for reporting file system disk space usage. ... It supports showing just directories or all files, showing a grand total, outputting in human readable format and can be combined with other UNIX tools to output a sorted list of the largest files of folders on a system.

What is the use of DU and DF command in Unix?

The (very complicated) answer can be best summarized like this: The df command provides a sweeping ballpark figure for how much space is being utilized on your filesystem as a whole. The du command is a much more accurate snapshot of a given directory or subdirectory.

How do I find the Linux version?

Check os version in Linux

  1. Open the terminal application (bash shell)
  2. For remote server login using the ssh: ssh user@server-name.
  3. Type any one of the following command to find os name and version in Linux: cat /etc/os-release. lsb_release -a. hostnamectl.
  4. Type the following command to find Linux kernel version: uname -r.

How do I check memory on Linux?

Linux

  1. Open the command line.
  2. Type the following command: grep MemTotal /proc/meminfo.
  3. You should see something similar to the following as output: MemTotal: 4194304 kB.
  4. This is your total available memory.

How do I use Linux?

Linux Commands

  1. pwd — When you first open the terminal, you are in the home directory of your user. ...
  2. ls — Use the "ls" command to know what files are in the directory you are in. ...
  3. cd — Use the "cd" command to go to a directory. ...
  4. mkdir & rmdir — Use the mkdir command when you need to create a folder or a directory.

What does du mean in Linux?

du (abbreviated from disk usage) is a standard Unix program used to estimate file space usage—space used under a particular directory or files on a file system.

What is File command in Linux?

file command is used to determine the type of a file. .file type may be of human-readable(e.g. 'ASCII text') or MIME type(e.g. 'text/plain; charset=us-ascii'). This command tests each argument in an attempt to categorize it. ... The program verifies that if the file is empty, or if it's some sort of special file.

How do I copy directories in Linux?

To copy a directory, including all its files and subdirectories, use the -R or -r option. The command above creates the destination directory and recursively copy all files and subdirectories from the source to the destination directory.

How do I see CPU usage on Linux?

14 Command Line Tools to Check CPU Usage in Linux

  1. 1) Top. The top command displays real-time view of performance-related data of all running processes in a system. ...
  2. 2) Iostat. ...
  3. 3) Vmstat. ...
  4. 4) Mpstat. ...
  5. 5) Sar. ...
  6. 6) CoreFreq. ...
  7. 7) Htop. ...
  8. 8) Nmon.

What is available in free command in Linux?

In Linux systems, you can use the free command to get a detailed report on the system's memory usage. The free command provides information about the total amount of the physical and swap memory, as well as the free and used memory.

How To Install Redis on Debian Linux
Installing Redis on Debian 9 Step 1 Install Redis from APT Repo. Redis package is included in the default Debian 9 repositories, therefore, issue the ...
How to Install GNOME on Manjaro Linux
How to install GNOME Desktop on Manjaro 18 Linux step by step instructions Open up the terminal. ... Update the package repository index $ sudo pacman...
Awesome Linux Find Command Examples
What is Find command in Linux with example? How do I find the command line in Linux? How do you use Find command to search a file in Linux? How do I l...