File Manager (fm) is a command-line tool for managing files and directories. It provides functionality such as copying, moving, renaming, and removing files and directories.
Windows
- Download the latest stable version of Go for Windows from the official Go website at https://golang.org/dl/.
- Run the downloaded installer and follow the prompts to complete the installation.
- Open a command prompt or PowerShell window.
- Type go version to verify that Go is installed correctly.
Ubuntu
- Open a terminal window.
- Update the package list by running
sudo apt update
- Install Go by running .
sudo apt install golang
- Verify the installation by typing go version in the terminal.
Arch Linux
- Open a terminal window.
- Update the package list by running
sudo pacman -Syu.
- Install Go by running
sudo pacman -S go.
- Verify the installation by typing
go version
macOS
- Open a terminal window.
- Install Homebrew (a package manager for macOS) by following the instructions at https://brew.sh/.
- Run
brew install go
- Verify the installation by typing
go version
To install and run File Manager, follow these steps:
-
Clone the repository:
git clone https://github.com/SharonAliyas5573/fm-cli.git
-
Change to the project directory:
cd fm-cli
-
Build the project:
make build
-
Install the binary to /bin with root privileges:
sudo make install
-
File Manager is now installed and ready to use.
File Manager supports the following commands:
-
Copy files/directories:
fm -cp [source] [destination]
-
Move files/directories:
fm -mv [source] [destination]
-
Rename files:
fm -rn [current_name] [new_name]
-
Remove files/folders to trash:
fm -rm [file/directory name]
fm -h
-
Copy a file:
fm -cp file.txt /path/to/destination
-
Move a directory:
fm -mv directory /path/to/destination
-
Rename a file:
fm -rn old_name.txt new_name.txt
-
Remove a file to the trash:
fm -rm file.txt
A: Yes, you can use the -f flagwith the remove command. For example:
fm -rm -f file.txt
If you encounter any errors or issues while running File Manager, try the following:
- Ensure you have the necessary permissions to access the files and directories.
- Make sure the source and destination paths are correct and exist.
- Check your command syntax and arguments for any mistakes.
If you need further assistance, please create an issue on the project's GitHub repository.
Contributions to File Manager are welcome! If you find a bug, have a suggestion, or want to contribute code, please submit a pull request on the project's GitHub repository. License
This project is licensed under the MIT License.