delete cache on linux code example Example 1: clear swap memory linux sudo swapoff -a; sudo swapon -a Example 2: kill all screen sessions linux pkill screen