1. File常用的构造 File file = new File("字符串路径"); File f = new File("D:\\a\\b.txt"); File file = new File("父路径的字符串表现形式","子路径的字符串表现形式"); File f2 = new File("D:\\a","b.txt"); File file = new File(父路径的Fil…
打包举例:将 /usr/local/src/zlib-1.2.5目录下的文件打包成 zlib-1.2.5.tar.gz cd /usr/local/src tar -czvf ./zlib-1.2.5.tar.gz ./zlib-1.2.5/* # 压缩到制定目录下(如:/root/2/ ) tar -czvf /root/2/zlib-1.2.5.tar.gz ./zlib-1.2.5/* #压缩 tar -czvf ***.tar.gz tar -cjvf ***.tar.bz2…