Sed is a good file processing tool, itself is a pipe command, mainly in the behavior of the unit processing, you can replace the data rows, delete, add, select and other specific work, the following first understand the use of SEDThe SED command
Linux is now used more and more widely, and his security and stability has been praised by the vast number of computer enthusiasts. Now I'm going to install Redhat 9 as an example. Tools/Materials
Linux installation disk
Steps/Methods
Vi/etc/sysconfig/iptablesIn the open file (on the next line of configuration 22 port), add-A input-m State--state new-m tcp-p TCP--dport 3306-j ACCEPT (Allow 3306 ports through the firewall)-a input-m state--state new-m tcp-p TCP--dport 3306-j
Path: The lookup path to the executable programTo view the current environment variables:Echo $PATHSet up:Method One: Export path=path:/xxx but fails after exiting the current terminalMethod Two: Modify the ~/.BASHRC or ~/.bash_profile or system
Linux How to view and modify PATH environment variablesSee Path:echo $PATHTo add a MongoDB server as a columnModify method One:Export Path=/usr/local/mongodb/bin: $PATHOnce configured, you can view the configuration results through the echo
1. List all files and folders in the current directory and sub-directory2. Find the file name ending with ". txt" in the/home directory3. Find all files ending with ". txt" in the current directory4 deep search based on directory (max depth limit
This article is about how to secure a backup, here is how the master server pushes the data for backup.One, backup server configuration rsync file vi/etc/rsyncd.conf#工作中指定用户 (can not be specified as 0) uid = 0gid = 0# is equivalent to a black hole.
There is an application firstgrep and SED mates replace strings in a fileCommand:Sed-i s/yyyy/xxxx/g ' grep yyyy-rl--include= "*.txt"./'function: Replace the YYYY string in all txt files in the current directory (including subdirectories) with the
Before creating the FTP server, the command: Ps-ef |grep vsftpdCheck the system has not installed VSFTPD this server, if it appears as shown in the interface instructions are not installed.
Then execute: Yum install vsftpd-yPerform an online
The following are practice actions under UbuntuChange DNSEdit the file-"/etc/resolv.conf", open "Terminal Application"-"Accessories"-"terminal", enter the following command in the terminal: sudo nano/etc/resolv.conf Some files automatically change
1. Partitioning,View disk usage: fdisk-lPartition to disk: Fdisk/dev/sdb2. Create PVPVCREATE/DEV/SDB1View PV:Pvdisplay3. View VGVgdisplay---Volume Group---VG Name VolGroup004. Expansion of VGvgextend volgroup00/dev/sdb1Volume Group "VolGroup00"
Linux-based disk ManagementAbout Disk Management in Linux we should start with the following four aspects to understand and learn the knowledge of Disk Management . Structure of the 1th disk--hard diskParameters of the hard diskstructure: Disk disc,
write-host -nonewline -foregroundcolor magenta ' Enter the name of the virtual machine you want to create (for example: vlnx******) ' [String] $VM _name = Read-HostWrite-Host -NoNewline -ForegroundColor Magenta ' Please enter which host you need
Search engine Elasticsearch 5.2.2 in the WIN8 installation process is as followsDownload elasticsearch5.2.2 HTTP://PAN.BAIDU.COM/S/1I5BS5NVExtractOpen and configure the Elasticsearch/config/elasticsearch.yml filecluster.name:es-clusternode.name:node-
After configuring the virtual host in the Linux systemVim/usr/local/apache2/conf/httpd.conf/vhosts #搜索Will# include conf/extra/httpd-vhosts.confThe previous comment symbol is removed and takes
Basic Linux-metacharacters and basic linux characters
The special characters in Bash have special meanings on the keyboard:The metacharacters are interpreted by shell.
1. ''. Obtain the command execution result.
[Root @ MiWiFi-R3-srv ~] # Ls4. txt
Common Linux commands
System Basics
Use the environment variable of the root user to switch to the root usersu -
Show current working pathpwd
Display the default language and keyboard layout of the current systemlocalectl
Display All languages
Linux cloud automated O & M course 2: linux cloud Automation
I. Linux System Structure
1. Linux is an inverted tree structure. Everything in Linux is a file. These files are in the system's top-level directory "/", "/" is the root directory. The
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