[»ù´¡]³£ÓÃlinuxÃüÁî ±¸²é
=================Îļþ²Ù×÷==================
²»Ê¹ÓÃfindÖ±½ÓʹÓÃͨÅä·û¶ÔÎļþ²Ù×÷£º
cp ./*/*attch* /testout_attch/
ÎļþÄÚÈÝÏÔʾ
head/tail:
¡¡¡¡## (1) displays the first 6 lines of a file
¡¡¡¡head -6 readme.txt
¡¡¡¡## (2) displays the last 25 lines of a file
¡¡¡¡tail -25 mail.txt
¡¡¡¡## (3) display the file from 11 to 20
¡¡¡¡head -20 file | tail -10
tail -f Ë¢ÐÂÏÔʾ
==================°²×°Ð¶ÔØ==================
rmpÏà¹Ø£º
²é¿´ÊÇ·ñ°²×° rpm -qa | grep
ÊÇ·ñ°²×° rpm -e (–nodeps) Èí¼þ°ü
===================ÔËÐÐ===================
²é¿´ÀúÊ·£º
history|less
£¨export HISTTIMEFORMAT='%F %T 'Ôö¼Ó»·¾³±äÁ¿ÏÔʾʱ¼ä£©
!N ÔËÐеÚNÌõÖ¸Áî¡£
===================´ÅÅÌ===================
ÎļþÎļþ¼Ð´óС£º
du --max-depth=N -h(--human-readable)
du -a(all)b(bytes) = ll
´ÅÅ̿ռ䣺
fdisk -l = fdisk /dev/sda1 ->p
df
===================½ø³Ì===================
²é¿´½ø³Ì£º
ps -ef|grep httpd|wc -l
ps -auxf
===================ÍøÂç===================
²é¿´¶Ë¿Ú£º
netstat -an|grep -i "80"|wc -l
²é¿´dns°üÀ¨ns¼Ç¼£¬a¼Ç¼£¬mx¼Ç¼
²éÕÒyahoo.comµÄa¼Ç¼£º
dig yahoo.com a +noall +answer
²éÕÒyahoo.com mx¼Ç¼µÄÁÐ±í£º
dig yahoo.com mx +noall +answer
²éÕÒyahoo.comµÄȨÍþdns£º
dig yahoo.com ns +noall +answer
²éѯÉÏÃæËùÓеļǼ£º
dig yahoo.com any +noall +answer
===================²éѯ===================
find -anewer
(touch -d xx)
find -exec commond "{}"
(find .-name '*.zip' -exec unzip "{}"\;)
===================ѹËõ====================
tarÃüÁ
-c£ºÑ¹Ëõ
-x£º½âѹ
-t£º²é¿´ÄÚ
Ïà¹ØÎĵµ£º
zz http://yushan.javaeye.com/blog/261148
Ò».jdk1.4Ð¶ÔØ
ÓÉÓÚredhat Enterprise 5 ÖÐ×Ô´ø°²×°ÁËjdk1.4µÄ£¬ËùÒÔÔÚ°²×°jdk1.6ǰÎÒ°Ñjdk1.4µÄжÁË£¬²½ÖèÈçÏ£º
1.´ò¿ªÖÕ¶ËÊäÈë#rpm -qa | grep gcj
£¬ÆäÏÖʵÄÚÈÝÓУº
java
-1.4.2-gci-compat.........
java
-1.4.2-gcj-compat-devel.....(¾ßÌåÍüÁËÊÇʲà ......
ÔÚrootģʽÏÂ: # #delete files in trash # #date:2010-3-5 # #maker:tootwo # dir=/root/.Trash [ -d $dir ] x=$? y=0 if test $x -eq $y then (for i in $dir/* do &nbs ......
ÎÒÃÇÒ»°ãʹÓÓdate -s”ÃüÁîÀ´ÐÞ¸Äϵͳʱ¼ä¡£±ÈÈ罫ϵͳʱ¼äÉ趨³É2010Äê3ÔÂ5ÈÕµÄÃüÁîÈçÏ¡£
#date -s 03/05/10
½«ÏµÍ³Ê±¼äÉ趨³ÉÖÐÎç8µã52·Ö0ÃëµÄÃüÁîÈçÏ¡£
#date -s 08:52:00
×¢Ò⣬ÕâÀï˵µÄÊÇϵͳʱ¼ä£¬ÊÇlinuxÓɲÙ×÷ϵͳά»¤µÄ¡£
ÔÚϵͳÆô¶¯Ê±£¬Linux ......
ifconfig eth0 ÐÂIP
È»ºó±à¼/etc/sysconfig/network-scrIPts/ifcfg- eth0£¬ÐÞ¸ÄIP
Ò»¡¢ÐÞ¸ÄIPµØÖ·
[aeolus@db1 network-scrIPts]$ vi ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
IPADDR=219.136.241.211
NETMASK=255.255.255.128
GATEWAY=219.136.241.254
¶þ¡¢ÐÞ¸ÄÍø¹Ø
vi /etc/sysconfig/network
N ......
void __init mem_init(void)
{
unsigned int codepages, datapages, initpages;
int i, node;
codepages = &_etext - &_text;//Äں˴úÂë¶ÎµÄ´óС¡£
datapages = &_end - &__data_start;//ÄÚºËÊý¾Ý¶ÎµÄ´óС¡£
initpages = &__init_end - &__i ......