Linux基础知识
小胖758
海阔凭鱼跃,天高任我飞
展开
-
Linux教程:文件系统基础知识
1、linux文件系统分配策略: 块分配( block allocation ) 和 扩展分配 ( extent allocation ) 块分配:磁盘上的文件块根据需要分配给文件,避免了存储空间的浪费。但当文件扩充时,会造成文件中文件块的不连续,从而导致过多的磁盘寻道时间。 每一次文件扩展时,块分配算法就需要写入文件块的结构信息,也就是 m原创 2013-07-21 09:17:22 · 495 阅读 · 0 评论 -
Linux基础知识之visudo精确用户赋权(sudo)
sudo” 是Unix/Linux平台上的一个非常有用的工具,允许为非根用户赋予一些合理的“权利”,让他们执行一些只有根用户或特许用户才能完成的任务,从而减少根用户的登陆次数和管理时间同时也提高了系统安全性。· sudo的目的:为非根用户授予根用户的权限;· 配置文件:/etc/sudoers· visudo命令编辑修改/etc/sudoers配置文件1、一般用户赋权设置:原创 2013-07-21 09:30:48 · 680 阅读 · 0 评论 -
CentOS赋予一个普通用户root权限
1、添加用户,首先用adduser命令添加一个普通用户,命令如下:#adduser tommy //添加一个名为tommy的用户#passwd tommy //修改密码Changing password for user tommy.New UNIX password: //在这里输入新密码Retype new原创 2014-03-24 13:29:52 · 363 阅读 · 0 评论 -
Sed&awk笔记之sed篇
Sed是什么《sed and awk》一书中(1.2 A Stream Editor)是这样解释的:Sed is a "non-interactive" stream-oriented editor. It is stream-oriented because, like many UNIXprograms, input flows through the program转载 2014-09-24 11:32:03 · 438 阅读 · 0 评论 -
Sed&awk笔记之sed篇
Sed是什么《sed and awk》一书中(1.2 A Stream Editor)是这样解释的:Sed is a "non-interactive" stream-oriented editor. It is stream-oriented because, like many UNIXprograms, input flows through the program转载 2014-09-24 11:33:50 · 375 阅读 · 0 评论 -
Sed&awk笔记之sed篇
Sed是什么《sed and awk》一书中(1.2 A Stream Editor)是这样解释的:Sed is a "non-interactive" stream-oriented editor. It is stream-oriented because, like many UNIXprograms, input flows through the program转载 2014-09-24 11:33:44 · 583 阅读 · 0 评论