The content of the file is printed to standard output, between the `cpio` archive format header and footer.
echo /path/to/input-file | cpio -o
- Evidence
- Upstream reference
- Environment
- Local host
- Compatibility
- Linux reference. macOS compatibility has not been checked for this command and execution context.
- Context
- sudo
- Native
- file-read
The content of the file is printed to standard output, between the `cpio` archive format header and footer.
echo /path/to/input-file | cpio -o
- Evidence
- Upstream reference
- Environment
- Local host
- Compatibility
- Linux reference. macOS compatibility has not been checked for this command and execution context.
- Context
- suid
- Native
- file-read
The content of the file is printed to standard output, between the `cpio` archive format header and footer.
echo /path/to/input-file | cpio -o
- Evidence
- Upstream reference
- Environment
- Local host
- Compatibility
- Linux reference. macOS compatibility has not been checked for this command and execution context.
- Context
- unprivileged
- Native
- file-read
The whole directory structure is copied to `.`, hence this is also a file write.
echo /path/to/input-file | cpio -R $UID -dp .
cat path/to/input-file
- Evidence
- Upstream reference
- Environment
- Local host
- Compatibility
- Linux reference. macOS compatibility has not been checked for this command and execution context.
- Context
- sudo
- Native
- file-read
The whole directory structure is copied to `.`, hence this is also a file write.
echo /path/to/input-file | cpio -R $UID -dp .
cat path/to/input-file
- Evidence
- Upstream reference
- Environment
- Local host
- Compatibility
- Linux reference. macOS compatibility has not been checked for this command and execution context.
- Context
- suid
- Native
- file-read
The whole directory structure is copied to `.`, hence this is also a file write.
echo /path/to/input-file | cpio -dp .
cat path/to/input-file
- Evidence
- Upstream reference
- Environment
- Local host
- Compatibility
- Linux reference. macOS compatibility has not been checked for this command and execution context.
- Context
- unprivileged
- Native
- file-read
The whole directory structure is copied to `.`, with the data written to `./path/to/temp-file`.
echo DATA >/path/to/temp-file
echo /path/to/temp-file | cpio -R 0:0 -udp .
- Evidence
- Upstream reference
- Environment
- Local host
- Compatibility
- Linux reference. macOS compatibility has not been checked for this command and execution context.
- Context
- sudo
- Native
- file-write
The whole directory structure is copied to `.`, with the data written to `./path/to/temp-file`.
echo DATA >/path/to/temp-file
echo /path/to/temp-file | cpio -R 0:0 -udp .
- Evidence
- Upstream reference
- Environment
- Local host
- Compatibility
- Linux reference. macOS compatibility has not been checked for this command and execution context.
- Context
- suid
- Native
- file-write
file-write
File WriteLinux
The whole directory structure is copied to `.`, with the data written to `./path/to/temp-file`.
echo DATA >/path/to/temp-file
echo /path/to/temp-file | cpio -udp .
- Evidence
- Upstream reference
- Environment
- Local host
- Compatibility
- Linux reference. macOS compatibility has not been checked for this command and execution context.
- Context
- unprivileged
- Native
- file-write