Debian リファレンス v2.124(青木 修) 本 Debian リファレンス (第 2.124 版) (2024-06-30 04:06:30 UTC) はシステムインストール後のユーザー案内書として、 Debian システムの広範な概論を提供します。本書は非開発者を対象にシェルコマンド例を通してシステム管理の多 くの局面を説明します。 Debian リファレンス iii COLLABORATORS TITLE : Debian REVISION HISTORY NUMBER DATE DESCRIPTION NAME Debian リファレンス iv Contents 1 GNU/Linux チュートリアル 1 1.1 コンソールの基礎 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . の下でのシェルプロンプト . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 1.1.3 root アカウント . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 码力 | 287 页 | 1.60 MB | 1 年前3
CentOS 7 操作命令-基础篇1.2下没有文件和其他 //目录了,就把 dir1 也删除了 #rm -r xxx //删除非空目录,目录里的文件也会被删除,删除前会有提示, //输入 y 表示确定删除,n 表示不删除 27 #rm -rf xxx //强制删除 xxx 目录及其包含的所有文件,不提示 #du -sh /root //显示/root 目录使用的容量(占用的大小),默认以 KB 为单位 //使用 h 参数后表示以方便阅读的单位显示 at -d 加任务号 ②crond 服务 用户可以使用 crontab 命令安排自己的 crond 周期性任务 95 crontab 任务安排命令格式: 例: 5 0 * * * rm -rf ~/temp/* 字段:1 2 3 4 5 6 字段说明 1: 表示一小时中的哪一分钟(0~59) 2:表示一天中的哪一小时(0~23)*星号表示不限具体的小时,即每个小时 3:表示一月中的哪 都表示周日,*星号表示不限星期几,即每天 6:表示任务具体的命令(rm -rf ~/tmp/*) 本例中的含义:在每天的 0 时 5 分执行 rm -rf ~/temp/*,即清空用户的临时文件 创建用户自己的周期性任务 #crontab -e //输入此命令后,以 Vi 工具进行编辑任务格式 比如: 15 1 * * * rm -rf ~/temp/* 一行表示一个任务,可以写多行 然后保存退出即可。0 码力 | 115 页 | 8.68 MB | 1 年前3
Linux命令大全搜索工具 v1.8扩起,那么会导致 严重的问题: 1. # 为方便演示,删除全部别名 2. unalias -a 3. # 没有用单引号扩起 4. alias rm=rm -rf 5. # 执行命令后报错 bash: alias: -rf: not found 知识点 错误用法 alias 定义或显示别名 - 38 - 本文档使用 书栈网 · BookStack.CN 构建 6. # 这时使用alias查看rm的别名时返回 org/axel/axel-2.4-1.el5.rf.i386.rpm 2. rpm -ivh axel-2.4-1.el5.rf.i386.rpm 64位CentOS执行下面命令: 1. wget -c http://pkgs.repoforge.org/axel/axel-2.4-1.el5.rf.x86_64.rpm 2. rpm -ivh axel-2.4-1.el5.rf.x86_64.rpm Debian/Ubuntu安装Axel: /home/windsome/EMMA3PF-KernelSource-20080626/install_pos/lib -rf 6. rm /home/windsome/EMMA3PF-KernelSource-20080626/install_pos/boot/* -rf 7. cd8. make 9. make modules_install 10. 0 码力 | 1347 页 | 8.79 MB | 1 年前3
Linux command line for you and me Documentation Release 0.1prompt. You can chain the flags, so instead of rm -r -f you can as well type rm -rf. But, always double check before you use rm -rf command, if you by mistake give this command in your home directory, or any there. So, please be careful and read twice before pressing enter key. [babai@kdas-laptop ~]$ rm -rf dir1/dir2/dir3 [babai@kdas-laptop ~]$ ls dir1/ dir1/dir2/ dir1/: dir2 dir1/dir2/: Copying a file0 码力 | 124 页 | 510.85 KB | 1 年前3
The Linux Commands Handbook
them, we'll use the more generic rm command which deletes files and folders, using the -rf options: rm -rf fruits cars Be careful as this command does not ask for confirmation and it will immediately0 码力 | 135 页 | 14.14 MB | 1 年前3
The Linux Commands Handbook
them, we'll use the more generic rm command which deletes files and folders, using the -rf options: rm -rf fruits cars Be careful as this command does not ask for confirmation and it will immediately0 码力 | 112 页 | 13.74 MB | 1 年前3
Linux command line for you and me Documentation Release 0.1prompt. You can chain the flags, so instead of rm -r -f you can as well type rm -rf. But, always double check before you use rm -rf command, if you by mistake give this command in your home directory, or any there. So, please be careful and read twice before pressing enter key. [babai@kdas-laptop ~]$ rm -rf dir1/dir2/dir3 [babai@kdas-laptop ~]$ ls dir1/ dir1/dir2/ dir1/: dir2 dir1/dir2/: 1.12 Copying a0 码力 | 128 页 | 716.99 KB | 1 年前3
Debian 维护者指南16:26:38.802723496 +0900 @@ -1,4 +1,4 @@ -prefix = /usr/local +prefix = /usr all: src/hello $ rm -rf debhello-0.0 26 CHAPTER 4. 简单例子 4.9. 第三步(备选):修改上游源代码 $ mv -f debhello-0.0.orig debhello-0.0 请注 • 请检查 package.install.log 的文件内容以确定各个文件的安装路径,从而决定如何将它们拆分成多 个软件包。 • 调用 debmake 命令以开始准备打包信息。 $ rm -rf package-1.0 $ tar -xvzf package-1.0.tar.gz $ cd package-1.0 $ debmake -b"package1:type1, ..." • 请使用以上信息更新 contains the non-native version number with revision like 0.16-1. $ cd /path/to/upstream-git $ git rm -rf debian $ git tag -s upstream/0.16 $ git reset --hard HEAD^ $ git deborig $ sbuild Here, for source0 码力 | 142 页 | 1.11 MB | 1 年前3
This Debian Reference (version 2.109) 3.c 4.h $ echo .* . .. .5.txt ..6.txt $ echo .*[^.]* .5.txt ..6.txt $ echo [^1-3]* 4.h $ cd ..; rm -rf junk See glob(7). Debian Reference 29 / 238 Note Unlike normal filename expansion by the shell, APT. You should remove all cached data by ”sudo rm -rf /var/lib/apt/* ” and try again. (If apt-cacher-ng is used, you should also run ”sudo rm -rf /var/cache/apt-cacher-ng/* ”.) 2.6.3 Incompatibility mkfs.ext4 /dev/sdx $ sudo mount -t ext4 /dev/sdx work-dir $ sudo cp -a old-dir/* work-dir $ sudo rm -rf old-dir Tip You may alternatively mount an empty disk image file (see Section 9.7.5) as a loop device0 码力 | 266 页 | 1.25 MB | 1 年前3
Linux就该这么学 第2版crontab -l 25 3 * * 1,3,5 /usr/bin/tar -czvf backup.tar.gz /home/wwwroot 0 1 * * 1-5 /usr/bin/rm -rf /tmp/* 总结一下使用计划服务的注意事项。 ➢ 在 crond 服务的配置参数中,一般会像 Shell 脚本那样以#号开头写上注释信息,这样 在日后回顾这段命令代码时可以快速了解其功能、需求以及编写人员等重要信息。 [root@linuxprobe~]# cd /home [root@linuxprobe home]# ls linuxprobe linuxcool linuxdown [root@linuxprobe home]# rm -rf linuxprobe [root@linuxprobe home]# ls linuxcool linuxdown 5.2 文件权限与归属 在 Linux 系统中,每个文 /tmp 3.5 G /usr 155M /var 先从某些目录中复制过来一批文件,然后查看这些文件总共占用了多大的容量: [root@linuxprobe~]# cp -rf /etc/* /newFS [root@linuxprobe~]# ls /newFS adjtime hostname0 码力 | 552 页 | 22.25 MB | 1 年前3
共 28 条
- 1
- 2
- 3













