6 ¸ö¡°ÏÅÈË¡±µÄ Linux ÏÂÁî
ÕýÎÄ
$ mcrypt x Enter the passphrase (maximum of 512 characters) Please use a combination of upper and lower case letters and numbers. Enter passphrase: Enter passphrase: File x was encrypted.
µÇ¼ºó¸´ÖÆ
Çë×¢ÖØ£ºmcryptÏÂÁî»á½¨ÉèµÚ¶þ¸öÎļþ£¬ÆäÀ©Õ¹ÃûÊÇ¡°.nc¡±¡£
Ëü²¢²»ÁýÕÖÄãÔÚ¼ÓÃܵÄÎļþ¡£mcryptÏÂÁîÓÐÃÜÔ¿¾ÞϸºÍ¼ÓÃÜËã·¨·½ÃæµÄÑ¡Ïî¡£Ä㻹¿ÉÒÔÖ¸¶¨ÃÜÔ¿×÷Ϊһ¸öÑ¡Ï²»¹ýmcryptÏÂÁî²»ÃãÀøÕâô×ö¡£
kill
ÉÐÓÐkillÏÂÁ¡ªËäÈ»Õâ²¢²»ÊÇÖ¸Ðд̣¬¶øÊÇÖ¸ÎÒÃÇÓÃÀ´ÖÕÖ¹Àú³ÌµÄÏÂÁÖÕÖ¹µÄ·½·¨ÓжàǿӲȡ¾öÓÚÐèҪʲôÀ´ÊÊÍâµØÖÕÖ¹ËüÃÇ¡£ËäÈ»£¬Linux²¢²»¾Í´ËÖ¹²½¡£Ïà·´£¬ËüÓÐÖÖÖÖ¸÷ÑùµÄkillÏÂÁîÀ´ÓÃÓÚÄãµÄÏÂÁîÐС£
ËÑË÷¹«ÖÚºÅLinuxÖÐÎÄÉçÇøºǫ́»Ø¸´¡°ÏÂÁîÐС±£¬»ñÈ¡Ò»·Ý¾ªÏ²Àñ°ü¡£
ÎÒÃÇÓÐkill¡¢pkill¡¢killall¡¢killpg¡¢rfkill¡¢skill£¨²ÎÔÄes-kill£©¡¢tgkill¡¢tkillºÍxkill¡£
$ killall runme [1] Terminated ./runme [2] Terminated ./runme [3]- Terminated ./runme [4]+ Terminated ./runme
µÇ¼ºó¸´ÖÆ
shred
Linuxϵͳ»¹Ö§³ÖÒ»ÖÖÃûΪshredµÄÏÂÁî¡£shredÏÂÁîÁýÕÖÎļþÒÔÒþ²ØÒÔÇ°µÄÄÚÈÝ£¬²¢È·±£ÎÞ·¨Ê¹ÓÃÓ²Åָ̻´¹¤¾ßÀ´»Ö¸´ËüÃÇ¡£Çë¼Çס£ºrmÏÂÁî»ù±¾ÉÏÖ»ÊÇɾ³ýĿ¼ÎļþÖеÄÎļþÒýÓ㬵«·×Æ綨´Ó´ÅÅÌÉϲÁ³ýÄÚÈÝ»òÁýÕÖÄÚÈÝ¡£shredÏÂÁî²ÅÊÇÁýÕÖÎļþµÄÄÚÈÝ¡£
$ shred dupes.txt $ more dupes.txt ?o¦«??9?lm?????o?1???f?f???i??h^}&???{??
µÇ¼ºó¸´ÖÆ
zombies
ËäÈ»zombies£¨½©Ê¬Àú³Ì£©²»ÊÇÒ»¸öÏÂÁµ«ËüÔÚLinuxϵͳÉÏÈ´¸ùÉîµÙ¹Ì¡£zombies»ù±¾ÉÏÊÇûÓб»Íêȫɨ³ýµÄéæÃüÀú³ÌµÄ²Ðº¡¡£
Àú³Ì²»Ó¦¸ÃÒÔÕâÖÖ·½·¨ÔËÐСª¡ªÈÎÓÉéæÃüÀú³ÌÍ£Áô£¬¶ø²»Êǽö½öÈÃËüÃÇéæÃü¡¢½øÈëÊý×ÖÌìÌã¬ÒÔÊÇzombiesµÄ±£´æÅú×¢ÎúÁôÏÂËüÃǵÄÀú³Ì±£´æijÖÖȱÏÝ¡£
¼ì²éÄãµÄϵͳÊÇ·ñÓн©Ê¬Àú³Ì²ÐÁôÏÂÀ´£¬Ò»¸ö¼òÆÓµÄÒªÁì¾ÍÊÇÉó²étopÏÂÁîµÄÎÊÌâÐС£
ºÃÏÅÈË£¡ÉÏÃæÏÔʾÓÐÈý¸ö½©Ê¬Àú³Ì¡£
$ top top - 18:50:38 up 6 days, 6:36, 2 users, load average: 0.00, 0.00, 0.00 Tasks: 171 total, 1 running, 167 sleeping, 0 stopped, 3 zombie <== %Cpu(s): 0.0 us, 0.0 sy, 0.0 ni, 99.9 id, 0.1 wa, 0.0 hi, 0.0 si, 0.0 st KiB Mem : 2003388 total, 250840 free, 545832 used, 1206716 buff/cache KiB Swap: 9765884 total, 9765764 free, 120 used. 1156536 avail Mem
µÇ¼ºó¸´ÖÆ
at midnight
ËÀÈ˵ÄÁé»ê»á´ÓÈÕÂäÒ»Ö±Óε´µ½ÉîÒ¹¡£LinuxÈÃÓû§¿ÉÒÔ½èÖú¡°at midnight¡±ÏÂÁî¸ú×ÙÊÇ·ñÒÑÍÑÀë¡£atÓÃÀ´°²ÅÅÏÂÒ»´Îָ׼ʱ¼äµ½À´Ê±¾ÍÔËÐеÄʹÃü£¬ÊÂÇé·½·¨ÀàËÆÒ»´ÎÐÔÍýÏëʹÃü£¨cron£©¡£
$ at midnight warning: commands will be executed using /bin/sh at> echo 'the spirits of the dead have left' at> <EOT> job 3 at Thu Oct 31 00:00:00 2017
µÇ¼ºó¸´ÖÆ
daemons
Linuxϵͳ»¹¸ß¶ÈÒÀÀµÊØ»¤Àú³Ì£¨daemon£©¡ª¡ªÕâÖÖÀú³ÌÔÚºǫ́ÔËÐУ¬ÌṩÁËϵͳµÄÐí¶à¹¦Ð§¡£Ðí¶àÊØ»¤Àú³ÌµÄÃû³ÆÒÔ¡°d¡±×îºó¡£Õâ¸ö¡°d¡±´ú±í¡°daemon¡±£¬ËüÅú×¢¸ÃÀú³ÌÒ»Ö±ÔËÐУ¬Ö§³ÖijÖÖÖ÷Òª¹¦Ð§¡£ÁíһЩÊØ»¤Àú³ÌÔò½«¡°daemon¡±Õâ¸öµ¥´ÊÆ´³öÀ´¡£
$ ps -ef | grep sshd root 1142 1 0 Oct19 ? 00:00:00 /usr/sbin/sshd -D root 25342 1142 0 18:34 ? 00:00:00 sshd: shs [priv] $ ps -ef | grep daemon | grep -v grep message+ 790 1 0 Oct19 ? 00:00:01 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation root 836 1 0 Oct19 ? 00:00:02 /usr/lib/accountsservice/accounts-daemon
µÇ¼ºó¸´ÖÆ
ÒÔÉϾÍÊÇ6 ¸ö¡°ÏÅÈË¡±µÄ Linux ÏÂÁîµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡