نمایش نتایج 1 تا 40 از 43

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

Threaded View

پست قبلی پست قبلی   پست بعدی پست بعدی
  1. #8

    دستور 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 : سه شنبه 08 شهریور 1390 در 15:27 عصر

قوانین ایجاد تاپیک در تالار

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