当前位置: 首页 > Linux

linux基础增删改查

时间:2023-04-06 02:17:28 Linux

1.增删改查1.1新建文件touchtest目录mkdirmydirmkdir-p/father/son/grandson1.2Copy将新建的test文件复制到目录下cptestfather/son/grandsoncopyAdd-Ror-rcp-rfatherfamily1.3删除普通文件rmtest删除只读文件rm-ftest删除目录rm-rfamily1.4移动文件mv原目录file目标目录touchfilemkdirDocumentsmvfileDocuments重命名文件mv原文件新文件namemvfilenewfile1.5findfilewhereissimpleandfastwhereiswhowhichsmallandfinewhichmanlocatefastandcompletesudoapt-getinstalllocate/bin/shfindfineandfinesudofind/etc/-nameinterface-atime上次访问时间-ctime文件内容最后修改时间-mtime文件属性最后修改时间