Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env bash
- #created by Infektedpc
- bold=$(tput bold)
- normal=$(tput sgr0)
- cyan='\033[0;36m'
- purp='\033[1;35m'
- NC='\033[0m' # No Color
- echo -e "${cyan}${bold}Ram:${normal}${NC}"
- echo -e "${purp}Total${normal}${NC}" "${purp}Used${normal}${NC} " "${purp}Free${normal}${NC}"
- ram1=$(free -h | awk '/Mem:/{print $2}')
- ram2=$(free -h | awk '/Mem:/{print $3}')
- ram3=$(free -h | awk '/Mem:/{print $4}')
- echo "$ram1 " "$ram2 " "$ram3"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement