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

Linux ³£ÓÃÃüÁ


1. ×î³£ÓõÄÃüÁîÁбí
ÏÂÃæÁгöÊ®¸öÔÚʹÓÃlinux¹ý³ÌÖÐʹÓÃƵÂÊ×î¸ßµÄÃüÁî¡£ÕâÀïÖ»×÷¼òµ¥½éÉÜ£¬¾ßÌåÓ÷¨Çë²Î¿¼ºóÃæÄÚÈÝ¡£
cat£¬ÏÔʾÎļþÄÚÈÝ¡£
cd£¬¸Ä±äĿ¼·¾¶¡£
cp£¬¸´ÖÆÎļþ¡£
find£¬²éÕÒÎļþ¡£
grep£¬ËÑË÷¡¢¹ýÂËÐÅÏ¢¡£
ls£¬ÁгöĿ¼ÐÅÏ¢¡£
more£¬·ÖÒ³ÏÔʾ¡£
rm£¬É¾³ýÎļþ»òĿ¼¡£
vi£¬µ÷ÓÃviÎı¾±à¼­Æ÷¡£
who£¬ÏÔʾµÇ¼Óû§ÐÅÏ¢¡£
2. chmod----¸Ä±äÒ»¸ö»ò¶à¸öÎļþµÄ´æȡģʽ(mode)
chmod [options] mode files
Ö»ÄÜÎļþÊôÖ÷»òÌØȨÓû§²ÅÄÜʹÓøù¦ÄÜÀ´¸Ä±äÎļþ´æȡģʽ¡£mode¿ÉÒÔÊÇÊý×ÖÐÎʽ»òÒÔwho opcode permissionÐÎʽ±íʾ¡£whoÊÇ¿ÉÑ¡µÄ£¬Ä¬ÈÏÊÇa(ËùÓÐÓû§)¡£Ö»ÄÜÑ¡ÔñÒ»¸öopcode(²Ù×÷Âë)¡£¿ÉÖ¸¶¨¶à¸ömode£¬ÒÔ¶ººÅ·Ö¿ª¡£
options£º
-c£¬--changes
Ö»Êä³ö±»¸Ä±äÎļþµÄÐÅÏ¢
-f£¬--silent£¬--quiet
µ±chmod²»ÄܸıäÎļþģʽʱ£¬²»Í¨ÖªÎļþµÄÓû§
--help
Êä³ö°ïÖúÐÅÏ¢¡£
-R£¬--recursive
¿ÉµÝ¹é±éÀú×ÓĿ¼£¬°ÑÐÞ¸ÄÓ¦µ½Ä¿Â¼ÏÂËùÓÐÎļþºÍ×ÓĿ¼
--reference=filename
²ÎÕÕfilenameµÄȨÏÞÀ´ÉèÖÃȨÏÞ
-v£¬--verbose
ÎÞÂÛÐÞ¸ÄÊÇ·ñ³É¹¦£¬Êä³öÿ¸öÎļþµÄÐÅÏ¢
--version
Êä³ö°æ±¾ÐÅÏ¢¡£
who
u
Óû§
g
×é
o
ÆäËü
a
ËùÓÐÓû§(ĬÈÏ)
opcode
+
Ôö¼ÓȨÏÞ
-
ɾ³ýȨÏÞ
=
ÖØзÖÅäȨÏÞ
permission
r
¶Á
w
д
x
Ö´ÐÐ
s
ÉèÖÃÓû§(»ò×é)µÄIDºÅ
t
ÉèÖÃÕ³×Åλ(sticky bit)£¬·ÀÖ¹Îļþ»òĿ¼±»·ÇÊôÖ÷ɾ³ý
u
Óû§µÄµ±Ç°È¨ÏÞ
g
×éµÄµ±Ç°È¨ÏÞ
o
ÆäËûÓû§µÄµ±Ç°È¨ÏÞ
×÷ΪѡÔñ£¬ÎÒÃǶàÊýÓÃÈýλ°Ë½øÖÆÊý×ÖµÄÐÎʽÀ´±íʾȨÏÞ£¬µÚһλָ¶¨ÊôÖ÷µÄȨÏÞ£¬µÚ¶þλָ¶¨×éȨÏÞ£¬µÚÈýλָ¶¨ÆäËûÓû§µÄȨÏÞ£¬Ã¿Î»Í¨¹ý4(¶Á)¡¢2(д)¡¢1(Ö´ÐÐ)ÈýÖÖÊýÖµµÄºÍÀ´È·¶¨È¨ÏÞ¡£Èç6(4+2)´ú±íÓжÁдȨ£¬7(4+2+1)ÓжÁ¡¢Ð´ºÍÖ´ÐеÄȨÏÞ¡£
»¹¿ÉÉèÖõÚËÄ룬ËüλÓÚÈýλȨÏÞÐòÁеÄÇ°Ã棬µÚËÄλÊý×ÖÈ¡ÖµÊÇ4£¬2£¬1£¬´ú±íÒâ˼ÈçÏ£º
4£¬Ö´ÐÐʱÉèÖÃÓû§ID£¬ÓÃÓÚÊÚȨ¸ø»ùÓÚÎļþÊôÖ÷µÄ½ø³Ì£¬¶ø²»ÊǸø´´½¨´Ë½ø³ÌµÄÓû§¡£
2£¬Ö´ÐÐʱÉèÖÃÓû§×éID£¬ÓÃÓÚÊÚȨ¸ø»ùÓÚÎļþËùÔÚ×éµÄ½ø³Ì£¬¶ø²»ÊÇ»ùÓÚ´´½¨´Ë½ø³ÌµÄÓû§¡£
1£¬ÉèÖÃÕ³×Åλ¡£
ʵÀý£º
$ chmod u+x file ¸øfileµÄÊôÖ÷Ôö¼ÓÖ´ÐÐȨÏÞ
$ chmod 751 file ¸øfileµÄÊôÖ÷·ÖÅä¶Á¡¢Ð´¡¢Ö´ÐÐ(7)µÄȨÏÞ£¬¸øfileµÄËùÔÚ×é·ÖÅä¶Á¡¢Ö´ÐÐ(5)µÄȨÏÞ£¬¸øÆäËûÓû§·ÖÅäÖ´ÐÐ(1)µÄȨÏÞ
$ chmod u=rwx,g=rx,o=x file ÉÏÀýµÄÁíÒ»ÖÖÐÎʽ
$ chmod =r


Ïà¹ØÎĵµ£º

linux ÖÐÉèÖÃÈÕÆÚ


ÎÒÃÇÒ»°ãʹÓÓdate -s”ÃüÁîÀ´ÐÞ¸Äϵͳʱ¼ä¡£±ÈÈ罫ϵͳʱ¼äÉ趨³É2010Äê3ÔÂ5ÈÕµÄÃüÁîÈçÏ¡£
 
#date -s 03/05/10
 
½«ÏµÍ³Ê±¼äÉ趨³ÉÖÐÎç8µã52·Ö0ÃëµÄÃüÁîÈçÏ¡£
 
#date -s 08:52:00
 
×¢Ò⣬ÕâÀï˵µÄÊÇϵͳʱ¼ä£¬ÊÇlinuxÓɲÙ×÷ϵͳά»¤µÄ¡£
 
ÔÚϵͳÆô¶¯Ê±£¬Linux ......

ÔÚLinux²Ù×÷ϵͳÏÂÐÞ¸ÄIP¡¢DNSºÍ·ÓÉÅäÖÃ

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 ......

Linux ±à³Ì¾­µäÊé¼®ÍƼö

    ³ÉΪһÃû¾«Í¨ Linux
³ÌÐòÉè¼ÆµÄ¸ß¼¶³ÌÐòÔ±Ò»Ö±ÊDz»ÉÙÅóÓÑ×Î×ÎÒÔÇóµÄÄ¿±ê¡£¸ù¾ÝÖлªÓ¢²ÅÍøͳ¼ÆÊý¾Ý£¬±±¾©µØÇø Linux ³ÌÐòÔ±ÔÂнƽ¾ùΪ Windows ³ÌÐòÔ±µÄ
1.8 ±¶¡¢Java ³ÌÐòÔ±µÄ 2.6 ±¶£¬ Linux ³ÌÐòÔ±ÄêÖÕ½±½ðƽ¾ùΪ Windows ³ÌÐòÔ±µÄ 2.9
±¶¡£Í¬Ê±Êý¾ÝÏÔʾ£¬Ëæ׏¤×÷¾­ÑéµÄÔö³¤£¬ Linux ³ÌÐòÔ±Óë Win ......

ÈçºÎ×°ÐéÄâ»ú¼°ÔÚÉÏÃæ°²×°LINUX²Ù×÷ϵͳ

ÍƼöʹÓÃVMware Workstation(ÐéÄâ»ú),ÏÂÔصØÖ·£º
http://www.gd2.xdowns.com:8080/uploadFile/2008-3/ha_vmware_cn-v6.03.rar
Ó²¼þÒªÇó£ºÖ»ÒªÄÜÕý³£ÔËÐÐxpµÄ¾ÍÐУ¬ÄÚ´æ512M»ò¸ü´ó£¨ÏÖÔÚÂòµÄ»ú×ÓÓ¦¸ÃûÓеÍÓÚÕâ¸ö±ê×¼µÄÁË°É£©¡£
×îÖØÒªµÄÊÇÒªÓÐLinux°²×°ÅÌ£¨ÍøÉÏÏÂÔصľµÏóÎļþÒ²ÐУ¬·´Õý¿ÉÒÔÖ±½ÓʹÓã©¡£
¾ßÌå²Ù×÷È ......

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


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