linux查usb使用记录方法,Linux使用记录

本文来自个人博客 sunyongfeng.com。博客的文章保持更新,此文可能不是最新状态。

善用/var/log

该目录存放系统日志,很多异常,比如进不了GUI、服务器连不上等问题,都可通过此目录内的log排查。

比如samba连不上,可通过cat /var/log/auth.log | grep samba查看samba失败的原因。

服务重启

很多服务如samba、tftp如果配置文件改了之后,需要通过sudo service smbd/tftp restart来重启服务。

硬件相关

网卡相关

以Ubuntu server 14.04为例。

静态IP配置

配置文件:/etc/network/interfaces,如eth0的配置。

sunnogo@sunyongfeng:~/Downloads$ cat /etc/network/interfaces

# This file describes the network interfaces available on your system

# and how to activate them. For more information, see interfaces(5).

# The loopback network interface

auto lo

iface lo inet loopback

# eth0, Realtek Fast Ethernet NIC

auto eth0

iface eth0 inet static

address 192.168.204.148

netmask 255.255.255.0

gateway

你可能感兴趣的:(linux查usb使用记录方法)