RHCE笔记3

lsmode
modprobe
rmmod
modinfo

ping 127.0.0.1
echo "1" > /proc/sys/net/ipv4/icmp_echo_ignore_all #kernel参数设定
cat /proc/sys/net/ipv4/icmp_echo_ignore_all
/proc/sys #关机后设定取消

/etc/sysctl.conf #rc.sysctl
sysctl -p

dmesg #查看ring buffer
kernel=>klogd=>ring buffer=>/var/log/demesg

/etc/sysconfig/hwconf
/usr/share/hwdata #系统中的硬体设备
hwbrowser #系统侦测到的硬体设备

gnome-system-monitor
vmstat #虚拟机的使用情况
free
renice #设置优先权

mke2fs -b 5120 /dev/sda6 #bytes
mak2fs -L date /dev/sda6 #set volume lable

ext3增加了 journel #date buffer=>journel=>disk
mke2fs
dumpe2fs /dev/sda
tun2fs -j /dev/sda6 #由ext2到ext3

e2label /dev/sda1 #显示/dev/sda1的label
e2label /dev/sda1 /date #设置/dev/sda1的label为date
mount -L /lable /date #将label挂载到date目录
mount -o remount,ro /data
mount -o noexec /dev/sda6 /data #挂后,无执行权限
mount -t iso9660 -o ro,loop boot.iso /iso
showmount -e 192.168.0.144 #NFS share to discover
mount ip:/share /mnt #NFS connection
smbclient -L 192.168.0.165 -N #SMB discover
mount//ip/share_name /mnt -o username=admin%passwd

========auto.mater #开机自动挂载网络上的资源
/mnt/nfs /etc/auto.nfs --time=60
---auto.nfs
server1 -ro,soft,intr 192.168.0.144:/var/ftp
#soft down机时回显用户,intr允许中断,60秒后自动umount
service autofs restart


fuser #查看谁在使用filesystem
fuser -v /data
user -km /data #强制卸载filesystem

====开机自动挂载
/dev/sda6 /date ext3 defaults 1 2 #1:每一天备份(dump)一次;2:启动时候检测系统的优先级

=======FileSystem Attributes
lsattr #display file attributes
chattr #changes file attributes

=======分割swap分区
fdisk /dev/sda
n 82
partprobe
mkswap /dev/sda7
---vi /etc/fstab
/dev/sda7 swap #复制swap那行
swapon -s #show swap
swapon -a #add a new swap

=========network
/etc/modprobe.conf
mii-tool -v
mii-tool -F 100baseTx-FD #100M全双工
ifconfig eth0 IP netmask 255.255.255.0 broadcast 10.0.0.1
ifup/ifdown eth0 #启用网卡
/etc/sysconfig/network-scripts/ifcfg*
neat/netconfig/system-config-network #图形界面运行

===========Static Routes
route -n
route add -net 10.0.1.0 netmask 255.255.255.0 gw 192.168.0.144 #重启后失效
cd /etc/sysconfig/network-scripts/
---vi route-eth0
10.0.2.0/24 via 192.168.0.144

===========vi /etc/nsswitch.conf
hosts: files dns #先找本地的在找网络上的dns,file=etc/resolv.conf

============rpm
rpm -Uvh ftp://IP/share.rpm

剩下的后续,自己也在学习中,现在只看的这里,书是英文版本的,看的有点费劲~呵呵

你可能感兴趣的:(.net,虚拟机,F#,J#)