Display the current CentOS 8 hostname
hostname
or
hostnamectl
CentOS 8 change hostname at
sudo vi /etc/hostname
Next Edit the /etc/hosts file
sudo vi /etc/hosts
Reboot system
sudo reboot
by dev
Display the current CentOS 8 hostname
hostname
or
hostnamectl
CentOS 8 change hostname at
sudo vi /etc/hostname
Next Edit the /etc/hosts file
sudo vi /etc/hosts
Reboot system
sudo reboot
by dev
SSH method
Login to SSH as root and Run below line.
echo 500 > /etc/virtual/bdhostit.com/limit/helpdesk1
The above command will increase daily email sending limit to 500 of helpdesk1@bdhostit.com.
Change the bold text replacing your details.
by dev
Anchors
Character Classes
POSIX
Assertions
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Quantifiers
Add a ? to a quantifier to make it ungreedy. Escape Sequences
“Escaping” is a way of treating characters which have a special meaning in regular expressions literally, rather than as special characters. Common Metacharacters
The escape character is usually \ Special Characters
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Groups and Ranges
Ranges are inclusive. Pattern Modifiers
* PCRE modifier String Replacement
Some regex implementations use \ instead of $. |
by dev
Solutions
by dev
https://help.directadmin.com/item.php?id=42
Cannot open quotafile /home1/aquota.user: No such file or directory
repquota: Not all specified mountpoints are using quota.
https://forums.centos.org/viewtopic.php?t=50869
touch /home1/aquota.user
touch /home1/aquota.group
mount -vo remount /home1
quotacheck -vgum /home1
apache_public_html=0
home_override_list=/home:/home2:/home3
/etc/default/useradd
HOME=/home
Unable to open ./data/users/new/du_breakdown.list for reading. No such file or directory
To check whether quota package is installed or not
rpm –qa quota
or
yum list quota
Disk quota configuration in four steps
Enable quota
Remount file system
Create quota files
Configure quota policy
Enabling quota
To mount all partitions in file system at boot time, linux uses /etc/fstab file. This file contains six necessary information about the partition.
vi /etc/fstab
Add defaults,usrquota,grpquota in option four. Save and restart system.
Remounting file system
mount –o remount /home
cat /etc/fstab
df -h
mount
/usr/local/directadmin/directadmin c | grep quota_partition
/usr/local/directadmin/directadmin c | grep use_xfs_quota
repquota `/usr/local/directadmin/directadmin c | grep quota_partition= | cut -d= -f2`
ls -lad /home/tmp
ls -la /home/tmp