Quickly jump to a specific directory in the shellOn the computer to put the project code unified into a directory "~/code", often need to jump from other directories to the code directory, always enter the directory is more trouble, and then think
[This is my own study notes, welcome reprint, but please specify the source:http://blog.csdn.net/jesson20121020]
Shell Script basic elements:#!/bin/bash ---First line # ---comment variable flow control structureLook at a simple example,
Update the local code to the server shell scriptThe first problem with Ubuntu as a development machine OS is to put the updated code on the test server to runWww.ahlinux.comBefore using Windows with WINSCP Update code to the server upThere are no
One, variableVariables in the shell are divided into: local variables, environment variables, positional parameters;Local variables: Variables that can only be used in scripts for the user's current shell lifetime, local variables are invalidated as
I. BACKGROUNDToday, suddenly found that the latest news thumbnails on the mobile client are not displayed, on the server looked at,Discover that new news images do not generate thumbnails at all.This set of news release system is very old program,
Stream Editor Simple usage of SED sed[options] sed cmds files Option –e Connect multiple Edit commands -f Specifies the SED script file name -N prevents input lines from being entered automatically Sed ' 4, $d ' test.in the first 4 lines of the
Like other languages, the Shell can also contain external scripts that merge the contents of the external script into the current script.The Shell contains scripts that can be used:
. FileName
Or
SOURCE filename
The
The following are personal understandings and are for informational purposes only.First, IntroductionHBase is a column-oriented distributed database developed on HDFS that is suitable for random read/write ultra-large data sets (often difficult to
Wildcard characters:The so-called wildcard, refers to the time a file name style, can be used to compare the file name to find the matching files.*: Represents an arbitrary string, which can be an empty string? : Represents a character, but cannot
SortSort operations, which are sorted according to a set of rules for one or more rows in a file. Output to standard output and is not saved to any file.-t specifies the filed delimiter. By default, spaces are specified, and multiple spaces
Recent work has been compiled shell script to the customer use, will inevitably encounter some sensitive information do not want to let customers know, so the SHC script encryption method compiled binary file submitted to the customer use, found
Article background:Wrote an article on how to build a personal website on your personal computer.Create a Web site that is entirely up to you (i)But a personal website is built on the PC, and the external computer is not directly accessible to our
Sch encrypts shell scripts 02
Sch encrypts shell scripts 02
I. Introduction
SHC (shell script compiler) is the shell script compiler. Scripts compiled through SHC are not readable for common users. Therefore, if you want your code to implement
Introduction to the ssh "Secure Shell" Protocol
Traditional network service programs, such as ftp, pop, and telnet, are inherently insecure because they transmit passwords and data in plain text on the network, people with ulterior motives can
Sch encrypts shell scripts 02, schshell
Sch encrypts shell scripts 02
I. Introduction
SHC (shell script compiler) is the shell script compiler. Scripts compiled through SHC are not readable for common users. Therefore, if you want your code to
Gzexe encrypts shell scripts 01, gzexeshell
Gzexe encrypts shell scripts 01
I. Introduction
Most of the time, our script involves some private information, such as the user name, password, or other important information. We use some encryption
Frequently used shell commands (updated in succession) and shell commands
It's just something that I often use, not comprehensive.
1. Obtain the returned values before the MPs queue.
Echo $ {PIPESTATUS [0]}
E.g.
root@node2:~# date1 | echo 22No
Common shell commands (updated in succession)
1. Obtain the returned values before the MPs queue.
Echo $ {PIPESTATUS [0]}
E.g.
root@node2:~# date1 | echo 22No command 'date1' found, did you mean: Command 'date' from package 'coreutils' (main)date1:
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.