AreYouUsingArchLinux is a simple Rust-based tool that determines whether your system is running Arch Linux. It performs checks to identify if the operating system is Arch Linux and provides a visual confirmation with ASCII art and colored terminal output.
- OS Detection: Checks if the system is Arch Linux by examining both the
/etc/os-releasefile and the presence of thepacmanpackage manager. - Visual Feedback: Displays a custom ASCII logo and colored terminal messages to make the output more engaging.
- System Information Retrieval: Utilizes the
sysinfocrate to gather system information. - Arch Linux Detection:
- OS Release File: Reads and parses the
/etc/os-releasefile to check for Arch Linux indicators (ID=archorID_LIKE=arch). - Pacman Presence: Checks for the
pacmanpackage manager to further verify Arch Linux.
- OS Release File: Reads and parses the
- Output: Prints a colored ASCII logo and a message indicating whether the system is Arch Linux or not.
-
Clone the Repository:
git clone https://github.com/your-username/AreYouUsingArchLinux.git
-
Navigate to the Project Directory:
cd AreYouUsingArchLinux -
Build and Run: Ensure you have Rust installed. Then run:
cargo run
main: Initializes the system object, checks if the OS is Arch Linux, and prints the result with colored output.is_arch_linux: Combines results fromcheck_os_releaseandcheck_pacmanto determine if the system is Arch Linux.check_os_release: Reads and parses/etc/os-releaseto identify Arch Linux indicators.check_pacman: Checks ifpacmanis installed and accessible.
-
Arch Linux Detected:
Are You Using Arch Linux? [ASCII Logo] Congratulations, you are running Arch Linux! -
Not Arch Linux:
Are You Using Arch Linux? [ASCII Logo] No, you are not using Arch Linux!
- The detection method relies on both the presence of Arch-specific identifiers in
/etc/os-releaseand thepacmanpackage manager. However, it’s still possible to trick the detection by modifying these files or altering system configurations.

