Change message of the day
This commit is contained in:
5
templates/etc/update-motd.d/05-memory
Executable file
5
templates/etc/update-motd.d/05-memory
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
source /etc/update-motd.d/colors.txt
|
||||
|
||||
echo -e " ${TITLE_COLOR}Memory..............:${DEFAULT_COLOR} ${NC}Used: ${TEXT_COLOR}$(free -m | grep Mem: | xargs | cut -f3 -d' ')${DEFAULT_COLOR} ${NC}MB | ${NC}Free: ${TEXT_COLOR}$(free -m | grep Mem: | xargs | cut -f7 -d' ')${DEFAULT_COLOR} ${NC}MB | ${NC}Total: ${TEXT_COLOR}$(free -m | grep Mem: | xargs | cut -f2 -d' ')${DEFAULT_COLOR} ${NC}MB"
|
||||
Reference in New Issue
Block a user