You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ulrich Berntien edited this page Mar 31, 2019
·
1 revision
gettmp
Name
gettmp - list typical directories for tmp files
Synopsis
gettmp
Description
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.
Example
Run the function. There are no command line arguments.
$ gettmp
Files
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.