随笔分类 - Linux
摘要:Initramfs An initramfs (initial ram file system) is used by Linux systems to prepare the system during boot before the operating systems'init process
阅读全文
摘要:『Linux Capability』 For the purpose of performing permission checks, traditional UNIX implementations distinguish two categories of processes: privileg
阅读全文
摘要:EtherChannel最初是由cisco提出,通过聚合多条物理链路为单条逻辑链路,从而实现高可用及提高吞吐量等目的。AgP(Port Aggregation Protocol,Cisco专有协议)、LACP(IEEE 802.3ad)是应用最广泛的两种实现。Linux中的实现称为Bonding,H
阅读全文
摘要:>FOR FREEDOM!< {A} Introduction Here's a short description of what is supported in the Linux RAID drivers. RAID is not a guarantee for data integrity,
阅读全文
摘要:一、常用操作 对称加密: 单向加密(文件完整性,没有被篡改过): 生成随机数 管理用户密码(即对密码加密存放) 非对称加密(密钥对,私钥加密用于签名証明身份,公钥加密用于保护文件内容) 二、 CA 相关 参考資料: http://www.cnblogs.com/yjmyzz/p/openssl-tu
阅读全文
摘要:SSH tunneling 相关 参考資料:http://www.ibm.com/developerworks/cn/linux/l-cn-sshforward/ 本地端口转发: 适用场景:发起端可以连接 SSH_server_host 端的 ssh 服务,但无法与最终目标 goal_host 的程
阅读全文
摘要:Linux内核支持的多网卡聚合方法——bond、team bond 优点:经过长时间的实践检验,具有较高的稳定性;kernel-2.4及以上内核均广泛支持 缺点:需要通过sysfs或发行版定制的网卡配置文件控制,易用性较差;运行效率对比team没有优势;同一时间仅允许单一形式的monitor,不能结
阅读全文
摘要:[COMMAND] Systemd Daemons: systemd networkd journald logind "user session" Systemd units: service[系统服务] mount[文件系统挂载点] automount[自动挂载点] target[多个unit组
阅读全文
摘要:WinXP: 一、管理 images 1、创建 qemu-img create -f raw -o size=10G,nocow=on base.raw #nocow 用于关闭 btrfs 的写时复制,仅对新创建的文件生效 2、扩容 qemu-img resize base.raw +20G 3、查
阅读全文
摘要:Network File System (NFS) is a file system protocol that allows client machines to access network attached filesystems. The newest version is version
阅读全文
摘要:严格来说,LFS只能称为“pseudo LFS”,WHY? 因为LFS归根结底,还是基于已有的操作系统平台构建而来,并非真正的从0开始,它没有突破所谓“鸡与蛋”的死循环;但它确实有助于理解Linux的运行机理,通过刻意营造一个尽可能接近于原始状态的最小运行环境,给用户一种“接近从0开始”的系统DIY
阅读全文
摘要:一、系统脚本位置及含义 /etc/inittab、/etc/init/* 存放开关机配置文件 /etc/init.d/* 服务脚本,是一个到/etc/rc.d/init.d/的软链接 /etc/rc.d 存放各个运行level的开关机脚本,均为指向/etc/init.d目录的软链接 /etc/rc.
阅读全文
摘要:一、yum配置文件位置 /etc/yum.conf /etc/yum.repos.d/*.repo 二、yum常用命令 install pkgs reinstall pkgs update pkgs update-to check-update erase pkgs list installed/u
阅读全文
摘要:Lacks of Knowledge 1: Linux has large amount of COMMANDS,but many of them have similar funtions,it's annoying! So,how to get the highest efficiency in
阅读全文
摘要:一、关闭selinux 二、在/etc/fstab中添加usrquota、grpquota挂载参数 三、使用quotacheck扫描创建配置文件 四、使用edquota编辑配置文件 五、开启/关闭quota 六、查看配额报告/状态
阅读全文
摘要:当需要在脚本中自动回答 'yes' 或 'no' 等选项时,就可以调用 yes 小工具,语法如下: 如: yes no | cp -i testfile /tmp (对于管道后面的命令执行过程中提出的每个询问,都发送定制的内容 no 过去) 就等同于: cp -n testfile /tmp 对于没
阅读全文
摘要:SECTION A Aa、禁用ctrl alt delete三键重启:注释掉/etc/inittab中的如下部分 Ab、vim直接全篇搜索光标所在单词 快捷键 shift # Ac、bash数组删除元素或整个数组 unset ARRAY[N] unset ARRAY Ad、获取帮助信息的渠道 wha
阅读全文
摘要:a.vi查找文本 N,反方向搜索 b.查看外网ip curl ifconfig.me b.更改到上一次访问的目录 cd - d.在组中删除用户: gpasswd -d 用户名 组名 e.查看网卡速率 cat /sys/class/net/eth0/speed f.host与guest之间的文件互传
阅读全文

浙公网安备 33010602011771号