Co robi TMPWATCH użycie. Konsola access times older than hours . Specify the directory as an.

Czy przydatne?

Polecenie tmpwatch

Wykonanie, użycie: System administration command. Recursively remove regular files and directories in directory with access times older than hours. Specify the directory as an absolute path. This command is usually invoked by cron to remove old files in the /tmp directory

Opcje wykonania tmpwatch w konsoli

-a, --all

Remove all file types.

-c, --ctime

Make decision on last inode change time for files and modification time for directories instead of access time

-d, --nodirs

Do not remove directories.

-f, --force

Force removal of read-only files (similar to rm -f).

-m, --mtime

Make decision on last modification time instead of access time.

-s, --fuser

Before deleting, attempt to use fuser to see if a file is in use.

-t, --test

Verbosely test command, but don't actually remove files.

-u, --atime

Make decision on access time. (This is the default.)

-v, --verbose

Print more details. Use two times to further increase the detail of the output.

-x, --exclude=path

Skip the specified path, the absolute path of a directory or file.

Przykłady tmpwatch działanie w Słownik polecenie T

Przykład TMPWATCH użycie :
Jak użyć terminal. The terminal to be initialized is whichever is found first from the value of terminal , the value of the TERM environment variable, or the default terminal type. See also the reset command co to jest.
Przykład TMPWATCH użycie :
Jak użyć administration command. Tune the parameters of a Linux Second Extended Filesystem by adjusting various parameters. You must specify the device on which the filesystem resides; it must not be mounted definicja.
Przykład TMPWATCH użycie :
Jak użyć restore files from an archive medium. If any files are directories, tar acts on the entire subtree. Options need not be preceded by - (though they may be). The exception to this rule is when you are co znaczy.
Przykład TMPWATCH użycie :
Jak użyć files , update the access time and modification time (and dates) to the current time and date. touch is useful in forcing other commands to handle files a certain way; for example, the operation of słownik.
Przykład TMPWATCH użycie :
Jak użyć Accept output from another command and send it both to standard output and to files (like a T or fork in the road znaczenie.