faketime
Fake the system time for a command. More information: https://manned.org/faketime.
- Fake the time to this evening, before printing the result of
date:
faketime ''
- Open a new Bash shell, which uses yesterday as the current date:
faketime ''
- Simulate how a program would act next Friday night:
faketime ''
- Run a program on a specific date and time:
faketime ''
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
