Skip to content

Commit 0e7a7d3

Browse files
committed
cmd-variables
1 parent 41aeac7 commit 0e7a7d3

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

cmd_variables.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
Today=$(date +"%Y-%m-%d")
3+
Hostname=$(hostname)
4+
Disk_free=$(df -h / | awk 'NR==2{print $4}')
5+
6+
echo "Today is : $Today"
7+
echo "This machine is : $Hostname"
8+
echo "Free disk space : $Disk_free"

0 commit comments

Comments
 (0)