diff --git a/technology/applications/network/NetworkManager.md b/technology/applications/network/NetworkManager.md index 44ed17c..7e20ae4 100644 --- a/technology/applications/network/NetworkManager.md +++ b/technology/applications/network/NetworkManager.md @@ -2,6 +2,8 @@ obj: application --- +#refactor + # NetworkManager [NetworkManager](https://networkmanager.dev/) is a program for providing detection and configuration for systems to automatically connect to networks. NetworkManager's functionality can be useful for both wireless and wired networks. For wireless networks, NetworkManager prefers known wireless networks and has the ability to switch to the most reliable network. NetworkManager-aware applications can switch from online and offline mode. NetworkManager also prefers wired connections over wireless ones, has support for modem connections and certain types of VPN. NetworkManager was originally developed by Red Hat and now is hosted by the GNOME project. diff --git a/technology/linux/systemd/Systemd-Mounts.md b/technology/linux/systemd/Systemd-Mounts.md index c645e8d..7ea58e4 100644 --- a/technology/linux/systemd/Systemd-Mounts.md +++ b/technology/linux/systemd/Systemd-Mounts.md @@ -14,7 +14,7 @@ Fields inside the mount section: - `Options` : Mount options to use when mounting. This takes a comma-separated list of options. This setting is optional. ## Example -``` +```ini [Unit] Documentation=man:fstab(5) man:systemd-fstab-generator(8) SourcePath=/etc/fstab @@ -24,4 +24,4 @@ What=/dev/sda1 Where=/mnt Type=btrfs Options=nosuid,nodev,nofail,compress=zstd,ro -``` \ No newline at end of file +``` diff --git a/technology/linux/systemd/Systemd-Timers.md b/technology/linux/systemd/Systemd-Timers.md index 5b1b1f7..55a0d60 100644 --- a/technology/linux/systemd/Systemd-Timers.md +++ b/technology/linux/systemd/Systemd-Timers.md @@ -18,11 +18,11 @@ systemctl list-timers ## Examples ### Monotonic timer - A timer which will start 15 minutes after boot and again every week while the system is running. -`/etc/systemd/system/foo.timer` -``` +```ini +# /etc/systemd/system/foo.timer + [Unit] Description=Run foo weekly and on boot @@ -35,11 +35,11 @@ WantedBy=timers.target ``` ### Realtime timer - A timer which starts once a week (at 12:00am on Monday). When activated, it triggers the service immediately if it missed the last start time (option `Persistent=true`), for example due to the system being powered off: -`/etc/systemd/system/foo.timer` -``` +```ini +# /etc/systemd/system/foo.timer + [Unit] Description=Run foo weekly @@ -59,4 +59,4 @@ An asterisk may be used to specify any value and commas may be used to list poss In the below example the service is run the first four days of each month at 12:00 PM, but _only_ if that day is a Monday or a Tuesday. -`OnCalendar=Mon,Tue *-*-01..04 12:00:00` \ No newline at end of file +`OnCalendar=Mon,Tue *-*-01..04 12:00:00` diff --git a/technology/linux/systemd/Systemd.md b/technology/linux/systemd/Systemd.md index c508346..c5251a8 100644 --- a/technology/linux/systemd/Systemd.md +++ b/technology/linux/systemd/Systemd.md @@ -65,6 +65,11 @@ systemctl mask unit systemctl unmask unit ``` +Get a list of overridden unit files: +```shell +systemd-delta +``` + ## Power Management Shut down and reboot the system `systemctl reboot` @@ -98,7 +103,7 @@ There are several different start-up types to consider when writing a custom ser - `Type=idle`: _systemd_ will delay execution of the service binary until all jobs are dispatched. Other than that behavior is very similar to `Type=simple`. #### Example -``` +```ini [Unit] Description=Description After=network.target @@ -149,4 +154,4 @@ Below are the fields the Install section has: Systemd supports other unit types than `.service`. Some include: - [Systemd-Timers](Systemd-Timers.md) -- [Systemd-Mounts](Systemd-Mounts.md) \ No newline at end of file +- [Systemd-Mounts](Systemd-Mounts.md) diff --git a/technology/linux/systemd/hostnamectl.md b/technology/linux/systemd/hostnamectl.md new file mode 100644 index 0000000..56bfaa0 --- /dev/null +++ b/technology/linux/systemd/hostnamectl.md @@ -0,0 +1,6 @@ +--- +obj: application +--- + +# hostnamectl +#wip diff --git a/technology/linux/systemd/journalctl.md b/technology/linux/systemd/journalctl.md new file mode 100644 index 0000000..9e119a7 --- /dev/null +++ b/technology/linux/systemd/journalctl.md @@ -0,0 +1,6 @@ +--- +obj: application +--- + +# journalctl +#wip diff --git a/technology/linux/systemd/localectl.md b/technology/linux/systemd/localectl.md new file mode 100644 index 0000000..77ca526 --- /dev/null +++ b/technology/linux/systemd/localectl.md @@ -0,0 +1,7 @@ +--- +obj: application +--- + +# localectl +#wip +https://man.archlinux.org/man/localectl.1 diff --git a/technology/linux/systemd/loginctl.md b/technology/linux/systemd/loginctl.md new file mode 100644 index 0000000..da735c9 --- /dev/null +++ b/technology/linux/systemd/loginctl.md @@ -0,0 +1,6 @@ +--- +obj: application +--- + +# loginctl +#wip diff --git a/technology/linux/systemd/networkctl.md b/technology/linux/systemd/networkctl.md new file mode 100644 index 0000000..0ddbe1f --- /dev/null +++ b/technology/linux/systemd/networkctl.md @@ -0,0 +1,6 @@ +--- +obj: application +--- + +# networkctl +#wip diff --git a/technology/linux/systemd/systemd-analyze.md b/technology/linux/systemd/systemd-analyze.md new file mode 100644 index 0000000..918ccba --- /dev/null +++ b/technology/linux/systemd/systemd-analyze.md @@ -0,0 +1,6 @@ +--- +obj: application +--- + +# systemd-analyze +#wip diff --git a/technology/linux/systemd/systemd-ask-pass.md b/technology/linux/systemd/systemd-ask-pass.md new file mode 100644 index 0000000..c321193 --- /dev/null +++ b/technology/linux/systemd/systemd-ask-pass.md @@ -0,0 +1,6 @@ +--- +obj: application +--- + +# systemd-ask-pass +#wip diff --git a/technology/linux/systemd/systemd-detect-virt.md b/technology/linux/systemd/systemd-detect-virt.md new file mode 100644 index 0000000..1adb851 --- /dev/null +++ b/technology/linux/systemd/systemd-detect-virt.md @@ -0,0 +1,6 @@ +--- +obj: application +--- + +# systemd-detect-virt +#wip diff --git a/technology/linux/systemd/systemd-firstboot.md b/technology/linux/systemd/systemd-firstboot.md new file mode 100644 index 0000000..8073a62 --- /dev/null +++ b/technology/linux/systemd/systemd-firstboot.md @@ -0,0 +1,6 @@ +--- +obj: application +--- + +# systemd-firstboot +#wip diff --git a/technology/linux/systemd/systemd-inhibit.md b/technology/linux/systemd/systemd-inhibit.md new file mode 100644 index 0000000..d728255 --- /dev/null +++ b/technology/linux/systemd/systemd-inhibit.md @@ -0,0 +1,6 @@ +--- +obj: application +--- + +# systemd-inhibit +#wip diff --git a/technology/linux/systemd/systemd-resolve.md b/technology/linux/systemd/systemd-resolve.md new file mode 100644 index 0000000..5896281 --- /dev/null +++ b/technology/linux/systemd/systemd-resolve.md @@ -0,0 +1,6 @@ +--- +obj: application +--- + +# systemd-resolve +#wip diff --git a/technology/linux/systemd/systemd-timesyncd.md b/technology/linux/systemd/systemd-timesyncd.md new file mode 100644 index 0000000..1578234 --- /dev/null +++ b/technology/linux/systemd/systemd-timesyncd.md @@ -0,0 +1,9 @@ +--- +obj: application +arch-wiki: https://wiki.archlinux.org/title/Systemd-timesyncd +--- + +# systemd-timesyncd +#wip + +timedatectl diff --git a/technology/linux/systemd/userdbctl.md b/technology/linux/systemd/userdbctl.md new file mode 100644 index 0000000..90bbd1e --- /dev/null +++ b/technology/linux/systemd/userdbctl.md @@ -0,0 +1,6 @@ +--- +obj: application +--- + +# userdbctl +#wip