1. Understanding Shell
As long as the interface that can manipulate the application can be called Shell. The shell is also an application that works in user mode and runs as a process. The shell process is primarily used to provide a command-line
2. Compile and test:
A. Open a command line window and switch the directory (CD) to the location where SLUtil.exe is located.
B. Open the Library shell folder next to the Command Line window and you will see the changes you have made using the
Final effect Diagram
A new 10*10 cm in Photoshop, with a resolution of 300dpi and a white canvas with a background color.
Second, create a new layer, use the rectangular marquee tool to pull out the 0.25*10 vertical bar selection, fill color R (2
How to calculate the number of files and directories in the current directory
# ls-l * |grep "^-" |wc-l----to count files
# ls-l * |grep ' ^d ' |wc-l-----to Count dir
How do I just column subdirectories?
Or
For example, after more than one system, application installation, we often need to modify a lot of configuration files, with the VI editor means time-consuming, repetitive work, and SED can release us from the heavy duplication of work.
How SED is
First script file
Copy Code code as follows:
#!/bin/bash
echo "This are my I-A-bash code!"
Exit 0
redirect Symbols and mathematical calculations
Copy Code code as follows:
#!/bin/bash
Echo-n "The time and
This shell script is primarily used for initialization of newly installed Linux server systems, including:
Turn off the IPV6 module
Close SELinux
Let vim display color
Set System language encoding
Optimizing System Services
Kernel parameter
Script content:
Copy Code code as follows:
#!/bin/bash
For IP in ' cat ip.lst '
Todo
./ssh.exp $ip >/dev/null 2&>1
Done
nk= ' awk ' begin{bs=4000000}/access/{if ($1>bs) {Nk=nr-1;print nk}} ' Exp.log '
For NNK in $NK
Todo
Components used to query IP addresses
Copy Code code as follows:
wget http://rfyiamcool.googlecode.com/files/nali-0.1.tar.gz
Tar zxvf nali-0.1.tar.gz
CD nali-0.1
./configure && make && make install
The steps and Nginx are
Parameters:Pathname, the path file name of the temporary file is stored, and the manual free () is required.Dir, the path to the temporary file, if the TMPDIR environment variable is not empty, this parameter is ignored and the environment variable
Why should I include a header file instead of a. c file
Test code:
Copy Code code as follows:
M.C file:
#include "t.c"
int main ()
{
Test ();
return 0;
}
Compile:
Copy Code code as follows:
GCC M.
Copy Code code as follows:
[Root@web-server php]#/etc/init.d/httpd Restart
Shell-init:error Retrieving current Directory:getcwd:cannot access parent directories:no such file or directory
This error indicates that the GETCWD command could
Category: Programs
WshShell objects
ProgID Wscript.Shell
FileName Wshom.ocx
CLSID f935dc22-1cf0-11d0-adb9-00c04fd58a0b
IID f935dc21-1cf0-11d0-adb9-00c04fd58a0b
The following table describes the properties associated with the WshShell
When you write a shell script on a Linux operating system, we use the $ symbol in front of the variable to get the value of the variable, usually in the script using the "$param" in a double quote format, but there are also the use of the ' $param '
Wrote a shell script, can be used to count the daily access log, and sent to the e-mail to facilitate daily understanding of the site.The script counts:1, the total number of visits2. Total Bandwidth3. Independent Visitor Volume4, access to IP
Some arguments are used in the Bash Shell,
$1,$2,... A specific number of parameters, the name of the currently executing process name, the script itself, or the whole row output in a regular expression
$# the command line or the number of
Write a script:
1, create a function, you can accept the Inode or block two parameters, if the user passed other parameters, then return error message 53 to the main program;
If the parameter passed is an inode, the usage of all the file system
We can pass parameters to the script when we execute the Shell script. The format for getting parameters within a script is: $n. (n represents a number, 0 is the name of the shell script executed, 1 is the first argument to execute the script, 2 is
What is a shell, what can you do?1. ProceduresNarrow: Operating system programs and applications.The operating system program is used to invoke the monitoring kernel, which runs all the programs we can apply on this operating system.The operation of
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