نمایش نتایج: از شماره 1 تا 10 , از مجموع 36

موضوع: اموزش دستورات لینوکس به فارسی

Threaded View

پست قبلی پست قبلی   پست بعدی پست بعدی
  1. #17
    عضو انجمن alieblice آواتار ها
    تاریخ عضویت
    Feb 2010
    نوشته ها
    111
    تشکر تشکر کرده 
    10
    تشکر تشکر شده 
    247
    تشکر شده در
    86 پست

    پیش فرض دستور man

    دستور man برای دیدن راهنمای دستورات و بعضی فایل ها استفاده میشه

    یک دستور میتونه چندین تا راهنمای مجزا (( چندین صفحه man )) داشته یاشه که به صورت استاندارد به بخش های زیر تقسیم میشن
    کد:
    Section Description
      1    User programs
    2      System calls
    3      Library calls
    4      Special files (usually found in /dev)
    5      File formats
    6      Games
    7      Miscellaneous
    8      System administration
    شکل کلی دستور

    کد:
    man [options] [section] name
    مثلا دستور
    کد:
    man mkdir
    اگه بزنین راهنمای mkdirرو میاره

    کد:
    man mkdir
    MKDIR(1)                         User Commands                        MKDIR(1)
    
    NAME
           mkdir - make directories
    
    SYNOPSIS
           mkdir [OPTION]... DIRECTORY...
    
    DESCRIPTION
           Create the DIRECTORY(ies), if they do not already exist.
    
           Mandatory  arguments  to  long  options are mandatory for short options
           too.
    
           -m, --mode=MODE
                  set file mode (as in chmod), not a=rwx - umask
    
           -p, --parents
                  no error if existing, make parent directories as needed
    
           -v, --verbose
                  print a message for each created directory
    
           -Z, --context=CTX
                  set the SELinux security context of each  created  directory  to
                  CTX
    
           --help display this help and exit
    
           --version
                  output version information and exit
    
    AUTHOR
           Written by David MacKenzie.
    
    REPORTING BUGS
           Report mkdir bugs to bug-coreutils@gnu.org
           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>
           General help using GNU software: <http://www.gnu.org/gethelp/>
           Report mkdir translation bugs to <http://translationproject.org/team/>
    
    COPYRIGHT
           Copyright  ©  2010  Free Software Foundation, Inc.  License GPLv3+: GNU
           GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
           This is free software: you are free  to  change  and  redistribute  it.
           There is NO WARRANTY, to the extent permitted by law.
    
    SEE ALSO
           mkdir(2)
    
           The full documentation for mkdir is maintained as a Texinfo manual.  If
           the info and mkdir programs are properly installed at  your  site,  the
           command
    
                  info coreutils 'mkdir invocation'
    
           should give you access to the complete manual.
    
    GNU coreutils 8.5                 April 2010                          MKDIR(1)
    دیدن man های یک دستور
    کد:
    man -wa command
    مثلا
    کد:
    $ man -wa mkfifo
    /usr/share/man/man1/mkfifo.1
    /usr/share/man/man3/mkfifo.3
    خوب حالا اگه بخاین راهنمای C-language دستور mkfifo رو ببینین باید به manای که عدد 3 رو داره برین که برای این کار دستور به این شکل میشه
    کد:
    $ man 3 mkfifo

    اگه بخاین که man تمام راهنما های موجود برای یک دستورو یک جا براتون بیاره از a- استفاده کنین
    حالا اگه دستور زیرو بزنین اول man 1 و بعد man 7 رو میاره به این صورت که با بسته شدن man 1 با q ((کیو )) یا Ctrl-C به man 2 میرود
    کد:
    man -a man

    نکته :
    اگه دستور دیدن مکان man یک دستورو به شکل man -w COMMAND بزنین فقط مکان راهنمایی رو که بازدن man COMMAND میبینین رو نشون میده که برای دیدن مکان همه ی man های یک دستور باید از aw- استفاده کنین .


    سیرچ کردن تمام صفحات man موجود
    برای این کار از k- استفاده کنین
    مثلا کلمه apache رو سیرچ میکنیم
    کد:
    ali@172.16.15.149:~$ man -k apache
    a2dismod (8)         - enable or disable an apache2 module
    a2dissite (8)        - enable or disable an apache2 site / virtual host
    a2enmod (8)          - enable or disable an apache2 module
    a2ensite (8)         - enable or disable an apache2 site / virtual host
    ab (1)               - Apache HTTP server benchmarking tool
    apache2 (8)          - Apache Hypertext Transfer Protocol Server
    apache2ctl (8)       - Apache HTTP server control interface
    apachectl (8)        - Apache HTTP server control interface
    check_forensic (8)   - tool to extract mod_log_forensic output from apache lo...
    logresolve (1)       - Resolve IP-addresses to hostnames in Apache log files
    rotatelogs (8)       - Piped logging program to rotate Apache logs

    وقتی که دستور man ls رو میزنین راهنمای ls باز میشه که خود همون صفه باز شده از چند قسمت تشکیل شده که به صورت زیر هستش

    کد:
    Heading Description
    Name         The name of the item, along with a description
    Synopsis               A complete description of syntax or usage
    Description        A brief description of the item
    Options      Detailed information on each command-line option (for commands)
    Return values     Information on function return values (for programming references)
    See also          A list of related items that may be helpful
    Bugs         Descriptions of unusual program behavior or known defects
    Files         A list of important files related to the item, such as configuration files
    Copying or copyright          A description of how the item is to be distributed or protected
    Authors      A list of those who are responsible for the item

    دستور خلاصه تر از man هم هست که فقط توضیح کوتاهی از اون دستورو میده
    کد:
    whatis ls
    ls (1)               - list directory contents



    منبع : LPIC-1_In_Nutshell_Oreilly_Edition3.pdf
    ادرس دانلود
    http://ubuntuone.com/p/15HZ/
    ویرایش توسط alieblice : August 30th, 2011 در ساعت 14:38

  2. تعداد تشکر ها ازalieblice به دلیل پست مفید


اطلاعات موضوع

کاربرانی که در حال مشاهده این موضوع هستند

در حال حاضر 1 کاربر در حال مشاهده این موضوع است. (0 کاربران و 1 مهمان ها)

موضوعات مشابه

  1. پاسخ ها: 123
    آخرين نوشته: September 2nd, 2018, 22:20
  2. پاسخ ها: 14
    آخرين نوشته: June 11th, 2014, 13:25
  3. پاسخ ها: 0
    آخرين نوشته: February 21st, 2013, 21:30
  4. پاسخ ها: 0
    آخرين نوشته: December 24th, 2011, 16:39

مجوز های ارسال و ویرایش

  • شما نمیتوانید موضوع جدیدی ارسال کنید
  • شما امکان ارسال پاسخ را ندارید
  • شما نمیتوانید فایل پیوست کنید.
  • شما نمیتوانید پست های خود را ویرایش کنید
  •