作者在 2010-01-23 20:52:28 发布以下内容
前言
........................................................................................
.................11
什么是
Ubuntu?.................................................................................
.............................................................11
Ubuntu 承
诺......................................................................................
...............................................................11
安装升级命令
........................................................................................
12
查看软件 xxx 安装内容
........................................................................................
........................................12
查找软件库中的软件
........................................................................................
............................................12
显示系统安装包的统计信息
........................................................................................
................................12
显示系统全部可用包的名称
........................................................................................
................................12
显示包的信息
........................................................................................
........................................................12
查找文件属于哪个包
........................................................................................
............................................12
查看已经安装了哪些包
........................................................................................
........................................12
查询软件 xxx 依赖哪些包
........................................................................................
....................................13
查询软件 xxx 被哪些包依赖
........................................................................................
................................13
增加一个光盘源
........................................................................................
....................................................13
系统升级
........................................................................................
................................................................13
清除所有已删除包的残馀配置文件
........................................................................................
....................13
编译时缺少 h 文件的自动处理
........................................................................................
............................14
查看安装软件时下载包的临时存放目录
........................................................................................
............14
备份当前系统安装的所有包的列表
........................................................................................
....................14
从上面备份的安装包的列表文件恢复所有包
........................................................................................
....14
清理旧版本的软件缓存
........................................................................................
........................................14
清理所有软件缓存
........................................................................................
................................................14
删除系统不再使用的孤立软件
........................................................................................
............................14
查看包在服务器上面的地址
........................................................................................
................................14
彻底删除 Gnome
........................................................................................
....................................................15
彻底删除 KDE
........................................................................................
........................................................15
一键安装 LAMP 服务
........................................................................................
..........................................15
删除旧内核
........................................................................................
............................................................15
导入 ppa 源的 key 值
........................................................................................
.............................................15
系统管理命
令......................................................................................
....16
查看内核
........................................................................................
................................................................16
查看 Ubuntu 版本
........................................................................................
..................................................16
查看内核加载的模块
........................................................................................
............................................16
查看 PCI 设备
........................................................................................
........................................................16
查看 USB 设备
........................................................................................
.......................................................16
查看网卡状态
........................................................................................
........................................................16
激活网卡的 Wake-on-LAN
........................................................................................
...................................16
查看 CPU 信息
........................................................................................
.......................................................17
显示当前硬件信息
........................................................................................
................................................17
获取 CPU 序列号或者主板序列号
........................................................................................
......................17
显示当前内存大小
........................................................................................
................................................17
查看硬盘温度
........................................................................................
........................................................17
第4页 共 65 页
显示系统运行时间
........................................................................................
................................................17
查看硬盘的分区
........................................................................................
....................................................18
硬盘分区
........................................................................................
................................................................18
硬盘格式化
........................................................................................
............................................................18
硬盘检查
........................................................................................
................................................................18
分区挂载
........................................................................................
................................................................18
分区卸载
........................................................................................
................................................................19
只读挂载 ntfs 分区
........................................................................................
................................................19
可写挂载 ntfs 分区
........................................................................................
................................................19
挂载 fat32 分区
........................................................................................
......................................................19
挂载共享文件
........................................................................................
........................................................19
挂载 ISO 文件
........................................................................................
........................................................19
查看 IDE 硬盘信息
........................................................................................
................................................19
查看软 raid 阵列信息
........................................................................................
............................................19
参看硬 raid 阵列信息
........................................................................................
............................................20
查看 SATA 硬盘信息
........................................................................................
.............................................20
查看硬盘剩余空间
........................................................................................
................................................20
查看目录占用空间
........................................................................................
................................................20
优盘没法卸载
........................................................................................
........................................................21
使用文件来增加交换空间
........................................................................................
....................................21
查看硬盘当前读写情况
........................................................................................
........................................21
进程管理命
令......................................................................................
....22
查看当前的内存使用情况
........................................................................................
....................................22
连续监视内存使用情况
........................................................................................
........................................22
动态显示进程执行情况
........................................................................................
........................................22
查看当前有哪些进程
........................................................................................
............................................22
查看目前登入用户运行的程序
........................................................................................
............................22
统计程序的内存耗用
........................................................................................
............................................23
按内存从大到小排列进程
........................................................................................
....................................23
按 cpu 利用率从大到小排列进程
........................................................................................
........................23
查看当前进程树
........................................................................................
....................................................23
中止一个进程
........................................................................................
........................................................23
强制中止一个进程
........................................................................................
................................................23
图形方式中止一个程序
........................................................................................
........................................23
查看进程打开的文件
........................................................................................
............................................23
显示开启文件 abc.txt 的进程
........................................................................................
...............................24
显示 22 端口现在运行什么程序
........................................................................................
..........................24
显示 nsd 进程现在打开的文件
........................................................................................
.............................24
在后台运行程序,退出登录后,并不结束程序
........................................................................................
24
在后台运行交互式程序,退出登录后,并不结束程序
...........................................................................24
详细显示程序的运行信息
........................................................................................
....................................24
增加系统最大打开文件个数
........................................................................................
................................25
清除僵死进程
........................................................................................
........................................................25
将大于 120M 内存的 php-cgi 都杀掉
........................................................................................
...................25
Linux 系统中如何限制用户进程 CPU 占用率
........................................................................................
....25
第5页 共 65 页
ADSL 拔号相关命
令...............................................................................26
配置 ADSL
........................................................................................
.............................................................26
ADSL 手工拨号
........................................................................................
.....................................................26
激活 ADSL
........................................................................................
.............................................................26
断开 ADSL
........................................................................................
.............................................................26
查看拨号日志
........................................................................................
........................................................26
如何设置动态域名
........................................................................................
................................................26
网络管理命令
........................................................................................
27
根据 IP 查网卡地址
........................................................................................
...............................................27
根据 IP 查电脑名
........................................................................................
...................................................27
查看当前 IP 地址
........................................................................................
...................................................27
查看当前外网的 IP 地址
........................................................................................
.......................................27
查看当前监听 80 端口的程序
........................................................................................
..............................27
查看当前网卡的物理地址
........................................................................................
....................................27
同一个网卡增加第二个 IP 地址
........................................................................................
...........................27
立即让网络支持 nat
........................................................................................
...............................................28
查看路由信息
........................................................................................
........................................................28
手工增加一条路由
........................................................................................
................................................28
手工删除一条路由
........................................................................................
................................................28
修改网卡 MAC 地址的方法
........................................................................................
.................................28
统计当前 IP 连接的个数
........................................................................................
.......................................29
统计当前大于 100 个 IP 包的 IP 地址段
........................................................................................
..............29
屏蔽 IPV6
........................................................................................
................................................................29
察看当前网络连接状况以及程序
........................................................................................
........................29
查看网络连接状态
........................................................................................
................................................29
查看当前系统所有的监听端口
........................................................................................
............................29
查看网络的当前流量
........................................................................................
............................................29
查看域名的注册备案情况
........................................................................................
....................................30
查看到某一个域名的路由情况
........................................................................................
............................30
重新从服务器获得 IP 地址
........................................................................................
...................................30
从当前页面开始镜像整个网站到本地
........................................................................................
................30
如何多线程下载
........................................................................................
....................................................30
如何查看 HTTP 头
........................................................................................
................................................30
快速使用 http 方式共享目录
........................................................................................
................................30
安全管
理......................................................................................
............31
检查本地是否存在安全隐患
........................................................................................
................................31
如何安装杀毒软件
........................................................................................
................................................31
Linux 下可以使用的商业杀毒软件
........................................................................................
.....................31
服务管理命
令......................................................................................
....32
添加一个服务
........................................................................................
........................................................32
删除一个服务
........................................................................................
........................................................32
临时重启一个服务
........................................................................................
................................................32
第6页 共 65 页
临时关闭一个服务
........................................................................................
................................................32
临时启动一个服务
........................................................................................
................................................32
用户管理
........................................................................................
........33
增加用户
........................................................................................
................................................................33
删除用户
........................................................................................
................................................................33
修改当前用户的密码
........................................................................................
........................................33
修改用户密码
........................................................................................
....................................................33
修改用户资料
........................................................................................
........................................................33
如何禁用/启用某个帐户
........................................................................................
.......................................33
增加用户到 admin 组,让其有 sudo 权限
........................................................................................
...........33
如何切换到其他帐号(需要该用户的密
码).....................................................................................
..............34
如何切换到 root 帐号
........................................................................................
............................................34
环境变量设置
........................................................................................
34
配置默认 Java 使用哪个
........................................................................................
.......................................34
给 apt 设置代理
........................................................................................
......................................................34
修改系统登录信息
........................................................................................
................................................34
使用 eclipse 等编译器的软件换回 sun 的编译器方法
................................................................................34
中文环境配
置......................................................................................
....35
切换输入法引擎
........................................................................................
....................................................35
转换文件名由 GBK 为 UTF8
........................................................................................
................................35
批量转换 src 目录下的所有文件内容由 GBK 到 UTF8
..............................................................................35
转换文件内容由 GBK 到 UTF8
........................................................................................
............................35
批量转换文件内容由 GBK 到 UTF8
........................................................................................
....................35
转换 mp3 标签编码
........................................................................................
..............................................35
控制台下显示中文
........................................................................................
................................................36
登录远程 Windows 中文 FTP
......................................................................................
...............................36
java6 的安装和中文设置
........................................................................................
......................................36
PDF 文件乱码
........................................................................................
........................................................36
Flash 中文乱码
........................................................................................
.......................................................37
增加农历
........................................................................................
................................................................37
unzip 中文文件名乱码
........................................................................................
..........................................37
ibus 跟
随......................................................................................
.....................................................................37
文件管理
........................................................................................
........38
一屏查看文件内容
........................................................................................
..............................................38
不显示以#开头的行
........................................................................................
............................................38
分页查看文件内容
........................................................................................
................................................38
可控分页查看文件内容
........................................................................................
........................................38
带行号显示文件的内容
........................................................................................
........................................38
去除文件中的行号
........................................................................................
................................................38
删除文件中的重复行
........................................................................................
............................................38
根据字符串匹配来查看文件部分内容
........................................................................................
................39
显示包含或者不包含字符串的文件名
........................................................................................
................39
第7页 共 65 页
快速查找某个文件
........................................................................................
................................................39
创建两个空文件
........................................................................................
....................................................39
递归式创建一些嵌套目录
........................................................................................
....................................39
递归式删除嵌套目录
........................................................................................
............................................39
回当前用户的宿主目录
........................................................................................
........................................39
查看当前所在目录的绝对路经
........................................................................................
............................40
获得文件的后缀名
........................................................................................
................................................40
去除文件的后缀名
........................................................................................
................................................40
列出当前目录下的所有文件
........................................................................................
................................40
移动路径下的文件并改名
........................................................................................
....................................40
复制文件或者目录
........................................................................................
................................................40
查看文件类型
........................................................................................
........................................................40
对比两个文件之间的差异
......................................................................................
....................................40
显示 xxx 文件倒数 6 行的内容
........................................................................................
.............................40
让 tail 不停地读取最新的内容
........................................................................................
.............................41
查看文件中间的第五行到第 10 行的内容
........................................................................................
..........41
查找关于 xxx 的命令
........................................................................................
............................................41
通过 ssh 传输文件
........................................................................................
.................................................41
把所有文件的后辍由 rm 改为 rmvb
........................................................................................
.....................41
把所有文件名中的大写改为小写
........................................................................................
........................41
删除特殊文件名的文件,如文件名:--help.txt
........................................................................................
..42
查看当前目录的子目录
........................................................................................
........................................42
将当前目录下最近 30 天访问过的文件移动到上级 back 目录
.................................................................42
查找当前目录下最近 30 天访问过的文件打包备份
..................................................................................42
显示系统服务器一小时以内的包含 xxxx 的所有邮件
............................................................................42
将当前目录下最近 2 小时到 8 小时之内的文件显示出来
........................................................................42
删除修改时间在 30 天之前的所有文件
........................................................................................
..............42
删除创建时间在 30 天之前的所有文件
........................................................................................
..............42
查找 guest 用户的以 avi 或者 rm 结尾的文件并删除掉
.............................................................................42
查找不以 java 和 xml 结尾,并 7 天没有使用的文件删除掉
.......................................................................43
查找目录下所有有包含 abcd 文字的文本文件,并替换为 xyz
.................................................................43
删除当前目录里面所有的 .svn 目录
........................................................................................
..................43
删除当前目录所有以“~”结尾的临时文件
........................................................................................
........43
统计当前文件个数
........................................................................................
................................................43
统计当前目录下所有 jpg 文件的尺寸
........................................................................................
.................43
统计当前目录个数
........................................................................................
................................................43
统计当前目录下占空间最大的前 10 名文件或目录
..................................................................................43
显示当前目录下 2006-01-01 的文件名
........................................................................................
...............43
备份当前系统到另外一个硬盘
........................................................................................
........................44
使用 ssh 方式同步远程数据到本地目录
........................................................................................
.............44
使用 ftp 方式同步远程数据到本地目录
........................................................................................
..............44
去掉文件中的^M
........................................................................................
....................................................44
转换 Dos 文本文件到 Unix 文本文件
........................................................................................
..................44
转换 bin/cue 到 iso 文件
........................................................................................
........................................44
转换目录到 iso 文件
........................................................................................
..............................................45
转换 CD 到 iso 文件
........................................................................................
...............................................45
第8页 共 65 页
影像
........................................................................................
................45
如何保存串流视频(mms/rtsp)
........................................................................................
...............................45
批量将 rmvb 转为 avi
........................................................................................
.............................................45
批量将 DVD 转为 avi
........................................................................................
.............................................45
批量将任何格式的电影转为 ogv
........................................................................................
..........................45
批量将 rmvb 格式的电影转为 ogv
........................................................................................
........................45
利用 gst 来转换任意电影为 ogv
........................................................................................
............................46
批量转换任意文件为 ipod touch 使用的 mp4
........................................................................................
......46
图形界面为 ipod touch 转 mp4 的方法
........................................................................................
................47
合并多个 rm 文件为一个 avi 文件
........................................................................................
....................47
CD 抓轨为 mp3 (有损)
........................................................................................
..........................................47
CD 抓轨为 Flac (无损)
........................................................................................
..........................................47
ape 转换为 flac
........................................................................................
.......................................................47
ape/flac 转换为 mp3
........................................................................................
..............................................48
批量将 ape 转为 mp3
........................................................................................
...........................................48
批量将 flac 转为 mp3
........................................................................................
...........................................48
批量将 svg 转为 png
........................................................................................
...............................................48
批量转换格式到 mp3
........................................................................................
.............................................48
批量缩小图片到 30%
........................................................................................
.............................................48
批量转换 jpg 到 png
........................................................................................
................................................49
如何压缩 png 图片
........................................................................................
................................................49
批量把 pdf 转换为 txt 并格式化
........................................................................................
...........................49
转换 pdf 到 png
........................................................................................
.....................................................49
获取 jpg 的扩展信息(Exif)
........................................................................................
.....................................49
获取视频文件 xxx.avi 的信息
........................................................................................
.............................49
压缩
........................................................................................
................50
增加 7Z 压缩软件
........................................................................................
.................................................50
增加 rar 软件压缩和解压缩支持
........................................................................................
........................50
解压缩 xxx.tar.gz
........................................................................................
...................................................50
解压缩 xxx.tar.bz2
........................................................................................
.................................................50
压缩 aaa bbb 目录为 xxx.tar.gz
........................................................................................
..............................50
压缩 aaa bbb 目录为 xxx.tar.bz2
........................................................................................
............................50
增加 lha 支持
........................................................................................
........................................................50
增加解 cab 文件支持
........................................................................................
...........................................50
Nautilus
........................................................................................
...........51
显示隐藏文件
........................................................................................
........................................................51
显示地址栏
..................................................
文章评论,共0条