Browse other questions tagged linux hard-drive usage disk-space-utilization or ask your own question. The echo command is useful for conveying a message/information to user. Firstly, it is tremendously useful. Secondly, the wealth of options can be overwhelming.Thirdly, it was written overnight to satisfy a particular need. The du command has many parameter options that can be used to get the results in many formats. $ xargs -t abcd /bin/echo abcd abcd 7. Referenced By May 10, 2020 at 6:06 pm $ mail -s “This is the subject” [email protected] <<< "This is the message" In the example above, using double quotes for the message, I can include $ variables. 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. Combine Xargs with Find Command. The Overflow Blog Podcast 235: An emotional week, and the way forward This command is more useful when you are writing shell scripts then normal system administration use. Linux shell script to check /var logs space and send email if used space reach 80%. 23 thoughts on “ Linux mail command examples – send mails from command line ” Angelo .

The Linux xargs command may not be a hugely popular command-line tool, but this doesn't take away the fact that it's extremely useful, especially when combined with other commands like find and grep.If you are new to xargs and want to understand its usage, you'll be glad to know that's exactly what we'll be doing here. This script really helps system administrator to monitor their servers space usage. It is a good command to display a simple output when you know that the variable's contents will not cause problems.

The first two are bang on; the third is slightly off. The full documentation for echo is maintained as a Texinfo manual. should give you access to the complete manual. The grep command is famous in Linux and Unix circles for three reasons. Bash: Print usage statement & exit; otherwise continue using Bash shorthand operators I want a short script to test for a commandline argument. The Story Behind grep. In this case, the command that xargs executes is “/bin/echo abcd”, which is displayed here.

6 Responses to “Linux Mail Command Usage with Examples” - If $1 is not present, then print a Usage statement and exit from the function. Here is a quick example $ free -m total used free shared buffers cached Mem: 7976 6459 1517 0 865 2248 -/+ buffers/cache: 3344 4631 Swap: 1951 0 1951 The free command is the most simple and easy to use command to check memory usage on linux.