mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
30 lines
529 B
Plaintext
30 lines
529 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# vmtouch
|
|
|
|
> Manage the filesystem cache.
|
|
> More information: <https://manned.org/vmtouch>.
|
|
|
|
- Print the cache status of a file:
|
|
|
|
`vmtouch {{path/to/file}}`
|
|
|
|
- Load a file into cache:
|
|
|
|
`vmtouch -t {{path/to/file}}`
|
|
|
|
- Evict a file from cache:
|
|
|
|
`vmtouch -e {{path/to/file}}`
|
|
|
|
- Lock a file in cache to prevent eviction from memory:
|
|
|
|
`vmtouch -l {{path/to/file}}`
|
|
|
|
- Lock a file and daemonize the program:
|
|
|
|
`vmtouch -ld {{path/to/file}}`
|