Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

LINUX³£ÓÃÃüÁî(ת)

1.# ±íʾȨÏÞÓû§(Èç:root),$ ±íʾÆÕͨÓû§
¿ª»úÌáʾ
ogin:ÊäÈëÓû§Ãû
password:ÊäÈë¿ÚÁî Óû§ÊÇϵͳע²áÓû§³É¹¦µÇ½ºó£¬¿ÉÒÔ½øÈëÏàÓ¦µÄÓû§»·¾³.
Í˳öµ±Ç°shell,ÊäÈë:exit
2.useradd netseek Ìí¼ÓÒ»¸önetseekÓû§
passwd netseek ¸ønetseekÕâ¸öÓû§ÉèÖÃÃÜÂë.
(/etc/passwd /etc/group)
userdel netseek ɾ³ýÕ˺Å
userdel -r netseek ɾ³ýÕ˺ÅÁ¬Í¬×Ô¼ÒĿ¼.
[¸üÏêϸµÄ²Ù×÷Çë²ÎÔÄman page,ºÍÕ˺ŹÜÀíƪ]
3.²é¿´ÃüÁî
ls -l ÏÔʾÎļþÁбí
ls -al -a ÏÔʾËùÓеµ°¸¼°Ä¿Â¼ (lsÄÚ¶¨½«µµ°¸Ãû»òĿ¼Ãû³Æ¿ªÍ·Îª"."µÄÊÓΪÒþ²Øµµ£¬²»»áÁгö)
ls -al |grep '^d' ÏÔʾĿ¼
ls -al |grep '^[^d]' ÔÚÒ»¸öĿ¼Öвéѯ²»°üº¬Ä¿Â¼µÄËùÓÐÎļþ
ls -sh (man ls ²é¿´man°ïÖú.)
linux¼¸ÖÖÎļþÀàÐÍ:
d ±íʾ´ËÎļþÊÇÒ»¸öĿ¼
- ±íʾ´ËÎļþÊÇÒ»¸öÆÕͨÎļþ
b ±íʾ´ËÎļþÊÇÒ»¸öÌØÊâµÄ¿éÉ豸I/OÎļþ
c ±íʾ´ËÎļþÊÇÒ»¸öÌØÊâµÄ×Ö·ûÉ豸I/OÎļþ
l ±íʾ´ËÎļþÊÇÒ»¸öÁ¬½ÓÎļþ¡£ÔÚÆäÎļþÃû³Æºó½ô¸úÓëËüÁ¬½ÓµÄÎļþ·¾¶¼°Ãû³Æ
file ÃüÁîͨ¹ý̽²âÎļþÄÚÈÝÅжÏÎļþÀàÐÍ
4.½¨Á¢ÎļþºÍĿ¼
touch 1.txt
cat > 2.txt (Óö¨Ïò·û´´½¨Îļþ£¬ÌîдÄÚÈݺ󣬰´ctrl d±£´æÄÚÈÝ)
mkdir mywork ½¨Á¢myworkÕâ¸öĿ¼
5.¿½±´Îļþ»òĿ¼
cp filename1 filename2
cp -r dir1 dir2 ¸´ÖÆĿ¼
cp -rf ²ÎÊýfÊÇɾ³ýÒѾ­´æÔÚµÄÄ¿±êÎļþ¶ø²»Ìáʾ
cp -i ²ÎÊýiºÍfÏà·´£¬ÔÚ¸²¸ÇÄ¿±êÎļþ֮ǰ½«¸ø³öÌáʾҪÇóÓû§È·ÈÏ£¬»Ø´ðyʱĿ±êÎļþ½«±»¸²¸Ç£¬Êǽ»»¥Ê½¿½±´.
6.ɾ³ýÎļþºÍĿ¼(ɾ³ýÎļþ»òĿ¼¶¼¿ÉÒÔÓÃrm¸ã¶¨)
rm 1.c //½«1.cÕâ¸öÎļþɾ³ý
rm -rf (Ç¿ÖÆɾ³ýÎļþ»òĿ¼,ɾ³ýʱ²»Ìáʾ.)
7.ÒÆ×ßĿ¼»òÕ߸ÄÎļþÃû
mv [opitons] Ô´Îļþ»òĿ¼ Ä¿±êÎļþ»òĿ¼
[options]Ö÷Òª²ÎÊý
-i:½»»¥·½Ê½²Ù×÷£¬Èç¹ûmv²Ù×÷½«µ¼Ö¶ÔÒÑ´æÔÚµÄÄ¿±êÎļþµÄ¸²¸Ç£¬´ËʱϵͳѯÎÊÊÇ·ñÖØд£¬ÒªÇóÓû§»Ø´ð“y”»ò“n”£¬
ÕâÑù¿ÉÒÔ±ÜÃâÎ󸲸ÇÎļþ.
-f:½ûÖ¹½»»¥²Ù×÷¡£mv²Ù×÷Òª¸²¸Çij¸öÒÑÓеÄÄ¿±êÎļþʱ²»¸øÈκÎָʾ£¬Ö¸¶¨´Ë²ÎÊýºói²ÎÊý½«²»ÔÙÆð×÷Óá£
mv hello ../ ½«helloĿ¼»òÕßÎļþÒƶ¯ÉÏÒ»¼¶.
8.alias ±ðÃû
alias dir='ls -l' ÊäÈëdir£¬Æäʵ¾ÍÏ൱ÓÚÖ´ÐÐÁËls -l
9.ȨÏ޵ĿØÖÆ(rwx 421)
chmod x hello.sh ¸³ÓÚ¿ÉÖ´ÐÐȨÏÞ.
(Ïêϸ½éÉÜÒ»ÏÂȨÏ޵ĿØÖÆ)
chmod ÃüÁî ȨÏÞÐÞ¸Ä Ó÷¨£ºchmod һλ8½øÖÆÊý filename (rwx 421)
¡¡eg: ch


Ïà¹ØÎĵµ£º

linuxÖÐ jdk µÄжÔغͰ²×°

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.....(¾ßÌåÍüÁËÊÇʲà ......

linuxÄں˳õ̽.ϵͳºǫ́Æô¶¯¼òµ¥½éÉÜ


linuxÄں˳õ̽.ϵͳºǫ́Æô¶¯¼òµ¥½éÉÜ
Ò»¡¢Ðò
  LinuxϵͳÊÇÈçºÎÆô¶¯£¬Õâ¶Ô½«À´Ó¦Óÿª·¢ÊÇÊ®·ÖÖØÒªµÄ£¬±¾ÎÄÕûÀí×ÔLinux
ÂÛ̳£¬½áºÏMoto E680£¬ÏÄÐÂE600ºÍ·ÉÀûÆÖ968½øÐмòµ¥½éÉÜ
¶þ¡¢ÖØÒªÌáʾ
    ΪÁË·½±ã¸üºÃµÄÀí½â±¾ÎÄ£¬ÌṩÏÂÃæÁ´½á¡£
    ȫϵÁеÄÎÄÕµØÖ·£¬ÊÖ»úÓ¦Óÿ ......

LinuxµÄtailÃüÁî

tailÃüÁîÓÃ;
´ÓÖ¸¶¨µã¿ªÊ¼½«Îļþдµ½±ê×¼Êä³ö¡£Ê¹ÓÃtailÃüÁîµÄ-fÑ¡Ïî¿ÉÒÔ·½±ãµÄ²éÔÄÕýÔڸıäµÄÈÕÖ¾Îļþ£¬tail -f
filename»á°ÑfilenameÀï×îβ²¿µÄÄÚÈÝÏÔʾÔÚÆÁÄ»ÉÏ£¬²¢ÇÒ²»µ«Ë¢Ð£¬Ê¹Äã¿´µ½×îеÄÎļþÄÚÈÝ¡£
Óï·¨
±ê×¼Óï·¨
tail [ -f ] [ -c Number | -n Number | -m Number | -b
Number | -k Number ] [ File ] ......

[»ù´¡]³£ÓÃ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
¡¡¡¡# ......

[»ù´¡]LinuxµÄdnsÖ÷»úÃûµÈÉèÖÃ

dns
/etc/resolv.conf
Ö÷»úÃû
1)#hostname tt.com
2)/etc/sysconfig/networkÖеÄhostname
3)ÐÞ¸Ä/etc/hostsÎļþ
=>sendmail->/etc/mail/local-host-names

gateway
etc/sysconfig/network
ip
/etc/sysconfig/network-scripts/ifcfg-eth0
1. ±ä¸üµ±Ç°Ö÷»úÃû
Á½ÖÖ·½·¨£º echo new-hostname > /proc/s ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ