我正在开发一个在linux上存档数据的应用程序(RHEL 7)。应用程序将文件从源中保存下来,并将tar/tar.gz放在存档文件夹中。当我没有什么数据的时候,它还不错。但当我尝试处理大量数据时,我得到的是例外情况.
Caused by: java.io.IOException: File too large
at java.io.UnixFileSystem.createFileExclusively(Native Method) ~[na:1.8.0_92]
at java.io.File.createNewFile(File.java:1012) ~[na:1.8.0_92]
源有60,
我是一个服务器的客户端,没有根访问权限,所以我需要从二进制文件中构建glbic。我已经从来源下载了Glibc。这是我的错误日志。
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for gcc... gcc
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whethe
我需要扫描所有目录&文件和/目录,并将主机重命名为"node1“,文件名或目录名中为"node_STAR”。
有人能想到如何做到这一点吗?也许用find或perl (为了将它插入到我的shell脚本中),尽管我们扫描了所有的Linux目录和文件,但它必须非常快。
文件上的示例
/var/tmp/node1 will be /var/tmp/node_STAR file
目录上的示例
/etc/my_hosts/node1 will be /etc/my_hosts/node_STAR dir
我正在寻找Linux中'Tree‘命令的替代品,但我希望它基于的不是递归算法。
Tree命令基于递归算法,从其描述可以看出:
Tree is a recursive directory listing program that produces a depth indented listing of files.
有没有其他不是递归的方式?
谢谢!
我有一个包含子目录A,B,C and D的文件夹。我需要将目录A and D复制到另一个名为'copy'的目录中,同时排除B and C(即不复制B和C)。我正在考虑执行以下操作(在命令行伪代码中):
ls (selective ls on the source directory) |
scp -r {returned value from the ls} {target directory}
有没有一种Linux命令行方法可以完成上述任务?