ctl+alt+f7 whatis ls info whereis man [chapter] command
重启
reboot
shutdown -r now
init 6
关机
halt
shutdown -h now
init 0
wc
slocate
tar cvf
tar xvf zxvf tar cvfj doc.tar.bz2 doc tar cvfz doc.tar.gz2 doc
tar cvfm /dev/fd0 ~ tar xvfM /dev/fd0
tar -tf doc.tar.bz2
echo $[ $a+$b ]
\的作用
ctrl+R
history
alt + 1 切换终端
gunzip
unzip
MBR
/usr/local
/opt
selinux--security enhanced linux
disable warn(permisssive) active(default)(enforcing)
noprobe mode and drive disks;
system-config-date 等图形系统配置工具.
mbr->grup->kernel(window或linux)
grand unified bootloader
mbr->grup->kernel->init初始化->/etc/inittab->/etc/rc.d/rc.sysinit->/etc/rc.d/rcX.d->/etc/rc.d/rc.local
daemon processes
a daemon proceess is a program that is run in the backgroup,providing some system service
two types of daemons:
standalone
transient -controlled by the "super-daemon" xinetd
ntsysv --level 35
chkconfig chkconfig gpm --level 123 off chconfig gpm --list
system-config-service
service gpm stop restart reload start status
/etc/init.d/gpm start stop restart
shutdown -h now halt power off init 0 关机命令
shhtdown -r now reboot init 6 ctrl+alt+del(virtual console)
lsmod modprobe
echo "1" >/proc/sys/net/ipv4/icmp_echo_ignore_all
ping 127.0.01
cat /proc/sys/net/ipv4/icmp_echo_ignore_all
sysctl is called at boot time by rc.sysinit and uses settings in /etc/sysctl.conf
kudzu /etc/sysconfig/hwconf /usr/share/hwdata
hwbrowser
top gnome-system-monitor vmstat free
renice nice指定程序的优先权
The Kernel Source Tree and Documentation /usr/src/
dmesg | grep pcnet32
system-config-network
route -n
ifdown etho ifup eth0
rounte add -net 10.0.1.0 netmask 255.255.255.0 gw 192.168.0.144
vi /etc/sysconfig/netwok-script/route-eth0 图形工具neat
vi /etc/nsswitch.conf 改变解析顺序
vi /etc/resolv.conf
host prettyboy
dig prettyboy
ping, traceroute,mtr
/var/lib/rpm
rpm -ivh来安装内核,一般不用rpm -Uvh安装内核
rpm -qip 查看某一个rpm的信息 rpm -qlp 某一个rpm的目录 man rpm rpm -Va rpm -V
rpm2cpio 把rpm转cpio cpio -it rpmdb-redhat是一个安装时提示,相依的包
rpm -ivh xsane --aid (自动安装相依的包)
system-config-packages
uname -r
read hat network(RHN)
www.redhat.com.cn
system-config-kickstart
less /etc/passwd
password aging policies /etc/login.defs
change [option] username
less /etc/shadow
chage -l user6
chage -d 2005-07-22 user6
chage -m 1 user1
chage -M 7 user1
chage -i 4 user1
/etc/profile ->/etc/profile.d/*.sh -> ~/.bash_profie-> ~/.bashrc ->/etc/bashrc 登录时执行顺序
~/.bashrc ->/etc/bashrc ->/etc/profile.d/*sh logout执行顺序
su - oracle -c ls
sudo /etc/sudoers
visudo 编辑/etc/sudoers
sudo /etc/init.d/httpd restart
system-config-authentication system-config-authentication --nox authconfig
NIS服务器以后再学
LDAP
vi /etc/bashrc来修改umask的值
acl机制
cups打印的 /etc/cups/cupsd.conf /etc/cups/printers.conf
lpadmin system-config-printer system-config-printer
man crontab
crontab [-u user] file
crontab [-u user] [-l | -r | -e][-i]
/etc/cron.allow /etc/cron.deny
/etc/crontab /etc/cron.hourly /etc/cron.daily /etc/cron.weekly /etc/cron.monthly
tmpwatch /etc/cron.daily/tmpwatch
logrotate /etc/cron.daily/logrotate /etc/logrotate.conf
system logging /etc/syslog.conf
dmesg 内核log信息
echo test >/dev/console
dump /restore /etc/dumpdates
df -h
dump -0 -f ~/backup /dev/sda1 dump -0 -u -f ~/backup /dev/sda1
vi /etc/dumpdates
using cpio
find test/ |cpio -o >test.cpio
cpio -it < test.cpio查看 解开 cpio -ld tar -czvf root@example1:/var/home.tar.gz /home 备份到远程
dump -0uf root@example1:/var/home.dump /home
system-config-display
ssh -Y 192.168.0.99
dd if=/dev/zero f=/dev/sda bs=446 count=1 (破坏MBR)
linux rescue
chroot /mnt/sysimage/
grub-install /dev/sda
RHCE 253
chkconfig --list httpd chkconfig httpd on chkconfig httpd --del chkconfig httpd --add
cp /etc/init.d/httpd /etc/init.d/myprog chkconfig myprog --add
xineted /etc/xinetd.conf /etc/xinetd.d/
/etc/sysconfig/
selinux sestatus vi /etc/sysconfig/selinux
setenforce 0 setenforce 1 getsebool httpd_disable_trans setsebool -P httpd_disable_trans=1
vi /etc/selinux/targeted/booleans system-config-securitylevel ps -Z chcon runcon -t cat /etc/passwda
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/11364208/viewspace-310407/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/11364208/viewspace-310407/