linux下文件操作命令


title: linux下文件操作命令

createTime: 2020-10-29 18:05:52

updateTime: 2020-10-29 18:05:52

categories:

  • linux
    tags:

Linux下文件操作命令

tar命令

  • 使用tar命令一般打包分为两种*.tar ,*.tar.gz 相信大家也使用过
  • tar -zcvf test.tar test/
  • tar -zcvf test.tar.gz test/
  • 两条命令为:将当前文件夹下的test文件夹中的所有数据压缩至test.tar* 解压后是 test/
  • 解压命令为:tar -zxvf **.tar tar -zxvf **.tar.gz

zip命令

  • 压缩命令: zip -r test.zip test/
  • 解压命令: unzip test.zip --解压至当前文件夹中

复制命令

  • cp test.zip /data/test --将test.zip复制到/data/test中
  • cp -r test.zip /data/test --将test.zip覆盖复制到/data/test中/data/test路径中有test.zip 则直接替换

上传下载命令

  • rz 上传 会弹出本地窗口,选择文件 点击确定即可上传
  • scp 本地文件 远程主机用户@远程主机IP:远程目录 此命令需要输入密码
  • scp test.zip htga@192.168.200.128:/home/htga
相关推荐
IT_陈寒1 天前
SpringBoot自动配置这个坑,我踩进去又爬出来了
前端·人工智能·后端
copyer_xyf1 天前
Agent 流程编排
后端·python·agent
copyer_xyf1 天前
Agent RAG
后端·python·agent
copyer_xyf1 天前
【RAG】向量数据库:milvus
后端·python·agent
铁皮饭盒1 天前
Bun 哪比 Node.js 快?
javascript·后端
copyer_xyf1 天前
Agent 记忆管理
后端·python·agent
葫芦和十三1 天前
图解 MongoDB 02|BSON:你以为存的是 JSON,其实是带类型的二进制
后端·mongodb·agent
葫芦和十三1 天前
图解 MongoDB 01|文档数据库
后端·mongodb·agent
陈随易1 天前
VSCode的Copilot扩展支持接入DeepSeek,Kimi了!
前端·后端·程序员
我不是外星人1 天前
有了 Harness Engineering ,真的还需要研发工程师吗?
前端·后端·ai编程