do-linux¤
Linux-focused utilities for system inspection and running commands as root from within PowerShell - particularly handy in WSL environments.
Module Info
Version: 0.6.0 (beta) · PowerShell: 7.0+ · Dependencies: do-common
./module_manage.ps1 'do-linux' -CleanUp
Highlights¤
- System info -
gsiprints a colorful system summary: OS, kernel, CPU, memory usage, WSL distro, and terminal. - Sudo wrappers -
_(Invoke-Sudo) resolves PowerShell aliases before passing them to sudo, so_ gstactually runssudo git status.spsdoes the same but launches a pwsh subprocess for full cmdlet support. - Executable bit fix -
fixmodscans a directory tree and sets/removes the executable bit based on shebang presence - useful after cloning repos on Windows. - Makefile tab completion -
Register-MakeCompletergives you tab-completed Makefile targets.
Functions¤
| Function | Alias | Description |
|---|---|---|
Get-SysInfo |
gsi |
System info from /etc/os-release |
Invoke-Sudo |
_ |
Run commands as root |
Invoke-SudoPS |
sps |
Run PS cmdlets as root |
Invoke-ExecutableBitFix |
fixmod/fxmod |
Fix executable bit based on shebang |
Register-MakeCompleter |
Tab-complete Makefile targets |