常用命令和配置整理

lsb_release -a 

FSG lsb_release v2.0 prints certain LSB (Linux Standard Base) and Distribution information.

  With no OPTION specified defaults to -v.

查看系统日志

/var/log/messages 

/var/log/secure 


看做哪些操作一般不太可能,   可以用history看用了哪些命令. 
last,lastb命令查看最近登陆的用户.

repo文件用于yum install *** 软件自动安装的寻址设置到本地目录/etc/yum.repos.d/888.repo

[iso]

baseurl=file:///mnt/iso

gpgkey=file:///mnt/iso/RPM-GPG-KEY-redhat-beta

failovermethod=priority

enabled=1

gpgcheck=0

mount 挂载远端目录

mkdir -p /mnt/share

mount -t cifs -o username=administrator,password=123456 192.168.1.20:Download /mnt/share

posted @ 2011-08-23 13:45  magicyang1987  阅读(158)  评论(0)    收藏  举报