filesystem

/tmp — Temporary files

Scratch location with site-dependent cleanup and storage. Never store your only important copy here; use private temporary directories for practice. Example is read-only and assumes the path exists; layouts vary.

Formal Syntax & Structure

linux syntaxlinux
/tmp

Return Value

filesystem path

The example reports the mount target and filesystem type containing /tmp. A target other than /tmp means it lies within a containing mount, not necessarily a separate temporary filesystem. Neither result establishes the cleanup policy.

Working Example

Example Snippetlinux
findmnt -n -o TARGET,FSTYPE --target /tmp
Linux Reference