command performs the reverse function of the dump. A full backup of the file system can be restored first, and subsequent incremental backups can be overwritten on top of the restored full backup. You can restore a separate file or directory tree from a full or partial backup.Both dump and restore can be run on the network, so users can back up or restore from a remote device. Dump and restore use tape drives and file devices that provide a wide range of options. However, both are limited to ex
To view system Information:Cat/proc/version;To view information in a file that contains a specific field:Grep-r ' xxx ' file/path;Remove a log from the Tomcat log for a specific time period and place it in a file:The premise is that each line in the Catalina.out log starts with a date formatSed-n '/2016-05-25 06:12:/,/2016-05-26 07:17:/p ' catalina.out >wei.txtSed-n '/^2016-05-25/,/^2016-05-26/p ' catalina.out >wei.txtSummary of UTILITY commands for L
Sometimes when we enter Yum repolist or Curl Www.XXX on Linux. When the program was created by: Intel or System reasons press CTRL + Z1, when the Linux terminal to run the command, at the end of the command to add symbols, you can let the program run in the background[Email protected]$./TCPSERV01 2, if the program is running in the foreground, you can use the CTRL + Z option to suspend the program, and then use the BG%[number] command to put this program in the background to run[Email protected
the/etc directory.[Email protected] ~]# Ls-lh/etc | More#显示 the details of all files and subdirectories that contain the "NET" keyword in the/etc directory.[Email protected] ~]# Ls-lh/etc | grep net-rwxr-xr-x. 1 root root 1.3K April auto.net-rw-r--r--. 1 root root 74 May issue.net-rw-r--r--. 1 root root 767 November Netconfig-rw-r--r--. 1 root root 58 May NetworksDrwxr-xr-x. 2 root root 4.0K January 8 19:14 xinetd.d#统计一下 the number of files ending with ". conf" in the/etc directory.[Email prote
workspace that are confusing. You can use working sets to categorize project at this time.Such as:For example, I put an ad system project into a ADSP work set. Put the admin field code in the admin working set. To do this, the first step is to designate "Top level Elements" as "working sets" and then click on "Configure working sets" to create the working set.2.5 View DelimitedSometimes when displaying JSP data, the field name of the domain model is used, so you can display the domain model and
1. Uninstalling the old kernelsudo apt-get purge linux-image-xxx-xx-generic2. Quick change to Ubuntu Source:sudo sed ' s/vivid/wily/ ' /etc/apt/source.listsudosudo apt-get dist-upgrade3. Reload the desktop:sudo Install --reinstall ubuntu-desktop4.***** find a string in which file * * * *grep ' XXX ' path for example find ' Fndelay ' This macro defines which header file in/usr/include:grep'fndelay' / Usr/include5. * * * * * Find the file where ******Find PATH-name filename For example: Find A.txt
file The following is the effect of the read outHere is the complete processing script for the above operationCls$files=Get-ChildItem "F:\TestPowerShell"-Recurse-Include*. Txtforeach ($file inch$files) #遍历文件 {$linenumber= 0#获取当前文件的内容 $content=Get-Content $file. Pspath #打印出来文件名称 Write-Host "******************the Write-Host $fileWrite-Host "******************the #遍历文件的每一行信息 foreach ($lineinch$content) {#打印出来文件的每一行信息 Write-Host $line #这里当然可以继续处理, such as continue to do other processing for the cu
Plugin Description: Tree-view-finderModifying a directory tree is similar to a Mac OS finder-Display file size and file modification date and file size in the directory tree-can be arranged according to the file name/size/File modification date-double-click the file to open the file you want to edit by invoking an external editorInstallation and useTwo methods of installation
apm install tree-view-finder
Atom->settings (Setup)->install (Setup)-Search tree-view-finder - recommended
function Shortcut keysGlobal single-Step return F7Global single-Step skip F6Global single-step jump into F5Global single-Step jump selection Ctrl+f5Global Debug Last started F11Global Continue F8Global use filters to step SHIFT+F5Global Add/Remove breakpoints Ctrl+shift+bGlobal Display Ctrl+dGlobal Run last boot ctrl+f11Global Run to row ctrl+rGlobal Execution Ctrl+uThe following shortcut keys are commonly used in refactoring,I like and commonly used to tidy up (note: The General refactoring of
exception object (as defined in Throwable) can get the suppressed exception.The exception declaration thrown in the method can be a collection of all the specific subclass exceptions that may be thrown when the other method is called with the exception type thrown.Traditional I/O:I/O (traditional I/O, non-NIO) needs to switch between the application (user state) and the operating system (kernel state).Buffering improves performance by reducing the number of transitions between programs and exte
Common SSH Utility Commands
1. Statistics of current directory filesFind. -type F-print |wc-l2. Packing and compressingCompressed TAR-CJVF xxxx.tar.bz2 xxxx (folder)Extract Tar Xvjf xxxx.tar.bz23. Foldercd[Directory name] conversion pathCd.. Return to Parent DirectoryLS shows all files in current directory-PWD Show Current Path-mkdir xxxx New Folder4. View folder sizeDu-s xxxx by kbDu-sh xxxx Press M5. Delete Files-rm [file] Delete files/folders$RM-F
Problem:
Windows2000 system, first loaded vs. NET, and then install IIS, and the problem arises:
(1) ASP in IIS. NET tab page is not open. Says memory is read-only.
(2) with vs. NET built ASP. NET project, the native Web server is said to run the ASP. NET is not 1. 1 version.
--------------------------------------------------------------------------------
Solution:
Re-register IIS
Run C:windowsmicrosoft.netframeworkv1.1.4322aspnet_regiis.exe-i
Do not bind IIS and IP, write a batch file every tim
1, the implementation of the Sourse directory part of the file (the file name is listed as a text list, text file name list), copied to another directory/opt/targe/#!/bin/bashcd/opt/source for file in ' cat/opt/source/list ';d ocp-r-n $file/opt/targe/doneNote: "On the TAB key, the cp-n represents not overwritten."Extended scp-p Port number [email protected]:/opt/source//opt/targe/2.#!/bin/bashfor str in 1 2 3 4 5do echo-e "The value is: $STR \ n" DoneOutputThe value is:1 the value is:2 the value
segmentsdownload individual or multiple files in your own network disk./bd.py d http://pan.baidu.com/disk/home#dir/path=/path/to/filename1 http://pan.baidu.com/disk/home#dir/ Path=/path/to/filename2. or./bd.py d/path/to/filename1/path/to/filename2. recursively download individual or multiple folders in your own network disk./bd.py d-r http://pan.baidu.com/disk/home#dir/path=/path/to/directory1 http://pan.baidu.com/disk/home# Dir/path=/path/to/directory2. or./bd.py d-r/path/to/directory1/path/t
1, judge whether the data is legal or existDetermine whether the data is legitimate or existsfunction Isnotnull (data){if (data = = = "" | | data = = Undefined | | data = = NULL) //absolute equals in this case, guaranteeing the exact consistency of the type and data. Select "= =" as neededreturn false;Elsereturn true;}2. Get the current date time format "Yyyy-mm-dd HH:MM:SS"//Gets the current DateTime format "Yyyy-mm-dd HH:MM:SS"function Getnowformatdate () {var date = new Date ();var seperator1
, including their type, name, and other contextual information.
Helpndoc:helpndoc is used to create help document tools that can generate multiple formats based on the document source.
Other
Filezilla:filezilla is an open source FTP tool. The FileZilla client can upload files to the FTP server.
Treetrim:treetrim is a tool to adjust the code, can delete some invalid debug files and temporary files and so on.
Browserstack: Tools that support cross-browser testing.
Bugshooti
it is a file. Valid in Unix,windows. Os.renames (old, new) recursively renames a folder or file. Like rename ()#Shutil Moduleshutil.copyfile (SRC, DST) is copied from source Src to DST. The premise is, of course, that the destination address has writable permissions. The exception information thrown is IOException. If current DST already exists then it will be overwritten shutil.move (SRC, DST) move file or rename Shutil.copymode (SRC, DST) just copy its permissions other things will not be cop
Iis+php+mysql+zend OPTIMIZER+GD Library +phpmyadmin installation configuration [Full revision utility]
First, software preparation: The following are the latest official version as of 2006-1-20, the download address is also valid for a long time1.PHP, recommended PHP4.4.0 zip version:
PHP (4.4.0):
Http://cn.php.net/get/php-4.4.0-Win32.zip/from/a/mirror
PHP (5.1.2):
Http://cn.php.net/get/php-5.1.2-Win32.zip/from/a/mirror
2
describes all of these files (you can create your own detail file; otherwise, the JAR program will do the same for us). In the online user documentation, you can find more information on the JAR details list (the English for the details is "Manifest").The Jar utility is available with the sun's JDK and can be automatically compressed as we choose. Please call it at the command line:
jar [Options] description [Detail list] input file
Where options a
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.