A simple but functional file manager :)
The file manager is able to perform the following operations:
- Perform basic file operations (copy, move, delete, rename, etc.);
- Get information about the host machine operating system;
- Perform hash calculations;
- Compress and decompress files(Brotli algorithm).
To see all supported commands after launching the file manager, please type help
.
To start the application you should use 18 LTS version of Node.js.
- Go to folder
file-manager
. - Start file-manager by npm-script:
npm run start -- --username=your_username
your_username
- Your preferred namefor example:
npm run start -- --username=John
Usage:
up
Action: Go upper from current directory (equivalent 'cd ..')
Usage:
cd [PATH_TO_DIRECTORY]
Action: Go to dedicated folder from current directory
[PATH_TO_DIRECTORY] can be relative or absolute)
Usage:
ls
Action: Print in console list of all files and folders in current directory
Usage:
cat [PATH_TO_FILE]
Action: Read file and print it's content in console
Usage:
add [NEW_FILENAME]
Action: Create empty file in current working directory
Usage:
rn [PATH_TO_FILE] [NEW_FILENAME]
Action: Rename file
Usage:
cp [PATH_TO_FILE] [PATH_TO_NEW_DIRECTORY]
Action: Copy file to the specified directory
Usage:
mv [PATH_TO_FILE] [PATH_TO_NEW_DIRECTORY]
Action: Move file to the specified directory
Usage:
rm [PATH_TO_FILE]
Action: Delete file
Usage:
os [OPTION]
[OPTION]:
--EOL
- Print EOL (default system End-Of-Line)
--cpus
- Print host machine CPUs info
--homedir
- Print home directory of current system user
--username
- Print current system user name
--architecture
- Print current CPU architecture
Usage:
hash [PATH_TO_FILE]
Action: Calculate SHA256 hash for specified file
Usage:
compress [PATH_TO_FILE] [PATH_TO_DESTINATION_FILE]
Example usage:
compress 1.txt 1.txt.br
Action: Compress file (using Brotli algorithm)
Usage:
decompress [PATH_TO_FILE] [PATH_TO_DESTINATION_FILE]
Example usage:
decompress 1.txt.br 1.txt
Action: Decompress file (using Brotli algorithm)
P.S. Thanks for using my application ;)