File Commander is a command-line tool for performing various file operations such as DELETE, COPY, MOVE,READ, SEARCH, LIST with the terminal.
To install File Commander, follow this Guide
follow these steps:
- Make sure you have Go installed on your machine.
# Check Go version
go versionor visit https://go.dev/ to install Go on your local machine.
- Clone the repository or download the source code.
git clone https://github.com/geoffrey1330/filecommander.git- Navigate to the project directory.
cd filecommander- Run the following command to build the executable:
go build -o filecommander main.go search.go utils.goThis will generate an executable named filecommander.
File Commander supports the following commands:
Create a new file.
filecommander create <filename>Read the content of a file.
filecommander read <filename>Write content to a file.
filecommander write <filename> <content>Delete a file.
filecommander delete <filename>List all files in a directory.
filecommander list <directory>Copy a file to a new destination.
filecommander copy <srcfile> <destfile>Move a file to a new destination.
filecommander move <srcfile> <destfile>Search for files in a directory based on a given search term.
filecommander search <directory> <filename>OR
filecommander search <directory> <filename extension>Open a file in the default editor.
filecommander open <filename>