- Details
- admin
- Redhat / CentOS
# firewall-cmd --zone=public --add-port=123/udp --permanent success
- Details
- admin
- Redhat / CentOS
List current active default target
# systemctl get-defaultList all active systemd targets:
# systemctl list-units --type target
- Details
- admin
- Redhat / CentOS
date
command to do this job or engage dedicated systemd timedatectl
command. By default and without any arguments timedatectl
will display a current time, local, universal and RTC times: [root@rhel7 ~]# localectl System Locale: LANG=en_AU.iso88591 VC Keymap: us X11 Layout: us [root@rhel7 ~]# timedatectl Local time: Thu 2014-09-04 18:30:11 WST Universal time: Thu 2014-09-04 10:30:11 UTC RTC time: Thu 2014-09-04 10:30:10 Timezone: Australia/Perth (WST, +0800) NTP enabled: n/a NTP synchronized: no RTC in local TZ: no DST active: n/a
- Details
- admin
- Redhat / CentOS
localectl
to see your currently active locale on Redhat 7 Linux. For example: [root@rhel7 ~]# localectl System Locale: LANG=en_AU.UTF-8 VC Keymap: us X11 Layout: us
- Details
- admin
- Redhat / CentOS
[root@rhel7 ~]# localectl list-localesThe list of all available locales on your system my be quite long so use
grep
command to narrow down your search. Bellow command will display for example all German available locales: [root@rhel7 ~]# localectl list-locales | grep ^de de_AT de_AT.iso88591 de_AT.iso885915@euro de_AT.utf8 de_AT@euro de_BE de_BE.iso88591 de_BE.iso885915@euro de_BE.utf8 de_BE@euro de_CH de_CH.iso88591 de_CH.utf8 de_DE de_DE.iso88591 de_DE.iso885915@euro de_DE.utf8 de_DE@euro de_LU de_LU.iso88591 de_LU.iso885915@euro de_LU.utf8 de_LU@euro deutsch