Code: Select all
seq 100000 | xargs -I{} -- sh -c 'command1; command2; command3; . . .'
Example:
Code: Select all
seq 100000 | xargs -I{} -- sh -c 'echo "Loop {}"; ab -n 100000 -c 1000 http://172.16.22.110/'
Code: Select all
seq 100000 | xargs -I{} -- sh -c 'command1; command2; command3; . . .'
Code: Select all
seq 100000 | xargs -I{} -- sh -c 'echo "Loop {}"; ab -n 100000 -c 1000 http://172.16.22.110/'
Code: Select all
PermitRootLogin no
MaxAuthTries 4
Code: Select all
sudo service ssh restart
Code: Select all
sudo vim /etc/systemd/resolved.conf
Code: Select all
[Resolve]
DNS=8.8.8.8 8.8.4.4
Domains=example.com local.domain
Code: Select all
rsync -arvz --delete -e 'ssh -p #PORT' #source #user@#destination_ip:#destination_parent
Code: Select all
rsync -arvz --delete -e 'ssh -p 58038' bpc2 p1admin@192.168.3.5:/home/p1admin/cloud_services/ns_files/nsm_attachedfiles/
Code: Select all
sudo dpkg-reconfigure tzdata
Code: Select all
select pg_reload_conf();
Code: Select all
pg_ctl -D $PGDATA reload
Code: Select all
create tablespace temp_ssd_tablespace location '/path/to/ssd/directory';
Code: Select all
alter system set temp_tablspaces = 'temp_ssd_tablespace';
Code: Select all
select pg_reload_conf();