Linux System Command Induction

Source: Internet
Author: User
Tags openssl

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

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.