A PowerShell module for retrieving comprehensive Linux system information with a familiar PowerShell syntax.
LinuxInfo provides PowerShell-native commands to gather detailed system information on Linux systems. It bridges the gap between PowerShell and Linux system commands, offering familiar PowerShell syntax for system information retrieval.
-
System Information
- Comprehensive computer information (
Get-ComputerInfo
) - Detailed OS information (
Get-OSInfo
) - System uptime statistics (
Get-SystemUptime
)
- Comprehensive computer information (
-
Hardware Details
- Battery status and health (
Get-BatteryInfo
) - Display and graphics information (
Get-DisplayInfo
) - USB device management (
Get-USBInfo
)
- Battery status and health (
-
Network & Storage
- Network adapter configuration (
Get-NetworkInfo
) - Filesystem navigation help (
Get-FileSystemHelp
)
- Network adapter configuration (
Install-Module linuxinfo -Verbose
./build.ps1
To reinstall the module (for development):
./build.ps1 -Force
Get-ComputerInfo
- Retrieves comprehensive system informationGet-OSInfo
- Displays detailed OS information including install date and versionGet-SystemUptime
- Shows system uptime information
Get-BatteryInfo
- Provides detailed battery status and health informationGet-DisplayInfo
- Shows graphics and display adapter informationGet-USBInfo
- Lists all USB devices connected to the system
Get-NetworkInfo
- Retrieves network adapter information and configurationGet-FileSystemHelp
- Provides filesystem navigation help in JSON format
- PowerShell 6.0.0 or later
- Linux Operating System
- Required Linux utilities:
- upower (for battery information)
- lspci (for display information)
- Various standard Linux commands
Detailed documentation for each command is available through PowerShell's built-in help system:
Get-Help Get-OSInfo -Full
Get-Help Get-ComputerInfo -Detailed
Contributions are welcome! Here's how you can help:
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
Please ensure your code follows PowerShell best practices and includes appropriate documentation.
The module is actively tested on:
- Fedora (RHEL based)
- Ubuntu (Debian based)
This project is licensed under the MIT License - see the LICENSE file for details.
- 1.0.0: First stable release
- Complete core functionality
- Improved error handling
- Enhanced documentation
- Tested on major Linux distributions
For issues, feature requests, or questions, please open an issue on GitHub.
- Get-FileSystemHelp (help data on
/
, json format with navigation) - Get-BatteryInfo (
upower
parser) - Get-SystemUptime (
uptime
parser) (Get-Uptime exists in Linux, so this function is a bit redundant but was fun to write.) - Get-ComputerInfo
- Get-OSInfo (Gets install date, os version,
cat /etc/os-release
) - Get-DisplayInfo (
lspci
parser) - Get-NetworkInfo (gets network adapter info)
- Get-USBInfo (gets usb devices)
Feel free to open issues, PRs or anything else to contribute to the module.