Stashing"
This commit is contained in:
parent
8084b07fb4
commit
d8e9ec5b9b
3
Linux/swap.sh
Normal file
3
Linux/swap.sh
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
## Get swap space in Linux using bash for loop ##
|
||||||
|
for file in /proc/*/status ; do awk '/VmSwap|Name/{printf $2 " " $3}END{ print ""}' $file; done | sort -k 2 -n -r | less
|
||||||
@ -1,3 +1,3 @@
|
|||||||
select usename, count(usename), client_hostname, xact_start
|
select usename, client_hostname, client_addr, xact_start, state, query
|
||||||
from pg_stat_activity
|
from pg_stat_activity
|
||||||
where datname = 'mydatabasename'
|
where datname = 'drone';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user