]# rpm -ev MySQL-server-5.6.23-1.linux_glibc2.5You have new mail in /var/spool/mail/root[root@DB-Server init.d]# rpm -ev MySQL-client-5.6.23-1.linux_glibc2.5[root@DB-Server init.d]#
5. Delete the folder corresponding to MySQL.
Check whether the MySQL folders are cleaned and deleted.
[root@DB-Server init.d]# whereis mysqlmysql:[root@DB-Server init.d]# find / -name mysql/var/lib/mysql/var/lib/mysql/mysql/usr/lib64/mysql[root@DB-Server init.d]# rm -rf /var/lib/mysql[root@DB-Server init.d]# rm -rf
Your envelope sender is enlisted as spammer
A: an error occurs when the sender's email address is determined by the recipient's email server as A spam email address. Ask the recipient's administrator to delete the spam list.
Q: 500 Syntax error, command unrecognized
A: errors caused by some missed or incorrect commands in SMTP commands.
Q: 500 File Sending Error
A: The transfer fails due to network barriers and other reasons.
Q: 501 Denied d
modified in the last two days under/home
Find/home-atime-1. Check the files that have been accessed within one day.
Find/home-mmin + 60 check files modified 60 minutes ago under/home
Find/home-Amin + 30 check files that have been accessed in the last 30 minutes
Find/home-newer tmp.txt check for files or directories that are earlier than tmp.txt in/home.
Find/home-anewer tmp.txt check the files or directories with a time closer to tmp.txt under/home.
Find/home-used-2 list the files or directorie
-user CNSCN lists files or directories in the/home directory that belong to the user CnscnFind/home-uid +501 lists files or directories with a user's ID greater than 501 in the/home directoryFind/home-group CNSCN list files or directories in/home with group CNSCNFind/home-gid 501 lists files or directories with a group ID of
User Information file/etc/passwdUse the command grep as shown below to view user vampire information1 grep vampire/etc/passwd2 vampire:x:501:501::/home/vampire:/bin/bashInformation descriptionFirst field: User name (Vampire)Second field: Password bit (x), just a placeholder, the real password is stored in the/etc/shadow fileThird field: UID (501) User id,0 for Su
directories find/home-used-2//list files or directories that have been changed since the file or directory was accessed within 2nd find/home-user CNSCN//lists the files or directories in the/home directory that belong to the user Cnscn Find/home-uid +501//Lists the users in the/home directory A file or directory with a size greater than 501 find/home-group CNSCN//lists the files or directories in the/home
directories that have been accessed within 2nd after the file or directory has been alteredFind/home-user CNSCN lists files or directories in the/home directory that belong to the user CnscnFind/home-uid +501 lists files or directories with a user's ID greater than 501 in the/home directoryFind/home-group CNSCN list files or directories in/home with group CNSCNFind/home-gid
than tmp.txt files or directoriesfind/home-anewer tmp.txt A file or directory that is accessed more than tmp.txt near/ homefind/home-used-2 lists files or directories that have been accessed within 2nd after the file or directory has been alteredfind/home-user CNSCN lists files or directories in the/home directory that belong to the user Cnscnfind/home-uid +501 lists files or directories with a user's ID greater than
The conditional operator of awkShows the first line with root[[email protected] ~]# awk-f ': ' $1== ' root ' 1.txtRoot:x:0:0:root:/root:/bin/bashShow first line with root print first paragraph[[email protected] ~]# awk-f ': ' $1== ' root ' {print '} ' 1.txtRootThe first paragraph equals root or the seventh paragraph equals nologin.[[email protected] ~]# awk-f ': ' $1== ' root | | $7~/nologin/' 1.txtRoot:x:0:0:root:/root:/bin/bashBin:x:1:1:bin:/bin:/sbin/nologinDaemon:x:2:2:daemon:/sbin:/sbin/nol
System environment:
CentOS 6.6 x86_64
Service-Side ip:192.168.2.45
This article builds a remote service for the SSH protocol of Git. With the creation of a normal user, through the SSH protocol authorized access to the operation of the idea is exactly the same, but the server and the client in the operation of the project with Git only, the service is very simple to build. Of course more and more detailed configuration is to look at the git manual. Install Git# yum Install gi
lists files or directories that have been accessed within 2nd after the file or directory has been alteredFind/home-user CNSCN lists files or directories in the/home directory that belong to the user CnscnFind/home-uid +501 lists files or directories with a user's ID greater than 501 in the/home directoryFind/home-group CNSCN list files or directories in/home with group CNSCNFind/home-gid
text is saved in the comment field of the passwd -n the group instance with the name of the user is canceled: [[Emailprotected]~]#useradduser1[[emailprotected]~]#tail-1 /etc/passwduser1:x:503:503::/home/user1:/bin/bash Normal User user1[[emailprotected]~]# useradd-s/sbin/nologin-d/123-u666-g501-g503- ctestuser2user2[[emailprotected]~]#iduser2uid=666 (user2) gid=501 (Jacken) groups=501 (Jacken), 503 (Us
tmp.txt in/home check update time than tmp.txt files or directoriesfind/home-anewer tmp.txt A file or directory that is accessed more than tmp.txt near/ homefind/home-used-2 lists files or directories that have been accessed within 2nd after the file or directory has been alteredfind/home-user CNSCN lists files or directories in the/home directory that belong to the user Cnscnfind/home-uid +501 lists files or directories with a user's ID greater than
-e '/111/' p-n test.txt rot:x:0:0:rot:/rot:/bin/bash11111111111111111111111111111111Can write multiple with-E, and-e equivalent to the belt, first match the front of the printing, and then match the subsequent printing, so the first line printing 2 times;[[email protected] ~]# sed-e '/root/p '-e '/bash/p '-n 1.txtroot:x:0:0:root:/root:/bin/bashroot:x:0:0:root:/root:/bin/ bashoperator:x:11:0:operator:/root:/sbin/nologinuser1:x:500:500::/home/user1:/bin/bashuser2:x:
with the name Tom.txt and file system type not VFATFind/tmp-name wa*-type L Find a file with a type of symbolic link at/tmp that begins with the name WAFind/home-mtime-2 in/home search for files that have changed in the last two daysfind/home-atime-1 checked files accessed within 1 daysFind/home-mmin +60 The files that were changed 60 minutes ago at/homeFind/home-amin +30 Check the files that were accessed last 30 minutes agoFind/home-newer Tmp.txt in/home check update time than tmp.txt files o
May find/mnt-name Tom.txt-ftype vfat look for files with the name/mnt and file system type Tom.txt under VFAT find/mnt -name T.txt! -ftype VFAT under/mnt Look for files with the name Tom.txt and file system type not VFAT find/tmp-name wa* l look for files with a type of symbolic link at/tmp that begins with the name WA Ind/home-mtime-2 in/home under the last two days to changeFiles that were moved find/home-atime-1 checked for files accessed within 1 days find/home-mmin +60 was changed at/home
fileAbsolute pathFile in the real location of the system, the file name begins with "/"Relative pathThe file relative to the current location of the name of a shorthand, the name does not start with/, and the name will automatically add the value of the PWD displayIII. Management of documents1.touch creating files or modifying file timestampsTouch File Creation File650) this.width=650; "Width=" 501 "height=" 281 "title=" 221 01.png "style=" width:586
respectively, and the additional group is the tech group, creating another user lily[Email protected] ~]# useradd-u 501-g nsd-g Tech Jim[[email protected] ~]# ID Jimuid=501 (Jim) gid=501 (NSD) Group =501 (NSD), (Tech)[Email protected] ~]# useradd-u 502-g jsd-g Tech Tom[[email protected] ~]# ID Tomuid=502 (Tom) gid=502
password inactive after expiration to inactive-G,--gid Group Force use Group as new primary group-G,--groups groups new list of supplementary groups-A,--append append the user to the supplemental GROUPSmentioned by the-g option without removingHim/Her from other groups-H,--help display this help message and exit-L,--login new_login NEW value of the login name-L,--lock lock the user account-M,--move-home move contents of the home directory to theNew location (with only with-d)-O,--non-unique all
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.