This project is a custom implementation of the rm command in C, designed to provide basic file deletion functionality with additional features and improvements.
- File Deletion: Delete files specified by the user.
- File Information: Use
FileDatastructure to check file type before deletion.
- GCC (GNU Compiler Collection) or any C compiler.
- Basic knowledge of terminal commands.
-
Clone the repository:
git clone https://github.com/arkeasz/remof.git cd remof -
Compile the program:
make
-
Run the program:
./rf file1.txt file2.txt
To delete files, provide the filenames as arguments:
./rf file1.txt file2.txt$ ./rf test.txt
File deleted successfully. (test.txt)
$ ./rf non_existent.txt
Error: Unable to delete the file.Contributions are welcome! If you'd like to contribute, please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature/YourFeature). - Commit your changes (
git commit -m 'Add some feature'). - Push to the branch (
git push origin feature/YourFeature). - Open a pull request.