The following command lets you see which CPU the process is running on.
vostro-270s:$ Ps-elo RUSER,PID,PPID,PSR
Root 3 2 0
Root 5 2 0
Root 8 2 0
Root 10 2 0
Root 11 2 0
Root 12 2 0
To explain the above command, the PS command displays the status
The difference between a single middle bracket and a double bracket in a shell
1.["[" is an executable program, the path is "/usr/bin/["He is equivalent to the executable program "test".
Example:If [3-eq 2]; Thenecho "= =";Elseecho "!=";Fi
In operation, you will encounter network bandwidth problems that need to limit the use of your shell applications (such as wget, Crul, FTP, SFTP, etc.) to connect to the Internet. How to set the network bandwidth without using complex firewall rules?
Shell Programming I. Introduction to the ProgramProgram程序:算法+数据结构数据结构:数据在计算机中的类型和组织方式算法:处理数据的方式面向过程:以指令为中心,数据服务于指令面向对象:以数据为中心,指令服务于数据计算机:二进制执行Advanced Programming Languages:编译:高级语言->编译器->机器代码->执行解释:高级语言->执行->解释器->机器代码 shellThree major
Https://www.cnblogs.com/37yan/p/6962563.htmlCAUTION!!! If should is end with fiCAUTION!!! There should be a space between [and!, also between 1 and]1 ];then#!/bin/bash# Determine if the number of parameters passed in is not an if1 ];then echo
A shell script is a function that uses the Shell's command interpretation to parse a plain-text file and then perform these functions, or it can be said that a shell script is a collection of commands.The shell can be used directly above the
1, Special shell variable$# the number of arguments passed to the script$* displays all parameters passed to the script in a single string$$ the current process ID number for the script to run$! the ID number of the last process running in the
ObjectiveWe have successfully installed the Linux system--centos7, and now follow the super brother to the gate of Linux.So!Start a picture, equip all by dozen ...What the hell is this black one?Using Linux every day, is to open the virtual machine,
1. Preface
This is a series of learning documents. Based on the spirit of Internet sharing, it mainly comes from the shell area on the Forum. It has been organized and is the content of a book. Therefore, copyright belongs to the original author
Differences between return and exit in Linux Programming
Exit is used to end the execution of a program, while return is only used to return from a function.
Return
Return indicates that the function is returned from the called function to the main
In Bash, you can use the following three methods to process command lines:ParametersEach method has its own application scenario.1. perform direct processing, parse $1, $2,..., $ N in sequence, and perform manual processing respectively;2. getopts
The SET command can be used to set various shell options or to list shell variables. A single option can be used to set common features.After some options, the-O parameter opens special features. After some options, using the + O parameter will
Shell basics 2: Search Skills, use of find and xargs
Execute shell commands using exec or OK When using find, you only need to write the desired operation in a file, you can use exec to search with find, which
1. Conditional Variable replacement:BASH Shell can replace the conditions of a variable. It can be replaced only when a condition occurs.Put the condition in.(1) $ {value:-word}If the variable is undefined or the value is null, the return value is
Some questions on SuSE may need another reference: http://blog.chinaunix.net/u2/64804/showart.php? Id = 2026903
Related versions: Red Hat Enterprise Linux
Symptom:
If you set the value in the file/etc/security/limits. conf. However, if you log
Http://fox.he100.com/showart.asp? Art_id = 122 & cat_id = 1
Prevent web shell attacks)
Prevent web shell attacks)
The virtual host Administrator has been working for one year, and has some knowledge about the prevention of Web shell in NT. Now we
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