General Operation Commands:
# NETSTAT-ATUNPL |egrep "Mysql|nginx"
# Vimdiff php.ini*
# RunLevel
# rpm-e httpd--nodeps
# NTSYSV Graphical Network Settings page
# OpenSSL passwd-1-salt ' OpenSSL rand-hex 4 '
# Createrepo redhat/
Add Fstab Mount:/192.168.1.250:/file/abc NFS Defaults,_netdev 0 0
# Fuser-kv/rhome forced to kill
# cat/etc/sysctl.conf ==>net.ipv4.ip_forward=1 turn on routing forwarding
# Stty-echo hidden input characters stty echo recovery
# yum provides */sbin/powertop # YUM provides */bin/powertop
# PS Aux|grep Mysql|xargs kill-9
# setfacl-m-R u:tom:rw dir cannot execute # setfacl-r-M U:TOM:RW dir
can perform
*************************************************************************************************************** ****************************************
Skill Operation Command:
1. Delete all of the directories, leaving only the specified files:
# Find/xx-type F! -name "File10" |xargs rm-f
2. View server information:
# Dmidecode |grep "Product Name"
# grep Name/proc/cpuinfo
# grep Mentotal/proc/meminfo
# Uname-r
# env
# More/etc/redhat-release
Disk-related information:
# DF-LH
# DU-LH
# free-m
# fdisk-l |grep Dev
3. Modification time
The date command sets the dates to June 18, 2014
# date-s 06/18/14
Set the time to 14 points, 20 minutes, 50 seconds
# date-s 14:20:50
Set the time to June 18, 2014 14:16 30 seconds (MMDDHHMMYYYY.SS)
# date 0618141614.30
4.centos7 forgot root password
Grub interface---"Vmlinuz init=/bin/sh---" by e---"Ctrl+x---"
#mount-O remount,rw/---"Remove password---" exec/sbin/init
Note : When the 7.3 version enters emergency mode, SELinux must be turned off, otherwise it cannot be restarted.
*************************************************************************************************************** *******************************************
Note:
1. The kernel parameters modified by the sysctl.conf file will not take effect immediately and will be activated with Sysctl-p
Linux System Command Induction