This chapter provides introductions and tutorial on Linux administrative task. Topics include shutting down and restarting system, moving /home to new partition, moving all users to a new system.
"systemctl status/start/stop/enable/disable" Commands
"shutdown" and "halt|poweroff|reboot" Commands
Move /home Directory to New Partition
Move All Users to a New System
- Use "systemctl" command to interact with "systemd", the system and service manager.
- Use "shutdown" command to shutdown or reboot Linux systems.
- Use "cp -aR" command to copy directories with all properties preserved.
Better than "rsync -av", which does not preserve SELinux security properties.
- For a GPT partition, you need to use its UUID in the /etc/fstab to mount it.
- User information stored in /etc/passwd, /etc/shadow, /etc/group and
/etc/gshadow can be moved from one system to another, as long as there is
no user id and group id collision.
Table of Contents
About This Book
Introduction to Linux Systems
Cockpit - Web Portal for Administrator
Files and Directories
Users and Groups
Block Devices and Partitions
LVM (Logical Volume Manager)
SELinux - Security-Enhanced Linux
Network Connection on CentOS
Internet Networking Tools
Software Package Manager on CentOS - DNF and YUM
vsftpd - Very Secure FTP Daemon
Postfix - Mail Transport Agent (MTA)
Dovecot - IMAP and POP3 Server
Email Client Tools - Mail User Agents (MUA)
LDAP (Lightweight Directory Access Protocol)
Full Version in PDF/EPUB