Skip to content

LostHopes/genutils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is genutils?

Genutils is the attempt to rewrite some of the main GNU core utils. Commands ends with prefix with "g" to indicate genutils and don't conflict with other commands.

The goals of genutils

  1. Simplicity over complexity
  2. Learning CLI tools and improve my understanding of C
  3. Focus on the Linux side first

lsg (list directories and files)

  • list objects if path provided
  • get the all files and directories in the list by column (-l)
  • show hidden files (-a)
  • list directories recursively (-R)
  • output with colors
  • sort items by default and select certain algorithm if argument is provided (-s)

cpg (copy files and/or directories)

  • cp directory (-r)
  • add verbose output (-v)
  • print amount of bytes copied

Known bugs

lsg

cpg

References

  1. StackOverflow: Checking if a directory exists in Unix
  2. What is mode_t in C?
  3. How to pass function as parameter in C
  4. Stat function manual
  5. Reddit: building cross-platform C programs

Contribution

If you have found bug, please describe it in the issues section or fork the project, fix an error and create pull request.

License

The project created for educational purposes and LICENSED under MIT. (See LICENSE file)

About

General command line utils for day-to-day usage

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published