directory

Uniquely identify files/folders in NTFS, even after move/rename

江枫思渺然 提交于 2020-02-24 11:01:14
问题 I haven't found a backup (synchronization) program which does what I want so I'm thinking about writing my own. What I have now does the following: It goes through the data in the source and for every file which has its archive bit set OR does not exist in the destination, copies it to the destination, overwriting a possibly existing file. When done, it checks for all files in the destination if it exists in the source, and if it doesn't, deletes it. The problem is that if I move or rename a

Uniquely identify files/folders in NTFS, even after move/rename

独自空忆成欢 提交于 2020-02-24 11:01:08
问题 I haven't found a backup (synchronization) program which does what I want so I'm thinking about writing my own. What I have now does the following: It goes through the data in the source and for every file which has its archive bit set OR does not exist in the destination, copies it to the destination, overwriting a possibly existing file. When done, it checks for all files in the destination if it exists in the source, and if it doesn't, deletes it. The problem is that if I move or rename a

2020-02-23

耗尽温柔 提交于 2020-02-24 04:15:21
Linux系统常用Shell命令 文件系统管理相关命令 pwd: print working directory,打印当前工作目录 cd: change directory,改变当前工作目录 mkdir: make directory,创建文件夹,常用参数-p rmdir: remove directory,删除空文件夹,使用rm -rf可以删掉任何文件夹 rename: 重命名文件 mv: move,移动文件 chmod: change mode,修改文件的权限属性 chown: change ownership,修改文件的所有者属性 touch: 修改文件的时间属性 ls: list,打印文件列表信息,常用参数-a(all,查看所有文件,包括隐藏文件)和-l ln: link,创建链接文件,分为软链接(即符号链接,要带上-s参数)和硬链接两种 rm: remove,删除普通文件,常用参数-f和-r truncate: 裁剪文件,常用参数-s vi/vim:Linux系统自带的文本编辑器 cat: 查看文件的数据内容 more: 查看文件的数据内容,适合查看大文件 find: 查找文件路径 touch: 修改文件的时间属性 man: manual,手册 cp: copy,拷贝文件,常用参数-r(用于拷贝文件夹) tar: 文件打包或解包,常用参数-cvf(打包)、-tvf(查包)

2020-02-23

不羁岁月 提交于 2020-02-23 20:34:08
目前已经明白这些命令 pwd: print working directory,打印当前工作目录 cd: change directory,改变当前工作目录 mkdir: make directory,创建文件夹,常用参数-p rmdir: remove directory,删除空文件夹,使用rm -rf可以删掉任何文件夹 rename: 重命名文件 mv: move,移动文件 chmod: change mode,修改文件的权限属性 chown: change ownership,修改文件的所有者属性 touch: 修改文件的时间属性 ls: list,打印文件列表信息,常用参数-a(all,查看所有文件,包括隐藏文件)和-l ln: link,创建链接文件,分为软链接(即符号链接,要带上-s参数)和硬链接两种 rm: remove,删除普通文件,常用参数-f和-r truncate: 裁剪文件,常用参数-s vi/vim:Linux系统自带的文本编辑器 cat: 查看文件的数据内容 more: 查看文件的数据内容,适合查看大文件 find: 查找文件路径 touch: 修改文件的时间属性 man: manual,手册 cp: copy,拷贝文件,常用参数-r(用于拷贝文件夹) tar: 文件打包或解包,常用参数-cvf(打包)、-tvf(查包)、-xvf(解包 来源: CSDN

Oracle导入导出

馋奶兔 提交于 2020-02-20 20:09:46
Oracle 10g 已经引入了数据泵(点击 Data Dump )技术,这项技术和之前的exp/imp有哪些好处呢,简单的来说就是恢复和备份速度非常快; 在说明数据泵的使用方法之前,我们先来了解二者的区别: 1、数据库的导入导出功能简介: 目前oracle官方提供两种导入导出方式:imp/exp和impdp/expdp; 2、两者简单比较: 命令 命令适用范围 效率 导出的DMP文件存放路径 IMP/EXP 服务端/客户端 低 当在客户端使用时存放在客户端;在服务端使用时存放在服务端 IMPDP/EXPDP 服务端/客户端 高 只存放服务器端 3、用法举例 用户名、表空间均相同的情况: imp user/password@127.0.0.1:1521/orcl file=d:\qis.dmp exp user/password@127.0.0.1:1521/orcl file=d:\qis.dmp full=y ignore=y create or replace directory impdp_dir as ‘d:\impdp_dir’;--注意物理盘符也要创建对应的目录 create or replace directory expdp_dir as ‘d:\expdp_dir’;--注意物理盘符也要创建对应的目录 grant read,write on directory

PHP递归创建多级目录(一道面试题的解题过程)

无人久伴 提交于 2020-02-19 08:55:20
今天看到一道面试题,要写出一个可以创建多级目录的函数: 我的第一个感觉就是用递归创建,具体思路如下: function Directory($dir){     if(is_dir($dir) || @mkdir($dir,0777)){ //查看目录是否已经存在或尝试创建,加一个@抑制符号是因为第一次创建失败,会报一个“父目录不存在”的警告。         echo $dir."创建成功<br>"; //输出创建成功的目录     }else{         $dirArr=explode('/',$dir); //当子目录没创建成功时,试图创建父目录,用explode()函数以'/'分隔符切割成一个数组         array_pop($dirArr); //将数组中的最后一项(即子目录)弹出来,         $newDir=implode('/',$dirArr); //重新组合成一个文件夹字符串         Directory($newDir); //试图创建父目录         if(@mkdir($dir,0777)){             echo $dir."创建成功<br>";         } //再次试图创建子目录,成功输出目录名     } } Directory("A/B/C/D/E/F"); 输出结果如图: 但是可以看得出来

oracle体系-16.1-数据仓库

吃可爱长大的小学妹 提交于 2020-02-18 22:16:02
数据仓库 数据仓库以OLAP类型操作为主,这有别于OLTP类型的操作。 OLTP体现的实时的事务处理,OLAP可以看成是OLTP的历史数据“仓库” OLAP操作上主要体现为: 1)select查询汇总为主,对事务性要求较少 2)对数据快速复制、移动的需求 3)分布式查询的需求。 数据移动 概念 1)数据移动源于数据仓库,它是逻辑对象层面的数据复制, 数据移动有两种引擎: ①ORACLE_LOADER(Sqlload引擎) ②ORACLE_DATAPUMP(数据泵引擎) 两个引擎的区别是:ORACLE_DATAPUMP只能读取由它导出的文件,而ORACLE_LOADER可以读取任何它能解析的第三方文件格式。 ##一般ORACLE_LOADER引擎主要针对txt文件,ORACLE_DATAPUMP主要针对dmp文件 2)数据移动主要包含两个方面内容 ⑴创建外部表的方法,两种引擎都可以生成外部表数据。但用途和方法是不同的。 ①Sqlload引擎生成的外部表是文本格式的,支持跨平台的不同数据库间的数据移动。 ②Data pump引擎生成的外部表是二进制格式的。适用于Oracle 平台的数据库之间快速数据移动。 ⑵数据泵技术(expdp/impdp) 作为替代传统逻辑备份的导入导出,实现数据在逻辑层面的快速复制与恢复 Directory(目录)

How to quietly remove a directory with content in PowerShell

寵の児 提交于 2020-02-16 15:39:07
问题 Using PowerShell, is it possible to remove some directory that contains files without prompting to confirm action? 回答1: Remove-Item -LiteralPath "foldertodelete" -Force -Recurse 回答2: From PowerShell remove force answer: help Remove-Item says: The Recurse parameter in this cmdlet does not work properly The command to workaround is Get-ChildItem -Path $Destination -Recurse | Remove-Item -force -recurse And then delete the folder itself Remove-Item $Destination -Force 回答3: This worked for me:

Where to put data or config files loaded by my Java code when web app launches in a Vaadin 14 web app driven by Maven

爷,独闯天下 提交于 2020-02-15 10:07:24
问题 In a Vaadin 14 web app project created by the "Plain Java Servlet" flavor of the Vaadin Starter page, there are numerous folders automatically created by the Maven POM file process. Where is the place to put a data file or configuration file that I will load and parse when my web app launches? Under what folder do I put my files? Should I create further nested folders? And by what file path name do I find and load such a text (XML, JSON, CSV, etc.) file? 回答1: Location of file You put them in

Where to put data or config files loaded by my Java code when web app launches in a Vaadin 14 web app driven by Maven

大憨熊 提交于 2020-02-15 10:03:12
问题 In a Vaadin 14 web app project created by the "Plain Java Servlet" flavor of the Vaadin Starter page, there are numerous folders automatically created by the Maven POM file process. Where is the place to put a data file or configuration file that I will load and parse when my web app launches? Under what folder do I put my files? Should I create further nested folders? And by what file path name do I find and load such a text (XML, JSON, CSV, etc.) file? 回答1: Location of file You put them in