linuxÖÐtouchÃüÁî²ÎÊýÐÞ¸ÄÎļþµÄʱ¼ä´Á
linuxÖÐtouchÃüÁî²ÎÊý²»³£Óã¬Ò»°ãÔÚʹÓÃmakeµÄʱºò¿ÉÄÜ»áÓõ½£¬ÓÃÀ´ÐÞ¸ÄÎļþʱ¼ä´Á£¬»òÕßн¨Ò»¸ö²»´æÔÚµÄÎļþ,ÒÔÏÂÊÇlinuxÖÐtouchÃüÁî²ÎÊýµÄʹÓ÷½·¨:
¡¡¡¡touch [-acm][-r ref_file(²ÎÕÕÎļþ)|-t time(ʱ¼äÖµ)] file(ÎļþÃû)
¡¡¡¡example:
¡¡¡¡touch file1.txt ¸üÐÂfile1.txtµÄ´æÈ¡ºÍÐÞ¸Äʱ¼ä
¡¡¡¡touch -c file1.txt Èç¹ûfile1.txt²»´æÔÚ£¬²»´´½¨Îļþ
¡¡¡¡touch -r ref_file file1.txt ¸üÐÂfile1.txtµÄʱ¼ä´ÁºÍref+fileÏàͬ
¡¡¡¡touch -t 0811142234.50 file1.txt É趨ÎļþµÄʱ¼ä´íΪ08Äê11ÔÂ14ÈÕ22µã34·Ö40Ãë
¡¡¡¡-a»ò--time=atime»ò--time=access»ò--time=use ¡¡Ö»¸ü¸Ä´æȡʱ¼ä¡£
¡¡¡¡-c»ò--no-create ¡¡²»½¨Á¢ÈκÎÎĵµ¡£
¡¡¡¡-d ¡¡Ê¹ÓÃÖ¸¶¨µÄÈÕÆÚʱ¼ä£¬¶ø·ÇÏÖÔÚµÄʱ¼ä¡£
¡¡¡¡-f ¡¡´Ë²ÎÊý½«ºöÂÔ²»Óè´¦Àí£¬½ö¸ºÔð½â¾öBSD°æ±¾touchÖ¸ÁîµÄ¼æÈÝÐÔÎÊÌâ¡£
¡¡¡¡-m»ò--time=mtime»ò--time=modify ¡¡Ö»¸ü¸Ä±ä¶¯Ê±¼ä¡£
¡¡¡¡-r ¡¡°ÑÖ¸¶¨Îĵµ»òĿ¼µÄÈÕÆÚʱ¼ä£¬Í³Í³Éè³ÉºÍ²Î¿¼Îĵµ»òĿ¼µÄÈÕÆÚʱ¼äÏàͬ¡£
¡¡¡¡-t time
¡¡¡¡Ê¹ÓÃÖ¸¶¨µÄʱ¼äÖµ time ×÷Ϊָ¶¨Îļþ file ÏàӦʱ¼ä´Á¼ÇµÄÐÂÖµ.´Ë´¦µÄ time ¹æ¶¨ÎªÈçÏÂÐÎʽµÄÊ®½øÖÆÊý¡Ã
¡¡¡¡[[CC]YY]MMDDhhmm[.SS]
¡¡¡¡ÕâÀCCΪÄêÊýÖеÄÇ°Á½Î»£¬¼´”ÊÀ¼ÍÊý”;YYΪÄêÊýµÄºóÁ½Î»£¬¼´Ä³ÊÀ¼ÍÖеÄÄêÊý.Èç¹û²»¸ø³öCCµÄÖµ£¬ÔòlinuxÖÐtouchÃüÁî²ÎÊý½«°ÑÄêÊýCCYYÏÞ¶¨ÔÚ1969--2068Ö®ÄÚ.MMΪÔÂÊý£¬DDΪÌ콫°ÑÄêÊýCCYYÏÞ¶¨ÔÚ1969--2068Ö®ÄÚ.MMΪÔÂÊý£¬DDΪÌìÊý£¬hh ΪСʱÊý(¼¸µã)£¬mmΪ·ÖÖÓÊý£¬SSΪÃëÊý.´Ë´¦ÃëµÄÉ趨·¶Î§ÊÇ0--61£¬ÕâÑù¿ÉÒÔ´¦ÀíÈòÃë.ÕâЩÊý×Ö×é³ÉµÄʱ¼äÊÇ»·¾³±äÁ¿TZÖ¸¶¨µÄʱÇøÖеÄÒ»¸öʱ¼ä.ÓÉÓÚϵͳµÄÏÞÖÆ£¬ÔçÓÚ1970Äê1ÔÂ1ÈÕµÄʱ¼äÊÇ´íÎóµÄ.
Ïà¹ØÎĵµ£º
# uname -a # ²é¿´ÄÚºË/²Ù×÷ϵͳ/CPUÐÅÏ¢
# head -n 1 /etc/issue # ²é¿´²Ù×÷ϵͳ°æ±¾
# cat /proc/cpuinfo # ²é¿´CPUÐÅÏ¢
# hostname # ²é¿´¼ÆËã»úÃû
# lspci -tv # ÁгöËùÓÐPCIÉ豸
# lsusb -tv # ÁгöËùÓÐUSBÉ豸
# lsmod # Áгö¼ÓÔصÄÄÚºËÄ£¿é
# env # ²é¿´»·¾³±äÁ¿ ×ÊÔ´
# free -m # ²é¿´ÄÚ´æʹÓÃÁ¿ºÍ½»»»Ç ......
Ê×ÏÈ£¬ÄÚ´æµÄ´óСÔÚlinuxÄÚºËÖеĻñÖª·½·¨
1.ͨ¹ýbootloader µÄ tag mem´«Èë¡£
Setup.c Öеĺ¯ÊýÈçÏ£º
static int __init parse_tag_mem32(const struct tag *tag)
{
if (meminfo.nr_banks >= NR_BANKS) {
printk(KERN_WARNING
"Ignoring memory bank 0x%08x size %dKB\n",
tag->u.mem.start, tag->u.mem ......
°²×°openssh ·þÎñ¶Ë
sudo apt-get install openssh-server openssh-client
windows Ï¿ͻ§¶Ë
puTTY
³£ÓÃÃüÁî:
Ò»£®Ls ²é¿´Ä¿Â¼ÃüÁî
Ò»°ã·ÅÔÚhome Ŀ¼ÏÂ
Ls –l / ¸ùĿ¼ÏµÄÁбí
Ls –a / ¸ùĿ¼ÏÂËùÓеÄÎļþ
Ls –la ×éºÏµÄÑ¡Ïî
Ls –l / ......
§1£®PCI×ÜÏßÌåϵ½á¹¹¸ÅÊö
PCI×ÜÏßÌåϵ½á¹¹ÊÇÒ»ÖÖ²ã´ÎʽµÄ£¨Hierarchical£©Ìåϵ½á¹¹¡£ÔÚÕâÖÖ²ã´ÎʽÌåϵ½á¹¹ÖУ¬PCIÇÅÉ豸ռ¾Ý×ÅÖØÒªµÄµØ룬Ëû½«¸¸×ÜÏߺÍ×Ó×ÜÏßÁ¬½ÓÔÚÒ»Æ𣬴ӶøʹÕû¸öϵͳ¿´ÆðÀ´ÏñÒ»¿Åµ¹ÖõÄÊ÷Ðͽṹ¡£Ê÷µÄ¶¥¶ËÊÇϵͳµÄCPU£¬Ëûͨ¹ýÒ»¸ö½ÏΪÌرðµÄPCIÇÅÉ豸??Host£¯PCIÇÅÉ豸ºÍ¸ùPCI×ÜÏߣ¨root pci bus ......
1.×î¼òµ¥µÄ°ì·¨ÐÞ¸Ä/etc/rc.d/rc.localÎļþ(Õâ¸ö·½·¨ÊÇÔÚ²»ÐèÒªloginµÄÇé¿öϾÍÄÜ×Ô¶¯ÔËÐеÄ)
2.»¹ÓÐÐ޸IJ»Í¬Óû§µÄÓû§Ä¿Â¼ÏµÄ.bashrcÎļþ¿ÉÒÔʵÏÖµ±¸ÃÓû§µÇ½µÄʱºò×Ô¶¯ÔËÐÐһЩ½Å±¾(¼ÇµÃ/etcÏÂÒ²ÓÐÒ»¸ö.bashrcÎļþ,Ð޸ĺó¿ÉÒÔÈÃÈκÎÓû§µÇ½¶¼×Ô¶¯Ö´ÐÐһЩ½Å±¾µÄ)
3.»¹ÓÐÒ»¸öºÜºÃµÄ·½·¨,×öÒ»¸öÊôÓÚ×Ô¼ºµÄrcÆô¶¯½Å± ......