[root@localhost ~]# y -c "SELECT substring(version() from 'YB-([^\s]+)') AS \"YugabyteDB Version\";"
YugabyteDB Version
--------------------
2.19.2.0-b0
(1 row)
[root@localhost ~]# y -c "SHOW unix_socket_directories;"
unix_socket_directories
-------------------------------
/tmp/.yb.yugabytedb.tech:5433
(1 row)
[root@localhost ~]# curl -s http://yugabytedb.tech:9000/varz?raw | grep "\-\-tmp_dir"
--tmp_dir=/tmp
[root@localhost ~]# yugabyted stop --base_dir=/root/yb-cluster/node1
Stopped yugabyted using config /root/yb-cluster/node1/conf/yugabyted.conf.
[root@localhost ~]# mkdir /root/jim/tmp2
[root@localhost ~]# yugabyted start --advertise_address=yugabytedb.tech --base_dir=/root/yb-cluster/node1 --tserver_flags="tmp_dir=/root/jim/tmp" > start.log
[root@localhost ~]# curl -s http://yugabytedb.tech:9000/varz?raw | grep "\-\-tmp_dir"
--tmp_dir=/root/jim/tmp
[root@localhost ~]# y -c "SHOW unix_socket_directories;"
unix_socket_directories
----------------------------------------
/root/jim/tmp/.yb.yugabytedb.tech:5433
(1 row)