Linux Common commands

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.