System
# uname-a # View kernel/operating system/CPU information
# head-n 1/etc/issue # View operating system version
# cat/proc/cpuinfo # View CPU Information
# hostname # View computer name
# LSPCI-TV # list all PCI devices
# LSUSB-TV # list
Under Windows, there is a useful command: At its mission is to be able to perform a certain task on a regular basis, such as: In a dark night, a month, download a movie, but do not want to keep, but have been guarding and impossible, do not shut
The pipe operator "|"can send the standard output of a command (stdout)to the standard input (stdin) of another command.
Filters (Filter)is the combination of multiple commands to form a pipe.
Main commands:
Sort : sorting;
Uniq, UNIQue, Output
Linux system Centos7 yum command online installation MySQL5.6Tags: centosmysqlyum2015-11-18 17:21 707 people read comments (0) favorite reports Classification:LinuxCopyright NOTICE: This article for Bo Master original article, without Bo Master
/bin binary executable command/dev Device files (HDD/CD-ROM, etc.)/etc system administration and configuration Files/etc/rc.d startup configuration files and scripts/ Home User Master directory, which will have the folder name as the login user name/
Use Create_ap to turn on hotspots, and when off, you cannot connect to WiFi.Using sudo rfkill list all to discover that WiFi is not locked and using sudo service Network-manager start will not solve the problemLater, use Create_ap-h to view the help
(1) Configuring the kernelHow to configure the kernel1. Make config text-based interactive configuration2. Make Menuconfig menu-based configuration in text modeConfiguring the kernel with make MenuconfigIn the configuration <>,[]<> can be used in
CD directory name switch to a directory
CD: Up-level directory
CD/root directory
ll list the files under the folder
Ifconfig Get IP
PWD current Directory
mkdir Directory name creation directory
RM-RF file name or directory name
What does the CPU information in the top command of Linux mean?Cpu (s): 62.1% us, 15.9% sy,0.1% ni, 19.4% id,2.0% wa,0.1% hi,0.4% simem:8247956k total,8232004k used,15952k free,205240k buffersswap:8191992k total,48k used,8191944k free,7156092k
Common parameters and examples of 1,TAR commands:Required Parameters: (3 parameters cannot coexist)-C: Creates a compressed file that represents create.-X: Unzip the file-T: View the files inside the package!Auxiliary parameters:-Z:
FG, BG, Jobs, &, Nohup, CTRL + Z, CTRL + C commandFirst, &At the end of a command, you can put this command in the background to execute, asWatch -n-sh test.sh & #每10s在后台执行一次test. Sh scriptTwo, CTRL + ZYou can place a command that is being
First, command line daily system shortcut keysThe following shortcuts are very useful and can greatly improve your productivity:
CTRL + U-cut the content before the cursor
CTRL + K-cut the cursor to the end of the line
CTRL +
Finally, a few years ago to learn some basic Linux commands, summed up the learned (more practical) thingsI'm using the community version of Red Hat Enterprise Linux7 Centos7First most important file view commands: ls, dir, cdCopy-to-file movement:
If you're using a Linux operating system, you'll want to know how to save and recover data once the hard drive crashes. In fact, there are many Linux data recovery tools that can help us get rid of data security problems. I have prepared some of the
Just one command, parted.Normal hard disk is more than 2T timeYou can't use Fdisk partitioning.This is the time to use tool parted to partition the rows.Hard disk larger than 2T to use GPT format cannot use MBR#parted/DEV/SDC mklable
(1) Command ls--list filesLs-la gives a long list of all the files in the current directory, including a "hidden" file that begins with a periodLS A * lists all files in the current directory that begin with the letter ALs-l *.doc gives all files
Securely and quickly change the MySQL database nameGuideMySQL does not seem to have a statement to change the Database Name (maybe I don't know). If you have the permission to manage the database server, you can directly change the directory name,
[Consolidate shell Basics] shell Basics
Address of this Article
Sharing outline:
1. Functions in shell
2. array in shell
3. Variables in shell
4. Operators in shell
5. Linux commands
1. Functions in shell
1.1) [define a shell function
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