Modify IP Vim/etc/sysconfig/network-scripts/ifcfg-eth0 (centos:ifcfg-ens33) To modify the host name Vim/etc/sysconfig/Network Modify host name and IP mapping relationship vim/etc/hosts view Firewall service iptables status configuration profile, does not restart effective source/etc/Profile User Name Modify https://zhidao.baidu.com/question/257557942.htmlAdd User: Useradd-d/usr/username-m username add password for user:passwdusername new workgroup: groupadd groupname adding users to a workgroup: Usermod-G groupname username Delete User: Userdel username Change directory ownerChown-R User Directory change Directory owner groupChown-R user Group. User name directory change user name passwordpasswdUser name enter new password Confirm New Password View the group name file under Linux contains all groups/etc/Group/etc/shadow and/etc/passwd system exists all user name copy yy paste P display line numberVI~/. VIMRC #追加内容 Set number #保存后执行 source~/. VIMRC jump to the specified line: Number of rows full-text search:?Search Content Check IP: reference: https://www.amitnepal.com/bash-script-to-check-for-valid-ip/
Linux Common commands