-
Notifications
You must be signed in to change notification settings - Fork 51
gettmp
Ulrich Berntien edited this page Mar 31, 2019
·
1 revision
gettmp - list typical directories for tmp files
gettmp
gettmp list typical directories for tmp files. gettmp lists the tmpfs file-system mount points and typical locations for temporary files (e.g. /tmp, /var/tmp).
The home directory of the current user and of root is also listed because if no other tmp directory is available the home directories are options to store tmp files.
gettmp writes the list of existing directories and effective access right to stdout.
Run the function. There are no command line arguments.
$ gettmp
The function stats the tmpfs mount points and a list of common tmp directories /dev/shm, $XDG_RUNTIME_DIR, /tmp, /var/tmp, $TMPDIR, $HOME, /root.