The first shell script is written#!/bin/bash# #! in the top is a contract tag that tells the system what interpreter the script needs to execute;#定义变量:App_base_path= "/opt/app"#特殊变量:The 1th argument passed to a script or function.Node_name= "$"Op= "$
VimUndo Last Action USet TabStop = 4 sets the TAB key to two spacesSet Noswapfile does not generate swap filesSet FF can see the word DOS or UNIXPS--no-headers Print no header line @ AllWord boundariesescaped angle brackets \ to match the boundaries
There are several ways to configure environment variables under Linux, as outlined belowMode 1. Edit the/etc/profile file to add the following:Java_home=/usr/local/jdk1. 8 export Java_homepath= $PATH: $JAVA _home/binexport PATHMode 2: Edit
Command-line Basics some nouns
"Graphical Interface"
"Command Line"
Terminal
"shell"
"bash"
Installation use
Windws: Install git, open Gitbash
Linux Open Terminal
MAC Open Terminal
Basic command
Summary: First analysis of the offal: struct s3c_gpio_chip,s5pv210_gpio_4bit5.4.10.1, struct s3c_gpio_chipThe essence of the initialization of the Gpiolib library is to assign values to this struct array(1) This struct is an abstraction of a gpio
Download Boost sourceBoostUnzip to a directorytar -zxvf boost_1_66_0.tar.gzCompiling the Boost libraryEnter the BOOST_1_66_0 directorycd boost_1_66_0./bootstrap.sh --with-libraries=all --with-toolset=gcc--with-liraries: Libraries that need to be
First, the physical structure of the diskExamples of important concepts are as follows1. Track: When the disk rotates, if the head remains in one position, each head will draw a circular trajectory on the disk surface, these circular tracks are
Ps-ef|grep php|grep-v grep|cut-c 9-15|xargs kill-9Pipe symbol "|" Used to separate two commands, the output from the left command of the pipe character is entered as the command to the right of the pipe. Let's talk about the connection with the pipe
1. Lsof-i: Port number2. Netstat-tunlp|grep Port numbercan see which process is consuming the specified portTools/Materials
Linux,windows
Xshell
Method/Step
"Step One" lsof-iThe lsof-i is used to display conditions that
Brief introductionScreen is a free software developed by the GNU Program for command-line terminal switching. The software allows the user to connect multiple local or remote command lines simultaneously and freely switch between them. GNU screen
First, system security
1. User Management(1) Delete users who are not in use for a long timeuserdel [-r] 用户名Options-r:删除指定用户家目录(2) Set Program user Shell to not allow login systemusermod -s /sbin/nologin 用户(3) Temporary use of the user (set
Force exit VimSave exit(SHIFT + Z) Press two timesFirst, make a colon (:) Make another letter (x)Do not save exitFirst colon (:) letter (q) exclamation point (! )Read and write to a filePress ESC to jump to command mode, and then: W Save the file
OK, we all know that Linux crontab can be set to perform tasks on a timed basis.* * * * *But the minimum is to perform a task every minute, before the interview Mo Mo also was asked once every second how to write, vaguely remember the answer is */1,
The Bash shell provides a number of different ways to get data from users, including the following 3 methods:
Command line arguments (data added in the back of fame)
command-line Options (single letter with modifiable command behavior) main
Testimonials: Ever a knave, accidentally put/usr/bin under all the commands are deleted, fortunately this only a test environment, when in operation, a bit deft on hand make mistakes ...Recovery process: (Below is a VM managed under vsphere)1. Turn
[Email protected]:~/nmondata# xyz= "This is Atest"[Email protected]:~/nmondata#./test.shThis is done test.sh in the child shell, so variables defined in the parent shell cannot be executed in the child shell, that is, the variable Zyz defined in the
Types of Linux Nic aggregation:1.broadcast: Transfer each packet from all ports2.roundrobin: Transfer packets from each port on a carousel basis3.activebackup: Failover runner, monitoring changes and selecting active ports for data
Today in self-study redis, there is a problem, because the landlord Linux is also a blank paper, the first few days after the installation of Linux will only basic command, the other is not through Ah, so when redis to be used in Linux when the
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