Stashing"

This commit is contained in:
jsmith 2020-08-11 07:26:47 -05:00
parent 8084b07fb4
commit d8e9ec5b9b
2 changed files with 5 additions and 2 deletions

3
Linux/swap.sh Normal file
View 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

View File

@ -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
where datname = 'mydatabasename'
where datname = 'drone';