目录
第1章命令行操作及常用命令使用...........................................................................................5
1.1命令行操作...................................................................................................................5
1.1.1Shell简介...........................................................................................................5
1.1.2Shell控制台使用方法..........................................................................................6
1.2常用命令使用................................................................................................................6
1.2.1登录和退出Linux系统.........................................................................................6
1.2.2文件和目录操作命令............................................................................................8
1.2.3用户及用户组管理命令......................................................................................10
1.2.4进程及任务管理命令..........................................................................................13
1.2.5磁盘及文件系统管理命令...................................................................................16
1.2.6软件安装命令....................................................................................................17
第2章文件查看/编辑方法介绍...............................................................................................19
2.1cat命令介绍...............................................................................................................19
2.2vi命令介绍.................................................................................................................19
2.2.1vi的进入与退出.................................................................................................20
2.2.2vi中显示行号....................................................................................................20
2.2.3光标移动操作....................................................................................................21
2.2.4文本插入操作....................................................................................................22
2.2.5文本修改操作....................................................................................................23
2.2.6文本搜索与替换操作..........................................................................................25
2.3head及tail命令介绍...................................................................................................26
第3章网络配置及操作..........................................................................................................27
3.1网络配置命令..............................................................................................................27
3.1.1ifconfig.............................................................................................................27
3.1.2route................................................................................................................28
3.2网络操作命令..............................................................................................................30
3.2.1netstat..............................................................................................................30
3.2.2nslookup..........................................................................................................31
3.2.3host.................................................................................................................32
3.2.4finger...............................................................................................................32
3.2.5Ping命令..........................................................................................................33
3.3常用网络配置文件介绍................................................................................................33
3.3.1/etc/sysconfig/network网络设置.........................................................................34
3.3.2/etc/hostsIP地址和主机名的映射.......................................................................34
3.3.3/etc/services.....................................................................................................35
Linux操作指导专题文档密级内部公开
2004-02-04华为3Com机密未经许可不得扩散第4页,共53页
3.3.4/etc/host.conf配置名字解析器............................................................................35
3.3.5/etc/nsswitch.conf配置名字解析器.....................................................................36
3.3.6/etc/resolv.conf配置DNS客户..........................................................................37
3.3.7/etc/xinetd.conf.................................................................................................37
3.3.8/etc/modules.conf文件......................................................................................39
3.3.9/etc/sysconfig/network-scripts/ifcfg-ethN文件.....................................................39
3.4常用网络操作方法.......................................................................................................39
3.4.1ftp远程文件传输...............................................................................................40
3.4.2telnet................................................................................................................42
3.4.3r-系列命令........................................................................................................43
第4章常用使用技巧..............................................................................................................45
4.1Linux下软件包的安装及卸载........................................................................................45
4.1.1RPM安装操作..................................................................................................45
4.1.2RPM查询操作..................................................................................................45
4.1.3RPM卸载操作..................................................................................................46
4.1.4RPM升级操作..................................................................................................46
4.1.5RPM验证操作..................................................................................................46
4.1.6RPM的其他附加命令........................................................................................47
4.2Linux操作系统的时钟系统...........................................................................................47
4.2.1时钟系统介绍....................................................................................................47
4.2.2硬件时钟系统与系统时间的同步.........................................................................47
4.3系统信息及运行状态监控.............................................................................................48
4.3.1df命令..............................................................................................................49
4.3.2du命令.............................................................................................................49
4.3.3top命令............................................................................................................49
4.3.4iostat命令........................................................................................................50
4.4打包/压缩工具tar........................................................................................................50
4.5文件及文件内容的查找................................................................................................51
4.5.1文件查找命令find..............................................................................................51
4.5.2文件内容查找命令grep......................................................................................51
4.6Linux的系统服务及其配置...........................................................................................52
4.6.1服务简介..........................................................................................................52
4.6.2启动和停止服务................................................................................................52
4.6.3服务的添加删除自动运行及状态..................................................................53Linux操作指导专题文档密级内部公开产品名称Productname密级ConfidentialitylevelCAMS机密产品版本ProductversionTotal53pages共55页V100Linux操作指导专题(仅供内部使用)拟制:日期2003-09-06审核:日期2003-09-06审核:日期2003-09-06批准:日期2003-09-06华为3Com技术有限公司
暂无评论