1, first LDD is not an executable program, but just a shell script2, LDD can display the dependency of the executable module, the principle is by setting a series of environment variablesAs follows: Ld_trace_loaded_objects, Ld_warn, Ld_bind_now,
At present, more and more enterprise applications are deployed on Linux systems, and Linux Shell scripts can greatly help us to perform operational tasks for these applications. This makes the Linux Shell development skills an important and
When using bash to start a program, you can use the program to add &, the implementation of the program in the background to run; Example: Emacs & But if you forget to enter &; but you do not want to stop the program after restarting; You can do
Article from my personal blog: (Linux shell) Chapter II-The Joy of command (a)In the previous chapter we described some of the syntax that we need to be aware of in the Linux shell, and then we begin to understand the common commands of the Linux
What is a function? Why do we use a function?I. Related knowledge of functionsThe function is to package the code with a specific function and provide an interface for use. The advantage of this is that code reuse can be achieved on one hand, for
Serial number
Task
Command combination
1
Delete a 0-byte file
Find. -type f-size 0-exec rm-rf {} \;Find. Type F-size 0-delete
2
View processes, sorted by memory from large to small
PS-E-O "%c:
Learn shell exercises
Check whether the/tmp/lzz directory has the read/write permission. If not, add the permission.
#!/bin/bash#name: testdir.sh#authro: orangleliu#date: 2014-08-03#version: v1.0#===================TestDir="/tmp/lzz"#==============
The host may be down, or there may be a problem with the network connection.
Sometimes such problems can also be caused by a misconfigured firewall.
The following problems may occur:
1. SSH is not installed when centos is installed.
2.
Distributed File System (HDFS) -- shell-based Distributed File System [Distributed File System] Overview
As the data volume increases, it cannot be stored within the jurisdiction of an operating system, so it is allocated to more disks managed by
In shell, the simplest debugging assistant outputs the echo statement. Many echo statements can be put into the code for debugging, but it takes enough time to locate
The information to view. You may need to output a lot to find the information you
[email protected]:~$ cat b.sh#!/bin/bashdir=`pwd`dir=$dir‘/‘for f in `ls *.png`do echo $dir$fdone
Check the execution of each line of code:
[email protected]:~$ bash -x b.sh++ pwd+ dir=/home/wade+ dir=/home/wade/++ ls chrome_1407299385726.png
Tag: Please user null
Syntax format
Function Name (){
Function body
}
Function Name
--------------------------
Function body can contain command loop judgment
Example: Determine whether a user exists. The output user ID and shell exist.
#!
General Operation
View Server Status
status
View hbase version
version
DDL operations
Create a table
create ‘member‘,‘member_id‘,‘address‘,‘info‘
Three columns are created: member_id, address, and info.
Knowledge Point Review:Cf is a part of the
[Copyright statement: reprinted. Please retain the Source: blog.csdn.net/gentleliu. Mail: shallnew at 163 dot com]
In this section, let's take a look at a w k's many powerful string functions and their usage methods.1. sub and gsub functions:
Usage:
The raw data is in the final baiang.txt file.
Shell command:
Cat ‑qiang.txt | grep-P "^ country | ^ ☆" | awk-F" "'{print substr ($2, 1, 2 );} '| sort | uniq-c | sort-NR
The result is as follows:
27 Jiangsu22. Shandong Province18 Zhejiang10 Liaoning7
I recently wrote a shell script, which has high efficiency requirements, so I read some articles. I feel that this article is really good. The example in this article is really great! Institute
Use me to extract them:
@ 1: instance:
Requirement:
[Shell] input parameters
Obtain the input parameters of the shell script and the obtained parameters.
#! /Bin/bash # title: testPT. sh # atuhor: orangleliu # date: 2014-08-08 # desc: enter two parameters and the second digit. Print them if they are
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.