This Bash script simplifies the process of connecting to a Wi-Fi network on a Linux system. It utilizes the nmcli
command, which is a command-line client for NetworkManager. With this script, you can easily list available Wi-Fi networks and connect to a network by providing the SSID and password.
Before using this script, ensure that the following prerequisites are met:
- A Linux-based system with NetworkManager installed.
- Administrative privileges to run
nmcli
withsudo
.
-
Download the script to your local machine. You can do this by clicking the "Download ZIP" option from the GitHub repository or by cloning the repository.
-
Make the script executable by running the following command in the terminal:
chmod +x "connect wifi simple programe.sh"
-
to run this script
./connect wifi simple programe.sh