标签:create makefile etc 动态加载 modified 红帽 alt rpm -e cdrom
名称 | 说明 | 编号 | 默认 |
---|---|---|---|
STDIN | 标准输入 | 0 | 键盘 |
STDOUT | 标准输出 | 1 | 终端 |
STDERR | 标准错误 | 2 | 终端 |
分类 | 关键字 | 定义 | 例子 |
---|---|---|---|
重定向 | > | 将STDOUT重定向到文件(覆盖) | echo "linuxcast.net" > outfile ls -l > outfile |
重定向 | >> | 将STDOUT重定向到文件(追加) | echo "linuxcast.net" >> outfile data >> outfile |
重定向 | 2> | 将STDERR重定向到文件(覆盖) | ls nothere 2> errorout |
重定向 | 2>&1 | 将STDERR 与 STEOUT 结合 | ls nothere 2>&1 alloutput |
重定向 | < | 重定向STDIN | grep linuxcast < /etc/passwd |
管道 | | | 将一个命令的 STDOUT 作为另一个命令的 STDIN | ls -l | grep linuxcast find / -user linuxcast | grep video find / -user linuxcast 2> /dev/null | grep video |
title CentOS
root (hd0,1)
kernel /boot/vmlinuz-2.6.32-279.e16.i686 ro root=UUID=77272833-B6BB-4D53-B043-9541D1102EBD
initrd /boot/initramfs-2.6.32-279.e16.1688.img
rpm 支持通过 http、ftp 协议安装软件:rpm -ivh http://www.linuxcast.net/software.rpm
[LinuxCast]
name = This is LinuxCast.net rpm soft repo
baseurl = http://www.linuxcast.net/yum/centos/6/i386/rpms/
enabled = 1
gpgcheck = 1
createrepo -g /tmp/*comps.xml /rpm-directory
CentOS/RHEL 的分组信息保存在光盘 repodata/ 目录下,文件名以 comps.xml 结尾的 xml 文件
标签:create makefile etc 动态加载 modified 红帽 alt rpm -e cdrom
原文地址:https://www.cnblogs.com/duncan1863/p/11588679.html