Pretty simple, but I didn't find a question on here that asked this exactly.I thought this would work but it does not.echo Your disk usage is ${df -k -h}.How do I make the above work?
How do I include commands in an echo statement?
echo
Use $(), not ${}echo Your disk usage is $(df -h).Note that df -h has multi-line output (one line for the header, and one for each mounted filesystem), so including it in an echo statement looks quite ugly.You can work around that by being more specific about what you want to display (e.g. only disk usage for the fs that contains your home dir) and extracting only the details you want to print.  For example:printf 'Your disk usage on %s is %s\n' $(df -h ~ | awk 'NR==2 {print $6, $3}') 