Linux Shell ÃüÁî ¼ò½é
°²×°openssh ·þÎñ¶Ë
sudo apt-get install openssh-server openssh-client
windows Ï¿ͻ§¶Ë
puTTY
³£ÓÃÃüÁî:
Ò»£®Ls ²é¿´Ä¿Â¼ÃüÁî
Ò»°ã·ÅÔÚhome Ŀ¼ÏÂ
Ls –l / ¸ùĿ¼ÏµÄÁбí
Ls –a / ¸ùĿ¼ÏÂËùÓеÄÎļþ
Ls –la ×éºÏµÄÑ¡Ïî
Ls –l /* |more ·ÖÒ³ÏÔʾ
Cd /home Çл»µ±Ç°µÄ¹¤×÷Ŀ¼
Pwd ÏÔʾµ±Ç°µÄ¹¤×÷Ŀ¼
Mkdir ´´½¨Ä¿Â¼µÄÃüÁî
Rmdir ɾ³ýĿ¼µÄÃüÁî
Îļþ²éÕÒ:
Whereis ²éÕÒ¶þ½øÖÆÎļþ
Which
Find ²éÕÒÆÕͨÎļþ
Locate ²éÕÒ¿ìһЩ
Grep ²éÕÒÎļþÖеÄÄÚÈÝ
ÎļþϵͳÖеÄĿ¼:
Bin -- ³ÌÐò¹¤¾ß¼¯ ¶þ½øÖÆÎļþ
Boot -- ϵͳÆô¶¯ËùÐèµÄÄÚºË
Cdrom
Dev -- É豸Îļþ ÍâÉè
Etc --ÐÞ¸ÄϵͳÅäÖõÄÎļþ¼Ð(ËùÓÐϵͳÅäÖÃÐÅÏ¢)
Home --ÆÕͨÓû§µÄÎļþ¼Ð ÀïÃæ¶ÔÓ¦Óû§ÃûµÄÎļþ¼Ð
Initrd.img -- ÁÙʱĿ¼(Ò»°ãÊÇ¿ÕµÄ)
Lib -- ¹²Ïí¿â
Lost+found --ϵͳÆô¶¯Ê±·¢ÏÖµÄËéƬÎļþ
Media -- ÔÓÆßÔӰ˵Ä
Mnt -- ¹ÒÔØÍⲿÉ豸µÄ ¹âÇý ÈíÅÌ
Opt -- ĬÈÏÊÇ¿ÕµÄ £¨°²×°µÚÈý·½Èí¼þµÄ£©
Proc -- ÐéÄâµÄÎļþϵͳ ÄÚ´æÖеÄ
Root -- ¹ÜÀíÔ±µÄ home Ŀ¼
Sbi
Ïà¹ØÎĵµ£º
1. Linux ½Å±¾±àд»ù´¡
1.1 Óï·¨»ù±¾½éÉÜ
1.1.1 ¿ªÍ·
³ÌÐò±ØÐëÒÔÏÂÃæµÄÐпªÊ¼£¨±ØÐë·½ÔÚÎļþµÄµÚÒ»ÐУ©£º
#!/bin/sh
¡¡¡¡·ûºÅ#!ÓÃÀ´¸æËßϵͳËüºóÃæµÄ²ÎÊýÊÇÓÃÀ´Ö´ÐиÃÎļþµÄ³ÌÐò¡£ÔÚÕâ ¸öÀý×ÓÖÐÎÒÃÇʹÓÃ/bin/shÀ´Ö´ÐгÌÐò¡£
¡¡¡¡µ±±à¼ºÃ½Å±¾Ê±£¬Èç¹ûÒªÖ´Ðиýű¾£¬»¹±ØÐëʹÆä¿ÉÖ´ÐС£
¡¡¡¡ÒªÊ¹½Å±¾¿ÉÖ´ÐУº
±àÒ ......
< type="text/javascript">
document.body.oncopy = function() {
if (window.clipboardData) {
setTimeout(function() {
var text = clipboar ......
1.ÔÚÐéÄâ»úÈí¼þ°²×°Ä¿Â¼ÖÐÌáÈ¡linux.isoÎļþ£¬ÓÃUltraISO.exeÈí¼þÌáÈ¡ÐéÄâ¹âÅÌ ÖеÄVMwareTools-6.0.2-59824.i386.rpmÎļþ£¬²¢´«Êäµ½linuxÐéÄâ»úÖУ¨ÓÃ·É ¸ë£©
2.ÔÚLinuxÐéÄâ»úÖа²×°VMwareTools-6.0.2-59824.i386.rpm³ÌÐò
3.Èí¼þĬÈÏ°²×°ÔÚ/usr/binĿ¼ÏÂ
4.ÔÚÖÕ¶ËÖÐÊäÈë vmware-config-tools.pl£¨×¢Òⶠ......
1¡¢LinuxϵͳÏÂ.koÎļþÊÇʲôÎļþ£¿.soÎļþÊÇʲôÎļþ£¿
.ko ££ kernel object£¬ÄÚºËÄ£¿é£¬¿ÉÒÔÔÚLinuxÄÚºËÆðÀ´Ö®ºó¶¯Ì¬µÄ¼ÓÔغÍжÔØ¡£
.so ££ shared object£¬Óû§²ãµÄ¶¯Ì¬¿â £¨ÓÚ.a ¶ÔÓ¦£©£¬Ê¹ÓÃͬһ¸ö.soµÄ³ÌÐòÔÚÔËÐÐʱ
Ö»ÐèÒª¸Ã.soµÄͬһ·Ý¿½±´ ......
·¢²¼Îļþµ½linuxµÄapache·þÎñÆ÷£º
1. Ìí¼ÓÓ³Éäµ½httpdÎļþ
£¨1£©´ò¿ªhttpd.confÎļþ
vi /etc/httpd/conf/httpd.conf
£¨2£©Ìí¼ÓÒÔÏÂÄÚÈݵ½httpd.confÎļþ
Alias /shop/ "/usr/local/tomcat-6.0.16/webapps/ShoppingSearch/images/"
<Directory "/usr/local/tomcat-6.0.16/webapps/ShoppingSea ......