RHCE7 Learning miles-4 user rights, simple process management

Source: Internet
Author: User

#创建用户useradd ABC use the VIPW command to view/etc/passwdwhether a new user exists under the file #G却换到最后一行 # When creating an account, a new group is created by default, and the group name is the same as the user name Groupadd ccnavigr #查看组文件 # Add the user to the group gpasswd-A ABC ccna# view users in those groupsgroupsAbc# See who the current user isWhoAmI#切换用户su-abc#-On behalf of the Environment also change # Delete user Userdel Abcgroupdel CCNA View User IDIDroot#root User ID is 1 the maximum #id value the smaller the permissions the greaterchmodModify Permissions-rwxrwxrwx #第一个rwx Owner's permissions #第二个rwx delegate group membership permissions # Third rwx on behalf of other member rights R:4 W:2X:1ChownRoot a.b Modify file ownerchgrpRoot A.B Modify the group to which the file belongs

2. Simple Process Management

  

Ps-ef | grep firewalld

Which FIREWALLD

Kill ID Number

Kill-9 ID Number #强制删除

Ps-ef| More #分页显示, Space page, q exit

VI a.sh on behalf of shell scripts

1 #! /bin/bash2sleep3echo finshed!

CTRL +Z the current terminal process into the background,

Jobs view

Ps-ef | grep a.sh

Pausing a process Kill-stop 8000

Start Pause Process Kill-count 8000

****************************************************

Some network-related commands

IP addr

NETSTAT-TLUNP viewing the status of a network connection

wget download Command

SCP sends a file to a remote server

SCP ABC [Email protected]:/root

Re-enter the password

Hostname View Host name,

Hostname abc.com temporary entry into force

Vi/etc/hostname Permanent entry into force

Vi/ect/host Modify domain name, IP correspondence

nslookup Query the relationship of the corresponding domain name

Restart command reboot Shutdow-r now

Mount Mount/dev/cdrom/abc

Unmount Mount Umount/abc

Df-h Viewing mount conditions

FREE-M Viewing memory information

Top View CPU Usage

Date to view dates

Cal View Calendar

Date month datetime year

Rpm-aq View all installations

Rpm-aq|grep httpd to see if a software is installed

CD-ROM Packages

RPM-IVH Installing the Software

RPM-E Package Uninstall Software

Rpm-q Zip lookup Software

RPM-UVH Upgrade Package

****************************************************

Yum Server

Dependencies can be resolved automatically.

Configure Yum Source ...

cd/etc/yum.repos.d/

Creating a local Yum source

1. mkdir Bak

See if the yum command installs Rpm-qa |yum

[Local_yum] #名称

Name=local_yum

Baseurl=file:///abc

Enabled=1

Gpgcheck=1

Gpgkey=file://abc/rpm-gpg-key-centos-7

Yum Clean all clears cache information

RHCE7 Learning miles-4 user rights, simple process management

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.