LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

rcsclean

Remove unchanged RCS working files

TLDR

Remove unchanged working files
$ rcsclean
copy
Remove unchanged working files in a directory
$ rcsclean [path/to/directory]
copy
Remove unchanged working files and unlock them
$ rcsclean -u
copy
Preview which files would be removed (dry run)
$ rcsclean -n
copy
Remove a specific unchanged file
$ rcsclean [filename]
copy

SYNOPSIS

rcsclean [options] [file...]

DESCRIPTION

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.

PARAMETERS

-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

INSTALL

sudo apt install rcs
copy
sudo dnf install rcs
copy
sudo pacman -S rcs
copy
sudo apk add rcs
copy
sudo zypper install rcs
copy
brew install rcs
copy
nix profile install nixpkgs#rcs
copy

CAVEATS

Only removes files that are completely unchanged from their checked-out revision. Any modification, including whitespace changes, prevents deletion.The -u option only unlocks revisions locked by the current user. It cannot unlock files locked by other users.Use -n (dry run) first to preview which files will be removed, especially when running on an entire directory.

SEE ALSO

rcs(1), ci(1), co(1), rcsdiff(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid