ArticleDirectory
Bash component architecture
Lessons from the architecture of Bash
Reference
Bash component architecture
Lessons from the architecture of Bash
It's vital to have detailed change logs.
If it's appropriate,
Shell kill and killall
kill-sends a signal to the process (which is used to terminate the process by default). You can only use a PID to specify the Process
killall-same as kill, however, you can use the process name to specify the
1. Description
Strace-trace system CILS and Signals
2. Option
1) strace-p pid tracks a background process
2) strace-O filename outputs the trace result to the file
3) strace-T records the time spent on each system call. You can see which
Bitwise operator.
Bitwise operators are rarely used in shell scripts..Their main purpose seems to be to operate and test from sockets
Read variables. "Bit flipping" is closely related to the compilation language , for example, C/C ++ , in
Abstract: For the current software industry, the purpose of encryption is to seek as long as possible not to be decrypted, during which time the development investment and new product versions are withdrawn. The shell method can be used
Write a shell script to check whether a process is running
1 #! /Bin/ Sh 2 3 Cmd = Pgrep 4 # Process name 5 Pproc = Test 6 # Loop, to keep the script running for monitoring 7 While : 8 Do 9 If [-N " '$ Cmd $ pproc' " ] 10
in command line (that is, start-run-input cmd) mode, if you enter the ADB shell command, two errors are generally reported. One is that" ADB is not an internal command or an external command, it is neither a running Program or a batch file. The
ArticleDirectory
Cat
Chgrp
Chmod
Chown
Copyfromlocal
Copytolocal
Count
CP
Du
DUS
Expunge
Get
Getmerge
Ls
LSR
Mkdir
Movefromlocal
Movetolocal
MV
Put
Rm
RMR
Setrep
Stat
Use shellSYslog log file write information
ApplicationProgramUse S The log file (in the/var/log directory) That yslog sends messages to the Linux system ). S Ysklogd provides two System Tools : One is System Log Record , The other is kernel
Interactive Shell and non-interactive shell
Interactive ModeShell waits for your input and immediately executes the command you submitted. This mode is called interactive because shell interacts with users. This mode is also very familiar to
This isSSH Secure Shell ClientIf the problem persists for many years, both the client and server are required.'Utf-8'Encoding,WindowsThe Chinese version is not encodedUTF-8. Zh_CN.UTF-8 is the Chinese language environment of UTF
$0 indicates the execution name and Script Name of the program.$ N the nth parameter value of this program, n = 1 .. 9$ * All parameters of this program. This option can contain more than 9 parameters.$ # Number of parameters in this program$ PID of
I recently want to see the Shell Content and see a document about shell, which is good. I will sort it out as follows and share it with you. Introduction if you want to be proficient in some system management knowledge, you should be the most basic
Development Environment: Ubuntu 11.10 + gnome classic
The terminal command line window we use in the GUI environment is actually gnome-terminal. You can enter this command to start the command line window. It has some usage
$ Gnome-Terminal
Recently, I am working on a project, because some functions are implemented using ORACLE package, but it is very good to use UNIX scripts, therefore, an executable host request is mounted on the AP to solve this problem.
I think this is a little
This series will focus on the advanced usage skills in Linux Shell. It is mainly intended for experienced Shell developers, Linux system administrators, and Linux enthusiasts. The examples in the blog mainly come from the Internet and some classic
CPU resources are consumed in an endless loop. If the server has multiple CPUs, you can select the number of CPU resources to be consumed:
#! /bin/sh # filename killcpu.shif [ $# != 1 ] ; then echo "USAGE: $0 " exit 1;fifor i in `seq $1`do echo
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