# VI ~/.BASHRC
If you see something like this, the following commands are executed with aliases, which means that the-i parameter is automatically added
Alias rm= ' Rm-i 'Alias cp= ' Cp-i 'Alias mv= ' Mv-i '
In order to copy and move a large number of files to overwrite the target, there will not be a hint, the command should be written like this
# \cp-rf/home/21andy.com/*/www/21andy.com/
This is a file directory move class, as long as in Listdir write your file to transfer the directory name moved on it, this folder and file move class, more suitable for the collection of multiple files to download the operation, such as in the packaging
Package cn.com; import Java. io. file; // Problem description: Move the file // note: // 1 move the folder in the original path to retain // 2 but the file in the folder will no longer exist // 3 if it is a directory, recursively call this method // 4 Core is call renameto (
function Hover_file ($file _url, $file _name) {
Determine and create a folder
$y =date (' Y ', Time ());//year
$m =date (' m ', Time ());
if (!is_dir ('.. /.. /.. /attachment/images/'. $y. $m)) {
MkDir ('.. /.. /.. /attachment/images/'. $y. $m, 0777);//Create Year + Month folder permissions are highest
}
Get the picture path and move
$text = $
Users that trigger PHP scripts to run from browser access are Apache usersUnable to move file because the target directory does not have write permission1. Set the target directory permission to 777#chmod 777 Tar_dir2. Set the target directory user and user group to Apache#chown Apache.apache Tar_dir* The second method is recommended, and the service is restarted after modification.* If the
section is redundant and not beautiful. But some problems are explained.
1. Specify the character set. Otherwise, there may be problems in different browsers or systems. Do not use the AddDefaultCharset function in the configuration file of apache2. Change it to adddefacharcharset Off if it has been changed. Restart apache2.
2/The temporary file will disappear after php Execution, which is difficult to see
Today, I suddenly asked my colleagues if Sun had provided a direct way to move files. Results with
It says, "you might as well just get the project to sun for free, and give it back to you."Using the Renameto (file dest) method in the file class, you can write very little code to succeed
To move files to another dire
Online mobile oracle data files The Oracle data file can be renamed or moved while the database is open, but the tablespace must be read-only, which allows users to query from the table, but prevents them from inserting , update and delete, freezes the data file size when the table space is read-only. Block update of data files in order to copy data files online Note: The System tablespace,system table spa
: Wordpress Move, Graphic tutorial/
First download plug-ins, http://wordpress.org/extend/plugins/wordpress-move/
Upload and start. This plug-in is usually installed on both the new and old sites.
//////////////////////////////////////// //////////////////////////////////////// ///////////////////////
1. Back up the data on the old station first. If it is not backed up, it cannot be transferred (nonsen
Example, this is the configuration file practice, if you do not use the configuration file can directly use the function of the Operation method
The code is as follows
Copy Code
Configuration file Config.ini[Global]#原文件存放目录Dir1=f:\work\python\3595\pyserver\test#新文件存放目录Dir2=f:\work\python\3595\pyserver\test1 #!/usr/bin/python#-*-Coding
Run the Linux code rm-rf/file-r: recursive processing parameter-f: force delete all files Linux code cp/test1/file1/test3/file2 copy file1 to test3 and rename file2Linux code cp-atesttest1 to t... run the Linux code rm-rf/file-r: recursive processing parameter-f: forcibly delete all files. run the Linux code cp/test1/file1/test3/file2 to copy file1 to test3, and renamed file2 Linux code cp-a test test1. cop
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.