ubuntu学习笔记-网络服务配置

Filed under: Linux | No Comments »
Posted on

一、基本网络配置
1.基本配置文件
/etc/hosts:是将IP地址和主机名联系起来的简单文本文件。
格式:IP地址 全限定主机名 别名
举例:192.168.0.2 wanghui.shuke.com wanghui
说明:将IP地址映射到wanghui.shuke.com,并且分配一个备用主机名wanghui。

/etc/services:将服务的名字转成端口号。
注意:没有必要修改,已经包含了常用服务的端口号。
格式:主机服务名 端口号/端口类型 别名
举例:smtp 25/utp mail
说明:smtp服务使用25端口,使用utp连接方式,服务别名是mail。 Read the rest of this entry »

Tags : ,

ubuntu学习笔记-查询系统

Filed under: Linux | No Comments »
Posted on

man 在线手册

  • man ls 查看ls命令的范例
  • /do 在文中查询”do”的数据
  • manpath 查询man文件位置
  • find 查找文件
    Read the rest of this entry »

    Tags : ,

    ubuntu学习笔记-进程管理

    Filed under: Linux | 3 Comments »
    Posted on

    ps 显示当前进程

  • ps -l 显示详细信息
  • ps -u 以用户的格式显示
  • 相关字段说明

  • F 进程状态标志
  • S 进程状态代码
  • UID 进程执行者ID
  • PPID 父进程标识(parent process ID)
  • PRI 进程执行的优先级(priority)
  • NI 进程执行优先级的nice值,负值表示其优先级较高
  • SZ 进程占用的内存大小
  • WCHAN 进程或系统调用等待时的地址
  • Read the rest of this entry »

    Tags : ,