LoginSignup
0
0

More than 1 year has passed since last update.

Linux — tmpwatch の引数の数字は「削除のしきい値」を「時間」で表す

Last updated at Posted at 2018-08-10

tmpwatch では単位として

  • 秒 (m)
  • 時間 (h)
  • 日 (d)

が指定できる。

単位指定なしの場合は時間 ( h ) 指定となる。

出典

tmpwatch(8) - Linux man page より

The time parameter defines the threshold for removing files.
If the file has not been accessed for time, the file is removed.
The time argument is a number with an optional single-character suffix specifying the units: m for minutes, h for hours, d for days.
If no suffix is specified, time is in hours.

指定例

以下はすべて同義。

単位指定なし (時間)

tmpwatch 24

時間指定

tmpwatch 24h

秒指定

tmpwatch 1440m

日指定

tmpwatch 1d

チャットメンバー募集

何か質問、悩み事、相談などあればLINEオープンチャットもご利用ください。

Twitter

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0