Linux Memory Checking & Cleaning

View previous topic View next topic Go down

Linux Memory Checking & Cleaning

Post by jamied_uk on 23rd July 2016, 03:02




Code:

#!/bin/bash
# Usage ./mem.sh
clear
#free -h
sudo sh -c 'echo 1 >/proc/sys/vm/drop_caches'
sudo sh -c 'echo 2 >/proc/sys/vm/drop_caches'
clear
free -h > resaults.txt
cat resaults.txt
avatar
jamied_uk
Admin

Posts : 2191
Join date : 2010-05-09
Age : 34
Location : UK

http://address-shortner.co.uk

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum