ÊÕ¼¯µÄһЩ¼òµ¥µÄUNIX/LinuxÃæÊÔÌâ
1. Q. How do you find out the processes that are currently running or a particular user?
A. ps -au Myname (-u by effective user ID (supports names)) (a - all users)
2. Q. How do you kill a process?
A. kill -9 8 (process_id 8) or kill -9 %7 (job number 7)
kill -9 -1 (Kill all processes you can kill.)
killall - kill processes by name most (useful - killall java)
3. Q. What would you use to view contents of a large error log file?
A. tail -10 file_name ( last 10 rows)
4.Q. How do you list contents of a directory including all of its
subdirectories, providing full details and sorted by modification time?
A. ls -lac
-a all entries
-c by time
5.Q. How do you create a symbolic link to a file (give some reasons of doing so)?
A. ln /../file1 Link_name
Hard Link, soft Link?
6.Q. How do you check the sizes of all usersï¿?home directories (one command)?
A. du -s
df
7.Q. How do you check for processes started by user 'pat'?
A. ps -fu pat (-f -full_format u -user_name )
8.Q. How do you start a job on background?
A. bg %4 (job 4)
9. Q. How to remove directory with files?
A. rm -rf directory_name
10. Q. How can you see all mounted drives?
A. mount -l
11. Q. How can you find a path to the file in the system?
A. locate file_name (locate - list files in databases that match a pattern)
12. Q. What Linux HotKeys do you know?
A. Ctrl-Alt-F1 Exit to command prompt
Ctrl-Alt-F7 or F8 Takes you back to KDE desktop from command prompt
Crtl-Alt-Back
Ïà¹ØÎĵµ£º
Ò»£ºÇ°ÑÔ
×î½üÔÚÑо¿androidµÄsensor driver£¬Ö÷ÒªÊÇE-compass£¬ÆäÖÐÓõ½ÁËLinux input×Óϵͳ.ÔÚÍøÉÏÒ²¿´Á˺ܶàÕâ·½ÃæµÄ×ÊÁÏ£¬¸Ð¾õ»¹ÊÇÕâƪ·ÖÎöµÄ±È½ÏϸÖÂ͸³¹£¬Òò´ËתÔØÒ»ÏÂÒÔ±ã×Ô¼ºÑ§Ï°£¬Í¬Ê±ºÍ´ó¼Ò·ÖÏí£¡
£¨Õâƪ²©¿ÍÖ÷ÒªÊÇÒÔ¼üÅÌÇý¶¯ÎªÀýµÄ£¬²»¹ý½²½âµÄÊÇLinux Input Subsystem£¬¿ÉÒÔ×ÐϸµÄÑо¿Ò»Ï£¡£©
¼üÅÌÇý¶¯½«¼ì ......
תÔØʱÇë×¢Ã÷³ö´¦ºÍ×÷ÕßÁªÏµ·½Ê½
ÎÄÕ³ö´¦£ºhttp://www.limodev.cn/blog
×÷ÕßÁªÏµ·½Ê½£ºÀîÏȾ² <xianjimli at hotmail dot com>
Ëæ×ÅXPµÄÁ÷ÐУ¬ÈËÃÇÔ½À´Ô½×¢ÖØÈí¼þµÄÇ°ÆÚÉè¼Æ¡¢ºóÆÚµÄʵÏÖ£¬ÒÔ¼°¹á´©ÓÚÆäÖеIJâÊÔ¹¤×÷£¬¾¹ýÕâ¸ö¹ý³Ì³öÀ´µÄ×ÔÈ»ÊǸßÖÊÁ¿µÄÈí¼þ¡£ÉõÖÁÓÐÈËÉù³ÆXP»áÌÔ̵÷ÊÔÆ÷£¡Õ⵱ȻÊÇÓÐÒ»¶¨µÀÀíµÄ£¬È ......
vmwareÈýÖÖÍøÂçÁ¬½Ó,qemuÁ½ÖÖÍøÂçÁ¬½ÓʵÏÖ ÐéÄâ»ú<--->Ö÷»ú ÐéÄâ»ú<--->»¥ÁªÍøͨÐŵķ½·¨¡£Ë³±ãдÁËÏÂÈçºÎ²»ÖØбàÒëÕû¸öÄÚºËÖ§³Öij¸ö¹¦ÄÜ,¶ÔϵͳÎÞÓ°Ïì,±àÒëËÙ¶ÈÒª¿ìÓÚ±àÒëÕû¸öÄںˡ£Èç¹ûÄãµÄXXX¿¨Ã»±»ÄÚºËÖ§³Ö,ÓÖÅÂ×Ô¼º±àÒëµÄÄں˻áÔì³ÉϵͳË𻵾ͿÉÒÔÊÔÊÔÕâ¸ö·½·¨à¶ ^_^
vm ......
http://www.ibm.com/developerworks/cn/linux/l-rcu/
º¯ÊýÕªÒª£º
C´úÂë
/*¶ÁÕßÔÚ¶ÁÈ¡ÓÉRCU±£»¤µÄ¹²ÏíÊý¾ÝʱʹÓøú¯Êý±ê¼ÇËü½øÈë¶Á¶ËÁÙ½çÇø¡£*/
rcu_read_lock()
/*
¸Ãº¯ÊýÓërcu_read_lockÅä¶ÔʹÓã¬ÓÃÒÔ±ê¼Ç¶ÁÕßÍ˳ö¶Á¶ËÁÙ½çÇø¡£¼ÐÔÚÕâÁ½¸öº¯ÊýÖ®¼äµÄ´úÂëÇø³ÆΪ"¶Á¶ËÁÙ½çÇø" ......