Documentation for amok (version 3.1.2)
Table of Contents
Introduction
amok is a command-line program designed to dynamically copy, cut, and paste files or directories across different terminal sessions. This functionality allows users to initiate a file operation in one terminal session and complete it in another, as long as both sessions are under the same user profile.
Overview
amok supports a variety of options to manage files and directories effectively. These options provide users with the flexibility to copy, cut, and paste files or directories, either directly or through indexed actions. The program is inspired by Ve-Quantic principles, providing a robust and dynamic file management experience.
Requirements
To use amok, the following preconditions must be met:
- The program requires at least one option to be specified.
- If an index is used (via
--indexor-i), it must be a positive integer between 0 and 3. - Certain options are interdependent (e.g.,
--paste-copymust follow a--copyaction). - File or directory names must not contain the character
?.
Synopsis
amok [option | options] [target-dirs | target-files]
Options
-
--copy,-cCopies the specified file(s) or directory(ies). You can use the wildcard
*to target all contents in the current directory.Example:
amok --copy <target-dir-or-file> -
--cut,-xCuts the specified file(s) or directory(ies). The wildcard
*can be used similarly as with the--copyoption.Example:
amok --cut <target-dir-or-file> -
--paste-copy,--paste-c,-pcPastes files or directories that were previously copied. This must follow a
--copyaction.Example:
amok --paste-copy <target-directory> -
--paste-cut,--paste-x,-pxPastes files or directories that were previously cut. This must follow a
--cutaction.Example:
amok --paste-cut <target-directory> -
--array,-aAllows multiple copy or cut actions to be indexed for later use.
Example:
amok --array --index 0 --copy <file-1> <dir-1> -
--index,-iSpecifies the index for
--arrayactions.Example:
amok --array --index 0 --copy <file-1> -
--put,-pPuts files or directories stored in an array index to a target location.
Example:
amok --array --index 0 --put <target-dir> -
--stat-copy,--stat-c,-scDisplays the status of the last copy action.
Example:
amok --stat-copy -
--stat-cut,--stat-x,-sxDisplays the status of the last cut action.
Example:
amok --stat-cut -
--stat,-sDisplays the status of an action associated with
--array.Example:
amok --array --index 0 --stat -
--out,-oSpecifies the output directory for direct actions like
--copyor--cut.Example:
amok --copy <target> --out <output-dir> -
--reset,-rResets all actions. The word
requestmust follow this option.Example:
amok --reset request -
--docDisplays the documentation for the
amokprogram.Example:
amok --doc -
--helpDisplays help information.
Example:
amok --help -
--versionDisplays the current version of
amok.Example:
amok --version
Usage Examples
-
Copy a directory
amok --copy /path/to/directory -
Cut a file and paste it into another directory
amok --cut /path/to/file amok --paste-cut /path/to/destination -
Using array and indexes to manage multiple operations
amok --array --index 0 --copy /path/to/file1 amok --array --index 1 --cut /path/to/file2 amok --array --index 0 --put /destination/for/file1 -
Check the status of a copy operation
amok --stat-copy
Notes
amokrelies on certain programs that are required as part of its global package.- Actions performed with the
--copyoption can be repeated using the--paste-copyoption without re-initiating the copy. - Similarly, actions performed with the
--cutoption can be repeated using the--paste-cutoption. - The
--copyand--cutoptions have different hash codes and thus manage different sets of files or directories. - The program operates based on the user profile under which it is run. To ensure consistent operations, use the same profile for all related actions.
- A progress bar will display during copy or move operations executed with
--paste-copy,--paste-cut, or--put.
Author and Contributors
- Author: Baldé Amadou - baldeuniversel@protonmail.com
- Contributor: Diallo Ismaila - diallois@protonmail.com
Feel free to reach out to the author for any queries or contributions related to the amok program.
This documentation provides a comprehensive overview and should help in effectively utilizing the amok program.
To work properly, the program requires classic confinement. It does not need an internet connection(no request for this plug), as the program works locally. This is a version of both the cp and mv commands but operates dynamically with some added features.
Unless I’m mistaken, the program fits into one of these accepted categories.