1, the actual is not to do code backup, but to upload the attachment backup, after all, the code on my side is mainly through the SVN control, do not need to backup, but in order to lazy, or the entire folder directly packaged.Name= "Your code file
Basic operation of VIA) Enter VI after the system hint sign VI and file name, go to the VI Full screen editing screen: $ VI fileHowever, it is important to note that after you enter VI, you are in command mode and you want to switch to insert mode
01. Field Extraction Command Cut + = cut [option] file name-F Column Number: Extract the first few columns-D delimiter: Splitting columns by the specified separatorFor example: Cut-f 2,4 (column number;, comma can extract multiple rows)
1. Write Script/root/bin/sumid.sh, calculate the sum of the ID of the 10th user and the 20th user in the/etc/passwd fileSolution: vim/root/bin/sumid.sh#!/bin/bashTenuser= ' cat/etc/passwd | Head-n10 | Tail-n1 |cut-d:-f3 'Twentyuser= ' cat/etc/passwd
First, function definition and invocationA function is a series of commands that are customized in a shell script, and generally the function should have a return value (returning 0 correctly and returning a non-0 error). For error returns, you can
Shell: The command interpreter executes the corresponding command according to the command entered.See which shells are under the current system:Cat/etc/shellsView the shell that is currently in use by the systemEcho $SHELLCommon shell/bin/sh "has
Special Compliance 1. * Any of the characters 2. ? Any one character 3. # comment Character 4. \ de-semantic character 5. | Pipe character 6. The $ variable prefix, which represents the row bit 7. ; Multi-line command line input, split with
sudo spctl--master-disable open application from any source when installed;sudo lsof-i:9000;sodu kill-9 pid; View port occupancy and kill process;The Rmic compiler generates stub classes and skeleton classes;/home Install software
Boot of the
SED command Related:Https://www.cnblogs.com/ggjucheng/archive/2013/01/13/2856901.htmlHttps://www.cnblogs.com/DragonFire/p/6600121.htmlHere we have to do the function is:Enter a directory "/data/data8"Transform it to "\/data\/data8" in the shell
File expression-e filename true if filename exists-d filename If filename is a directory, true-F filename True if filename is a regular file-L filename True if filename is a symbolic link-r filename If filename is readable, true-W filename if
I. Basic introduction to Shell programming 1.1shell programmingThe shell is an interface that the user interacts with the kernel, and the most popular shell is now called the Bash shellThe shell is also a programming language interpreted
1. The relationship between Vim,vi and exVim does not need to install, VI for ex "Visual Mode", Vim is the advanced version of VI;2. Unix Shell shortcut keysctrl+a/e position the cursor to the head/tail of the commandctrl+u/k ctrl+y Paste ctrl+u/k
The steps are as follows: Vim ~/.bash_profile (no tube. Bash_profile This file has several, own new one is also possible) at the end add Export ps1= ' [\[email protected]\h \w]\$ ' Then execute the source ~/.bash_profile so the shell can display the
Ubuntu Desktop window into the Shell window: Ctrl + ALT + F2~f6; Exit Shell window: Ctrl + ALT + F7; Enter UI Command window from UI, Ctrl + Alt +t
Shell Instruction Basic Format
-command name [options] -For example: detailed listing of all
Shell Script Learning Summary----sed+grep+awk+ Regular================================================================================First part SED================================================================================I. INTRODUCTION of
Introduction to ArraysBash provides only one-dimensional arrays, and does not qualify the size of the array. Similar to the C language, the subscript of an array element is numbered starting with 0. Gets the elements in the array to take advantage
1. Take the IP address of the ifconfig eth0[Email protected] ~]$ ifconfig eth0Eth0 Link encap:ethernet HWaddr 00:0c:29:68:47:71inet addr:192.168.48.144 bcast:192.168.48.255 mask:255.255.255.0Inet6 ADDR:FE80::20C:29FF:FE68:4771/64 Scope:linkUp
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.