Khởi chạy dịch vụ httpd và mariadb để chạy web WordPress trên WSL:
sudo systemctl start httpd
sudo systemctl start mariadb
Các lệnh quản lý dịch vụ phổ biến trên AlmaLinux:
# Start services
sudo systemctl start httpd
sudo systemctl start mariadb
# Stop services
sudo systemctl stop httpd
sudo systemctl stop mariadb
# Restart services
sudo systemctl restart httpd
sudo systemctl restart mariadb
# Check service status
sudo systemctl status httpd
sudo systemctl status mariadb
# Enable services at boot
sudo systemctl enable httpd
sudo systemctl enable mariadb
So sánh những điểm khác nhau trong nội dung 2 thư mục:
diff -qr \
--exclude='.git' \
--exclude='node_modules' \
--exclude='__pycache__' \
--exclude='*.pyc' \
--exclude='cache' \
--exclude='logs' \
/mnt/f/xampp85/htdocs/bigfont \
/var/www/html/bigfont \
> ~/bigfont-diff.txt
Sau khi tạo xong tập tin có kết quả so sánh thì mở lên xem những tập tin có thay đổi:
code ~/bigfont-diff.txt
Cuối cùng là chạy lệnh xem những điểm khác nhau lần lượt từng tập tin:
code --diff \
"/mnt/f/xampp85/htdocs/exfont/wp-content/plugins/bigfont/custom/config.php" \
"/var/www/html/exfont/wp-content/plugins/bigfont/custom/config.php"
Lệnh dưới đây sẽ xóa tất cả file Zone.Identifier trong thư mục hiện tại và toàn bộ thư mục con:
find . -type f -name '*:Zone.Identifier' -delete
Nếu muốn sao chép và ghi đè nội dung vào thư mục đích:
cp -r /var/www/html/exfont/whatfonts/. "/mnt/d/Code Updates/whatfonts/"