Quick Answer: What Does Du Command Do In Linux?

What is difference between DU and DF?

While df is to show the file system usage, du is to report the file space usage.

du works from files while df works at filesystem level, reporting what the kernel says it has available..

How do I check memory on Linux?

5 commands to check memory usage on Linuxfree command. The free command is the most simple and easy to use command to check memory usage on linux. … 2. /proc/meminfo. The next way to check memory usage is to read the /proc/meminfo file. … vmstat. The vmstat command with the s option, lays out the memory usage statistics much like the proc command. … top command. … htop.

How do I check memory percentage in Linux?

Details are follow:free: free is a standard command to check memory utilization in Linux.awk: awk is a powerful command which is specialized for textual data manipulation.FNR == 2: It gives the total number of records for each input file. … NR == 2: It gives the total number of records processed.More items…

How do I use find in Linux?

Here are ten simple locate commands to set you up in becoming more productive with your Linux machine.Using locate Command. … Limit Search Queries to a Specific Number. … Display The Number of Matching Entries. … Ignore Case Sensitive Locate Outputs. … Refresh mlocate Database. … Display Only Files Present in Your System.More items…•

How do I find the path in Linux?

To find the absolute path of command in Linux/Unix system, we use which command. Note: The echo $PATH command will show the directory path. The which command, locate the command from these directories.

How do I free up memory on Linux?

How to Clear RAM Memory Cache, Buffer and Swap Space on LinuxClear PageCache only. # sync; echo 1 > /proc/sys/vm/drop_caches.Clear dentries and inodes. # sync; echo 2 > /proc/sys/vm/drop_caches.Clear PageCache, dentries and inodes. # sync; echo 3 > /proc/sys/vm/drop_caches. … sync will flush the file system buffer. Command Separated by “;” run sequentially.

How do I find the Linux version?

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

What does du mean in Linux?

disk usagedu (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.

How does Du command work?

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 does the Locate command do in Linux?

locate is a Unix utility which serves to find files on filesystems. It searches through a prebuilt database of files generated by the updatedb command or by a daemon and compressed using incremental encoding. It operates significantly faster than find , but requires regular updating of the database.

What is command example?

The definition of a command is an order or the authority to command. An example of command is a dog owner telling their dog to sit. An example of command is the job of controlling a group of military people.