~ ps ax|grep tmux
~ lsof -p 8670 | grep cwd
~ gdb -q -p 8670
(gdb) call (int) chdir("/tmp")
(gdb) detach
(gdb) quit
Created
March 15, 2021 10:54
-
-
Save sprhawk/d413abf71ade45f253eaecef55b0c7d6 to your computer and use it in GitHub Desktop.
change cwd of running process
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment