LinuxCommandLibrary

xcv

File cut, copy, and paste for terminal

TLDR

Cut files

$ xcv x [file1] [file2]
copy
Copy files
$ xcv c [file1] [file2]
copy
Paste files
$ xcv v
copy
List clipboard
$ xcv l
copy
Paste to directory
$ xcv v [directory/]
copy

SYNOPSIS

xcv x|c|v|l [options] [files]

DESCRIPTION

xcv provides clipboard-style cut, copy, and paste operations for files in the terminal. Files are staged in the ~/.xcv directory, acting as a persistent clipboard between operations. The x command cuts (moves) files to the staging area, c copies them, v pastes them to the current or specified directory, and l lists the current clipboard contents.
The tool wraps the standard cp and mv commands, providing a simple and intuitive workflow for moving files around without needing to type full source and destination paths.

PARAMETERS

x

Cut files (uses mv).
c
Copy files (uses cp).
v
Paste files to current directory.
l
List files in clipboard.

CAVEATS

Files stored in ~/.xcv. Bash required. Install via npm.

HISTORY

xcv was created as a simple bash tool to provide cut, copy, and paste functionality for files in the terminal.

SEE ALSO

cp(1), mv(1), xclip(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community