From be6aebec5a2badd62d049086c3848e83c2413766 Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 22 May 2024 22:48:55 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AC=94=E8=AE=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../20240522\347\254\224\350\256\260.md" | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 "\351\242\234\351\224\220\346\225\217/20240522\347\254\224\350\256\260.md" diff --git "a/\351\242\234\351\224\220\346\225\217/20240522\347\254\224\350\256\260.md" "b/\351\242\234\351\224\220\346\225\217/20240522\347\254\224\350\256\260.md" new file mode 100644 index 0000000..bfdef7b --- /dev/null +++ "b/\351\242\234\351\224\220\346\225\217/20240522\347\254\224\350\256\260.md" @@ -0,0 +1,38 @@ +创建测试文件: +```js +touch .hidden.txt visible1.txt visible2.txt +``` +列出文件和目录: +```js +ls -la ~ +``` +创建工作区: +```js +mkdir work_area +cd work_area +mkdir project_a project_b docs +``` +移动文本文件: +```js +mv ~/*.txt work_area/docs/ +``` +创建新文件 +```js +echo "Initial notes for project A" > work_area/project_a/notes.txt +``` +复制目录: +```js +cp -r work_area/project_a work_area/project_b/project_a_backup +``` +列出文件并按大小排序: +```js +ls -lSh work_area/docs/ +``` +删除所有文件: +```js +rm work_area/docs/* +``` +删除目录: +```js +rm -rf work_area/project_b +``` \ No newline at end of file -- Gitee