All along, we used simple expressions to check whether the conditions were matched. What if you want to use more than one expression to check for a particular condition?
In this article, we'll look at how you can filter text and strings by
1. View Ubuntu operating system digits:
See if the system is 32-bit or 64-bit#查看long的位数, return 32 or 64:getconf Long_bit
#查看文件信息, contains 32-bit is 32 bits, contains 64-bit is 64 bits: File/sbin/init
2.ubuntu move the window off, maximize, etc.
Installation:
ArchLinux:
$ sudo pacman-s python2-pygments
or through PIP installation:
$ pip Install pygments--user
I'm using an Ubuntu installation, and the command is:
sudo apt-get install python-pygments
Configuration:
Open Pygments in
Linux/unix under SVN Automatic Update error Resolution:
Post-commit Hook failed (exit code 255) with no output.
Linux/unix under the implementation of SVN submission automatically updated to the test server, add hook can be/usr/svn/mulu/hooks/post-
Recently because of the need to start playing SuSE, because the previous used CentOS, SuSE on the use of IPTABLES-NL can view the configuration of the firewall, do not find the configuration file. And under the/ETC/INIT.D service name under SuSE
Tomcat has nginx or other software to do load balancing, Tomcat needs to record the real client address, need to define the following in host or context:
The code is as follows
Copy Code
Prefix= "Localhost_access_log."
system function int creat (const char* filename,mode_t mode)FileName: file name to be created (contains path, default to current path)Mode: Create patternCommon creation modes are:
Conveyor belt: linux-centos6.5 Server Setup and initialization configuration details (top)Continue with the above installation, after the installation will appear below the interface click Reboot RestartAfter rebooting, you can see the following TTY
The first way: Ln-s establish a soft connection to startThere are 7 operating levels in Linux (available in the/etc/inittab file settings), each running level corresponding to/ETC/RC.D/RC[0~6].D 7 directoriesTIPS:/ETC/RC[0~6].D is actually
1. View the absolute path of the command[[email protected] ~]# which LSAlias ls= ' ls--color=auto '/bin/ls2, a color, a no, is to use the alias to operate650) this.width=650; "src=" http://note.youdao.com/yws/res/380/WEBRESOURCEace6397ccad98f0e83d237
Linux kernel Management: A basic understanding of the kernelThe operating system we are talking about is primarily the kernelThe above features do not involve the implementation of text editing, implementation of word processing, there is no service
Linux server needs to be optimized after installationCat >>/server/scripts/youhua.sh#!/bin/bash#selinux offSed-i ' s/selinux=enforcing/selinux=disabled/'/etc/selinux/configSetenforce 0#iptables off/etc/init.d/iptables stopChkconfig iptables off#add
Just started to learn to use Linux, the VI command is not very familiar with the online transfer of an article.The VI Editor is the standard editor for all UNIX and Linux systems, and its power is not inferior to any of the latest text editors, here
Introduction to Linux
In 1969, Bell Laboratory's Ken Thompson developed UNIX systems on DEC PDP-7 machines.In 1971, Ken Thompson's colleague Dennis Ritchie invented the C language. In 1973, the vast majority of UNIX systemsThe source code is
Popen, passthru, proc_open, and shell_exec return the following results: [Root @ krlcgcms01 shell] # php test. php 1001.log 10.log 10.tar.gz aaa.tar.gz mytest test1101 test1102 weblog_2010_09 I can find these functions and execute commands in linux.
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