Basic Linux Operations

Source: Internet
Author: User

Configure permanent hostname/etc/hostname permanently modifies IP address, subnet mask, gateway address NIC profile/etc/sysconfig/network-scripts/ifcfg-eth0 display current network interface (NIC) Information nmcli Connection show uses commands to configure NMCLI connection modify ' System eth0 ' ipv4.method manual ipv4.addresses ' 172.25.0.200/24 172.25.0.2 "Connection.autoconnect yes" activates the NIC configuration mcli connection up ' System eth0 ' permanently modifies DNS server address/etc/resolv.conf nslookup server0.exam Ple.com #测试解析 View gateway address route-n The role of managing user and group user accounts: Login operating system, access control (different users have different permissions) group account: Convenient for user management Unique identification: UID GID Administrator's uid:0 ordinary user uid:rhel7 from 1000 Start Group classification: Additional group (subordinate group, public Group) basic Group (private group) user basic information stored in/etc/passwd file user password information stored in/etc/shadow file root:x: 0:0: Root:/root:/bi N/bash User name: Password placeholder: uid:gid: User's description: Home directory: Interpreter program add user? Use useradd command format: useradd [options] ... User name? Common Command Options-u: User id-d: Home directory path-S: Login shell-g: Basic Group-G: Additional group/sbin/nologin: block User Login System example: USERADD-G study nsd10 #指定基本组 Useradd-g St Udy nsd11 #指定附加组? Use the Usermod command to modify the format: usermod [options] ... User name? Common Command Options-u: User id-d: Home directory path-S: Login shell-g: Basic Group-G: Additional group delete users? Using the Userdel command format: Userdel [-r] User name add group basic information stored in/etc/group file stugrp:x:1605: Group name: Password placeholder for group: GID: Group member list? Use the groupadd command format: Groupadd [-G Group ID] group name? Use GPASSWD command format: GPASSWD-A user name Group name add Group user format: gpasswd-d user name Group name Delete group user

Basic Linux Operations

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.