Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jdlorimer/unix-utils
Tools for working with Unix derivatives
https://github.com/jdlorimer/unix-utils
freebsd openbsd tools unix utilities
Last synced: about 1 month ago
JSON representation
Tools for working with Unix derivatives
- Host: GitHub
- URL: https://github.com/jdlorimer/unix-utils
- Owner: jdlorimer
- License: isc
- Created: 2018-10-17T07:38:00.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-18T14:36:07.000Z (over 4 years ago)
- Last Synced: 2024-05-03T01:58:16.745Z (9 months ago)
- Topics: freebsd, openbsd, tools, unix, utilities
- Language: Python
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Collection of useful tools for working with Unix derivatives. FreeBSD- and OpenBSD-centric.
Some of these have both Python and Rust implementations. As a general rule, the Python versions will be more complete and the Rust ones more performant. Take your pick.
All code is released under the ISC license.
compare-installed
=================Tested only on FreeBSD, but potentially useful on other BSD platforms. Takes a text file with a list of ports in port origin format (e.g. www/firefox) and compares against installed system packages. Output is those ports not on the list, as well as their dependent ports (if any). Helps in maintaining a list of ports for automated install, as well as identifying leaf packages that are no longer in use.
set-permissions
===============Essentially a combined `chmod` and `chown`, but able to selectively set the execute permission bit based on whether the file is executable. I tend to maintain file permission of 600 on home directories, whereas 644 is more common. Allows a recursive `chmod` that maintains executable status. The Python implementation should be reasonably cross-platform; for Rust, `/usr/share/misc/magic` is hardcoded, so good luck.
update-bootcode
===============Only applicable to ZFS on FreeBSD, and probably hardware dependent (assumes `ada` disk driver, among other things). On the correct set up, will identify the correct partitions to write updated bootcode, display some information, ask for permission, then write it. Only tested on one system, with `zroot` mirrored across two disks. Has proved useful after a `zpool upgrade`. Edit to meet your personal needs.
examine-syslog
==============Somewhat useful in identifying hang points in the FreeBSD boot process, but could do with a lot of polish. Attempts to flag long delays between timestamps in `/var/log/messages` and average these out to eliminate once-off delays.