Tag Info

New answers tagged

0

#!/bin/bash ps -e -o pid,pmem | awk '{ if($1>100) s+=$2} END {print s}'


0

I added the following to my .bash_profile file. sudobg() { sudo echo "Password entered" sudo $@ & } Then I can simply call: prompt$ sudobg echo "Hello from the background." And I get: Password: Password entered [1] 6773 prompt$ Hello from the background. Disclaimer: I'm using bash but not Ubuntu. There may be better locations for this ...


0

This answer, from @Ben on a duplicated question, has solved my problem: Consider using the top command in terminal. The top program provides a dynamic real-time view of a running system. It can display system summary information as well as a list of processes or threads currently being managed by the Linux kernel. The types of system ...



Top 50 recent answers are included