开发者社区 问答 正文

在节点表结构中怎样进行文件备份呢?

已解决

在节点表结构中怎样进行文件备份呢?

展开
收起
游客a3frllpzccb7m 2022-04-02 09:12:25 1184 分享 版权
1 条回答
写回答
取消 提交回答
  • 推荐回答

    1 [root@centos7 data]#ls

    2 f1.conf f10.conf f2.conf f4.conf f3.conf f5.conf f7.conf f6.conf f9.conf f8.conf file2 file3 file4 file5

    3 [root@centos7 data]#cp file1{,.bak}

    4 [root@centos7 data]#ls

    5 f1.conf f10.conf f2.conf f3.conf f5.conf f4.conf f6.conf f7.conf f8.conf f9.conf file1 file1.bak file2 file3 file5 file4

    cp file1{,.bak} 命令等价于 cp file1 file1.bak,前者比后者的好处在于当文件名很长时,前者更节省时间

    2022-04-02 09:58:34
    赞同 展开评论
问答地址: