{"id":19543304,"url":"https://github.com/uutils/util-linux","last_synced_at":"2025-04-26T17:32:19.869Z","repository":{"id":219740159,"uuid":"743741075","full_name":"uutils/util-linux","owner":"uutils","description":"Rust reimplementation of the util-linux project ","archived":false,"fork":false,"pushed_at":"2025-04-17T17:18:28.000Z","size":812,"stargazers_count":102,"open_issues_count":19,"forks_count":34,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-04-18T07:50:41.837Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/uutils.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-01-15T22:11:43.000Z","updated_at":"2025-04-17T17:17:55.000Z","dependencies_parsed_at":"2024-01-29T14:23:40.937Z","dependency_job_id":"c43e90ee-4a74-43ee-a437-83719868cd11","html_url":"https://github.com/uutils/util-linux","commit_stats":null,"previous_names":["uutils/util-linux"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uutils%2Futil-linux","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uutils%2Futil-linux/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uutils%2Futil-linux/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uutils%2Futil-linux/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uutils","download_url":"https://codeload.github.com/uutils/util-linux/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251026197,"owners_count":21524934,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T03:18:16.651Z","updated_at":"2025-04-26T17:32:19.864Z","avatar_url":"https://github.com/uutils.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Crates.io](https://img.shields.io/crates/v/util-linux.svg)](https://crates.io/crates/util-linux)\n[![Discord](https://img.shields.io/badge/discord-join-7289DA.svg?logo=discord\u0026longCache=true\u0026style=flat)](https://discord.gg/wQVJbvJ)\n[![License](http://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/uutils/util-linux/blob/main/LICENSE)\n[![dependency status](https://deps.rs/repo/github/uutils/util-linux/status.svg)](https://deps.rs/repo/github/uutils/util-linux)\n\n[![CodeCov](https://codecov.io/gh/uutils/util-linux/branch/master/graph/badge.svg)](https://codecov.io/gh/uutils/util-linux)\n\n# util-linux\n\nThis projects aims at doing the same as https://github.com/uutils/coreutils for util-linux.\n\nWe are rewriting [these tools](https://github.com/util-linux/util-linux) in Rust as drop-in replacements.\n\nFirst, reimplement the most important tools from util-linux:\n\n## System Information\n- `dmesg`: Displays kernel messages.\n- `lscpu`: Shows CPU architecture information.\n  Started\n- `lsipc`: Lists IPC facilities.\n- `lslocks`: Lists system locks.\n- `lsmem`: Lists memory ranges and status.\n- `lsns`: Lists namespaces.\n\n## Hardware Management\n- `chcpu`: Manages CPU state.\n- `rtcwake`: Manages system sleep states.\n- `zramctl`: Manages zram devices.\n- `wdctl`: Shows watchdog status.\n- `chmem`: Manages kernel memory usage.\n\n## Filesystem Tools\n- `findmnt`: Lists mounted filesystems.\n- `mountpoint`: Checks if a directory is a mountpoint.\n  Started\n- `fsck`: Checks and repairs filesystems.\n- `fsfreeze`: Freezes/unfreezes filesystems.\n  Done\n- `fstrim`: Discards unused blocks on filesystems.\n- `wipefs`: Wipes filesystem signatures.\n\n## Partition Management\n- `blkdiscard`: Discards sectors on a device.\n- `blkid`: Identifies block device attributes.\n- `blkzone`: Manages zoned block device parameters.\n- `blockdev`: Performs block device operations.\n- `mkswap`: Sets up swap space.\n- `swaplabel`: Manages swap space labels.\n- `addpart`: Adds a partition.\n- `delpart`: Deletes a partition.\n- `partx`: Manages partition entries.\n- `resizepart`: Resizes a partition.\n\n## Process and Resource Management\n- `runuser`: Runs a shell with different user/group IDs.\n- `sulogin`: Provides single-user mode login.\n- `chrt`: Manages real-time process attributes.\n- `ionice`: Sets process I/O scheduling class/priority.\n- `kill`: Sends signals to processes.\n- `renice`: Alters process priority.\n- `prlimit`: Sets/gets process resource limits.\n- `taskset`: Sets/gets process CPU affinity.\n- `uclampset`: Manages process utilization clamping.\n\n## User and Session Management\n- `su`: Changes user ID or becomes superuser.\n- `agetty`: Manages TTYs for login prompts.\n- `ctrlaltdel`: Configures Ctrl-Alt-Del action.\n- `pivot_root`: Changes the root filesystem.\n- `switch_root`: Switches to a different root filesystem.\n- `last`: Lists last logged-in users.\n- `lslogins`: Displays user information.\n- `mesg`: Controls write access to terminal.\n- `setsid`: Runs a program in a new session.\n- `setterm`: Sets terminal attributes.\n- `getty`: Manages virtual console login prompts.\n\n## Networking and IPC\n- `ipcmk`: Creates IPC resources.\n- `ipcrm`: Removes IPC resources.\n- `ipcs`: Shows IPC facilities status.\n- `nsenter`: Enters different namespaces.\n\n## Utility Tools\n- `lsblk`: Lists block devices.\n- `fallocate`: Preallocates file space.\n- `flock`: Manages file locks.\n- `getopt`: Parses command options.\n- `hardlink`: Creates hard links.\n- `mcookie`: Generates random numbers.\n- `namei`: Follows a pathname to its endpoint.\n- `rename`: Renames files.\n- `rev`: Reverses lines in a file.\n- `setarch`: Sets architecture emulation.\n- `setpriv`: Runs a program with different privileges.\n- `unshare`: Runs a program with unshared namespaces.\n- `utmpdump`: Dumps UTMP/WTMP files.\n- `whereis`: Locates binaries, sources, and manuals.\n- `ldattach`: Attaches line discipline to a serial line.\n- `readprofile`: Reads kernel profiling info.\n- `i386, linux32, linux64, x86_64`: Set personality flags for execution environment.\n\nNote:\n* /bin/more is already implemented in https://github.com/uutils/coreutils\n\nProject:\nhttp://www.kernel.org/pub/linux/utils/util-linux/\n\n## Installation\n\nEnsure you have Rust installed on your system. You can install Rust through [rustup](https://rustup.rs/).\n\nClone the repository and build the project using Cargo:\n\n```bash\ngit clone https://github.com/uutils/util-linux.git\ncd util-linux\ncargo build --release\ncargo run --release\n```\n\n## License\n\nutil-linux is licensed under the MIT License - see the `LICENSE` file for details\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuutils%2Futil-linux","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuutils%2Futil-linux","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuutils%2Futil-linux/lists"}