← 返回命令列表

Linux command

rcsclean 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Remove unchanged working files

rcsclean

Remove unchanged working files

rcsclean [path/to/directory]

Remove unchanged working files

rcsclean -u

Preview which files would be removed

rcsclean -n

Remove a specific unchanged file

rcsclean [filename]

说明

rcsclean removes working files that have not been modified since checkout. It compares each working file against its corresponding RCS revision and deletes unchanged files, cleaning up the working directory. This utility is useful for removing files that were checked out for reading but never modified, reducing clutter in the working directory. With -u, it also unlocks any locked revisions that the caller owns if the working file is unchanged. By default, rcsclean operates on all RCS-controlled files in the current directory. Specify filenames to operate on specific files only.

参数

-n
Dry run; show what would be done without doing it
-q
Quiet mode; suppress diagnostics
-u _rev_
Unlock the revision if locked by the caller
-r _rev_
Compare against specified revision instead of default
-T
Preserve modification time of RCS file
-V
Print version number

FAQ

What is the rcsclean command used for?

rcsclean removes working files that have not been modified since checkout. It compares each working file against its corresponding RCS revision and deletes unchanged files, cleaning up the working directory. This utility is useful for removing files that were checked out for reading but never modified, reducing clutter in the working directory. With -u, it also unlocks any locked revisions that the caller owns if the working file is unchanged. By default, rcsclean operates on all RCS-controlled files in the current directory. Specify filenames to operate on specific files only.

How do I run a basic rcsclean example?

Run `rcsclean` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -n do in rcsclean?

Dry run; show what would be done without doing it