Skip to content

SharonAliyas5573/fm-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

File Manager (fm)

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.

Installation

Installation instructions for Go

Windows

  1. Download the latest stable version of Go for Windows from the official Go website at https://golang.org/dl/.
  2. Run the downloaded installer and follow the prompts to complete the installation.
  3. Open a command prompt or PowerShell window.
  4. Type go version to verify that Go is installed correctly.

Ubuntu

  1. Open a terminal window.
  2. Update the package list by running
    sudo apt update
  3. Install Go by running .
    sudo apt install golang
  4. Verify the installation by typing go version in the terminal.

Arch Linux

  1. Open a terminal window.
  2. Update the package list by running
    sudo pacman -Syu.
  3. Install Go by running
    sudo pacman -S go.
  4. Verify the installation by typing
    go version
    

macOS

  1. Open a terminal window.
  2. Install Homebrew (a package manager for macOS) by following the instructions at https://brew.sh/.
  3. Run
    brew install go
  4. Verify the installation by typing
    go version 
    

To install and run File Manager, follow these steps:

  1. Clone the repository:

    git clone https://github.com/SharonAliyas5573/fm-cli.git
    
  2. Change to the project directory:

    cd fm-cli
    
  3. Build the project:

    make build
    
  4. Install the binary to /bin with root privileges:

    sudo make install
    
  5. File Manager is now installed and ready to use.

Usage

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]
    

For more information on available commands and their options, run:

fm -h

Examples

  1. Copy a file:

    fm -cp file.txt /path/to/destination
    
  2. Move a directory:

    fm -mv directory /path/to/destination
    
  3. Rename a file:

    fm -rn old_name.txt new_name.txt
    
  4. Remove a file to the trash:

    fm -rm file.txt
    

FAQ

Q: Can I permanently delete a file without moving it to the trash?

A: Yes, you can use the -f flagwith the remove command. For example:

fm -rm -f file.txt

Troubleshooting

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.

Contributing

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published