I have a command which is hard-coded to use /tmp
as its working directory.
/tmp
is rather small, and the command is certain to fill it up, which will cause problems for other system processes.
I can't modify the command, so I would like to remount /tmp
somewhere else, only visible to the current user/shell, without affecting other users/processes.
Is this possible?
Update: Discovered the command uses the TMPDIR
variable which I can override, but still interested to know if there's a Linux user-space command I can use.