linuxһЩÃüÁî
Linux³£ÓÃÃüÁî²Î¿¼
1. diff
ÓÃÓÚÎļþ±È½Ï¡£Ò»°ãfile1ÊÇÔÎļþ£¬file2ÊÇУ¨Ð޸Ĺý£©µÄÎļþ¡£
½ô´Õģʽ£ºdiff -u file1 file2
diff -u file1 file2
--- file1 2010-03-06 02:11:43.000000000 +0000
+++ file2 2010-04-14 10:06:45.000000000 +0000
@@ -21,11 +21,9 @@
eeeeee
ffffff
222222
-jjjjjj
-ssssss
-dddddd
-wwwwww
-eeeeee
+bbbbbb
+cccccc
+vvvvvv
zzzzzz
999999
888888
ºöÂÔ¿Õ¸ñ£ºdiff -ub file1 file2
ºöÂÔËùÓпհ××Ö·û£¨Á¬TABÒ²»á±»ºöÂÔ£©£ºdiff -u --ignore-all-space file1 file2
2. find
²éÕÒÎļþÄÚÈÝÖк¬ÓÐij×Ö·û´®µÄÎļþ
find
. -type f -regex ".*\.c" -exec grep "string" {} \; -print
ÕâÊÇÔÚ*.cÎļþÖвéÕÒstringµÄÃüÁ-print¿ÉÑ¡£¬´òÓ¡ÎļþÃûÓõġ£
3. grep
grep who /use/local -r
who ÊÇpattern£¬Èç¹ûº¬ÓÐÌØÊâ×Ö·ûÔòÒª¼ÓÉÏÒýºÅ
/usr/local ÊDzéÕÒ·¾¶
-r ÊÇoption£¬±íʾËùÓеÄÎļþ£¬ÇÒ¶Ô×ÓĿ¼µÝ¹é£¬µ«ÊÇÓÃÁËÕâ¸ö£¬¾Í²»ÄÜÖ¸¶¨*.cÖ®ÀàµÄ²ÎÊýÁË¡£
Ïà¹ØÎĵµ£º
´´½¨×ÀÃæͼ±ê
Ä¿Ç°½«ÍøÂçÓ¦ÓÃÀ©Õ¹µ½×ÀÃæÊÇÒ»¸öÇ÷ÊÆ£¬´æÔÚןܶà½â¾ö·½°¸£¬±¾ÎÄÒÔ Mozilla Prism ΪÀý£¬ÀàËƵķ½·¨Í¬ÑùÊÊÓÃÓÚ Google Chrome ¡£
1. µ½ Mozilla Prism µÄÍøÕ¾ÉÏÏÂÔØ Prism£¬µã»÷ Download Now Ö®ºó»áÌáʾÓÐÁ½ÖÖ£¬Ò»ÖÖÊÇÒÔ Mozilla Firefox À©Õ¹µÄ·½Ê½£¬ÊʺÏÒѾ°²×°ÓÐ Firefox µÄÅóÓÑ£»Ò»Ö ......
Ò»£º°²×°jdk Îҵİ汾ÊÇ£ºjdk-6u10-linux-i586.rpm
°²×°jdk1.6°²×°°ü£º rpm -ivh jdk-6u10-linux-i586.rpm
ÅäÖû·¾³±äÁ¿£º
1£¬½øÈëprofileÎļþ£ºvi/etc/profile
2,ÔÚÎļþÖÐÌí¼ÓÒÔÏ´úÂ룺
export JAVA_HOME = /usr/usr/java/jdk1.6.0_10 --jdk°²×°Ä¿Â¼
export CALSSPATH = $JAVA_HOM ......
µ±ÎÒÃÇÐèҪij¸öÎļþ»òĿ¼ʱ£¬¶øÓÖ²»ÖªµÀ¸ÃÎļþ·ÅÔÚʲôµØ·½£¬Ôõô°ì£¿
ÔÚwindowsÏÂÃ棬¿ÉÒÔͨ¹ý“ËÑË÷”¹¦ÄܽøÐвéÕÒ£¬¶øÔÚlinuxÏ£¬Í¬ÑùÓÐÏàͬµÄ¹¦ÄÜ£º
which ²é¿´¿ÉÖ´ÐÐÎļþµÄλÖÃ
whereis ²é¿´ÎļþµÄλÖÃ
locate &n ......
ÐźÅÊÇLinux±à³ÌÖзdz£ÖØÒªµÄ²¿·Ö£¬±¾ÎĽ«Ïêϸ½éÉÜÐźŻúÖƵĻù±¾¸ÅÄî¡¢Linux¶ÔÐźŻúÖƵĴóÖÂʵÏÖ·½·¨¡¢ÈçºÎʹÓÃÐźţ¬ÒÔ¼°ÓйØÐźŵļ¸¸öϵͳ
µ÷Óá£
ÐźŻúÖÆÊǽø³ÌÖ®¼äÏ໥´«µÝÏûÏ¢µÄÒ»ÖÖ·½·¨£¬ÐźÅÈ«³ÆΪÈíÖжÏÐźţ¬Ò²ÓÐÈ˳Æ×÷ÈíÖжϡ£´ÓËüµÄÃüÃû¿ÉÒÔ¿´³ö£¬ËüµÄʵÖʺ ......
[root@localhost root]# ls -l
»áÏÔʾĿ¼»òÎļþÐÅÏ¢£ºdrwxr-xr-x 2 root root 4096 06-29 14:30 Test
-rwxr--r-- 2 root roo ......