added sample commands

This commit is contained in:
K4YT3X
2020-10-05 18:20:33 -04:00
parent 4b70379318
commit 7d768f05f1

View File

@@ -18,11 +18,28 @@ Please be careful that this `sysctl.conf` is **designed for endpoint hosts that
## Usages
1. Download the file `sysctl.conf` from the repository
1. Review the content of the `sysctl.conf` file to make sure all settings are suitable for your system
1. **Review the content of the `sysctl.conf` file to make sure all settings are suitable for your system**
1. Backup your current `/etc/sysctl.conf` file (e.g., `cp /etc/sysctl.conf /etc/sysctl.conf.backup`)
1. Overwrite the old `sysctl.conf` file with the downloaded `sysctl.conf` file
1. Run command `sudo sysctl -p` or reboot the system to apply the changes
```shell
# clone the repository
git clone https://github.com/k4yt3x/sysctl.git ~/sysctl
# backup the original sysctl.conf
sudo cp /etc/sysctl.conf /etc/sysctl.conf.backup
# replace the old sysctl.conf with the new one
sudo cp ~/sysctl/sysctl.conf /etc/sysctl.conf
# apply changes
sudo sysctl -p
# remove the downloaded repository if you don't need it anymore
rm -rf ~/sysctl
```
For convenience, I have pointed the URL `https://akas.io/sysctl` to the `sysctl.conf` file. You may therefore download the `sysctl.conf` file with the following command. However, be sure to check the integrity of the file after downloading it if you choose to download using this method.
```shell