Tags: shell script#/bin/bashWork_home=/dataOlddata_home= "${work_home}/olddata"Target_day= ' date-d '-3 day "+%f"#打包前3天的日期目录压缩成功后并删除TAR-ZCVF ${olddata_home}/$target _day.tar.gz ${olddata_home}/$target _dayIf [$?-eq 0];thenecho "The $i is Compression success"RM-RF ${olddata_home}/$target _dayElseecho "The $i is not Compression success"#breakFiThis article is from the "Yang Yu" blog, please be sure to keep this source http://10302043.blog.51cto.com/10292043/1971444The shell script will specify the
The following are some of the most important directories and the various functions of Linux systems:/root directory.Contains almost all of the file directories. Equivalent to a central system. The simplest way to enter is: CD/./bootDirectories such as boot programs, kernels, and so on.This directory, including the necessary files in the boot process, the boot program related files (such as Grub,lilo and the corresponding configuration file and Linux o
Enterprise IT environments with multiple directory platforms are very common, while IBM Lotus Domino Directory and Microsoft Active Directory are popular in this case. This article describes a method to use the Lotus Domino active directory synchronization tool (adsync) to facilitate communication between the two direc
The meaning of directory and file permissions in Linux
The meaning of file permission
R: You can read the specific contents of this document;
W: You can edit the contents of this file, including adding the details of the deleted file;
X: The file has executable permissions-------Note: Here and window is not the same, in win, the file executable permissions are expressed through the extension, such as EXE, BAT, etc., but in Linux file executable pe
SYMFOY2 directory structure description, SYMFOY2 directory structure
Understanding the framework's directory structure is a way for the framework to get started quickly, with a mature framework where each functional module is partitioned into different directories.
Symfony2 Level directory structure:
├──app
In considering a problem,
Why MVC must model a directory, view a directory, controller a directory,
Instead of following the module, put it in a directory:
such as the Order module:
order/
ordercontroller.php
ordermodel.php
Orderlist.phtml
Orderedit.phtml
I think this is the time to develop the order module,It doesn't
Linux copies all files in the specified directory to another directoryCopy all files in the specified directory to another directoryThe copying of files and directories is often used. The commands for copying under Linux are CP.Assume that the replication source directory is dir1 and the destination directory is DIR2.
Today, we mainly introduce the application of file directory function in the development of PHP website. In the development of PHP website, we often need to read directory file information or create a directory to store the necessary files, and when the directory file size exceeds the specified size, we need to delete
PHP Directory processing-open/close directory
What is directory processing?
Directory is a special kind of file, to browse the file under the directory, the first thing is to open the directory, browse finished, the same to close
The "/" root directory section has the following subdirectories:The/usr directory contains all the commands, libraries, documents, and other files. These files will not be changed during normal operation. This directory also contains the main applications of your Linux distribution, such as Netscape.The/var directory c
Copy commandThe function of this command is to copy the given file or directory to another file or directory, which is as powerful as the copy command under MSDOS.
Syntax: CP [option] source file or directory destination file or directory
Description: This command copies the specified source files to the destination
Label:1, the Source code directory introduction: 1. BUILDThe build directory is the compilation, installation script directory, most of which begins with compile-, where the setup.sh script sets the optimization options for the C and C + + compilers.2. ClientThe client directory includes commonly used commands and the
Framework development with no single entry, the number of code and catalogs is getting bloated, and project maintenance costs are highThere is no negative example to use for reference, the human brain does not agree. The following is a medium-sized project later into the directory structure, the project code is getting messy, developers are reluctant to maintain the code of the system, because to find code to modify, become very painful, code confusio
1. Active Directory (AD)
Active directory is a directory service for Windows Server.
It stores information about the various objects on the network and makes that information easy for administrators and users to find and use.
The Active Directory directory service uses struc
PHP statistics directory of files and directories in the directory size method,
The examples in this article describe the files in the PHP statistics directory and the size of directories in the directory. Share to everyone for your reference, as follows:
"; } else{echo "". $fileName. " ===== ". Date (" Y-m-d h:i:s ",
Tags: data pump ant action username drop operation user Oracl spanORACLE Directory Directory management steps Oracle 's directory is a directory path in the database and needs to be mapped to the corresponding directory in the operating system; The role of the Oracle
Batch Bat command--get current drive letter and current directory and parent directoryBatch command gets current drive letter and current directory%~D0 is the current drive letter%cd% is the current directoryCan print test with echo%cd%The following example is a command-line compilation of a program written by Visual Studio:@echo offSet b=%cd%//Save the current director
Tags: Linux cd7.4 "Linux learning is not difficult" file/directory Management (4): cd command Change working directory pathUse the CD command to change the user's working directory path. Working directory paths can use absolute or relative path names, absolute paths start with/(root), and then sequentially to the desir
Don't rush the spray first, please listen to my explanation.It is true that the same functionality can be achieved using the GetFiles, GetDirectories, and GetFileSystemEntries methods under the existing directory classes, but believe that I am not an egg because these methods are met with "System Volume Information "This directory, it is very likely to give you a denial of access to the exception, want to s
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.