2009-06-03 9 views
21

Busco el ejecutable de Windows para el hombre Linux (lector manual).¿Dónde está el programa 'hombre' para Windows (programa para abrir páginas man para UNIX)?

Intenté buscar en Google, pero me frustré con el tipo de resultados que surgieron, debido a que 'man' era una frase tan común.

Recibí resultados que decían "hombre ejecutado en texas ...".

así que miro a la comunidad por lo que ahora. ¿Alguna pista?


Aquí está mi necesidad: Tengo Portable Git en windows. Tiene un binario bash windows. Pero cuando intenta mostrarme ayuda para algunos comandos, el pobre se queja de que "no hay un lector manual". Entonces, si obtengo un hombre binario, lo colocaré en el directorio bin/y todo será Hunky-Dory.

+1

Tal vez sería útil si escribiera para lo que lo necesita? – miccet

+2

¿Está tratando de ver la ayuda para los comandos de Windows o los comandos de Linux? – poundifdef

+2

@miccet Aquí está mi necesidad: tengo Portable Git en Windows. Tiene un binario bash windows. Pero cuando intenta mostrarme ayuda para algunos comandos, el pobre se queja de que "no hay un lector manual". Entonces, si obtengo un hombre binario, lo colocaré en el directorio bin/y todo será Hunky-Dory. – jrharshath

Respuesta

18

Si usted está mirando para abrir las páginas de manual de estilo Linux de Windows, a continuación, obtener Groff for Windows para ver las páginas de manual en la línea de comandos de la siguiente manera:

groff -Tascii -mm your_file | more 
+0

mm hmm .. más parecido. ¡Gracias! – jrharshath

+0

También podría necesitar el modo de compatibilidad ('-C'). –

7

Si instala Cygwin, obtendrá un comando man ... Eso, por supuesto, no cubrirá los conceptos de Windows; La documentación de Windows no se entrega en formato de archivo man.

+1

no cygwin, por favor – jrharshath

+0

@ harshath.jr: Si quieres hombre adecuado y git adecuado en Windows, no hay nada mejor que Cygwin. Honestamente, Cygwin es una de las mejores cosas que Windows todavía tiene a su favor: P En serio, sin embargo: ¿Por qué la aversión a Cygwin? Encuentro que hay una percepción fuera de lugar que es grande e invasiva. Puede configurarse para ser bastante mínimo y no es invasivo (todo está bajo un solo directorio y no almacena prácticamente nada en el registro). –

+0

@dan pls ver mi comentario de aclaración en la pregunta. ¿Puedo usar cygwin para mejorar mi situación? – jrharshath

1

En DOS, puede escribir HELP

+1

Lo hice. Su * comentario * sobre ** DOS ** no tiene ningún sentido. Lea el cuerpo/etiquetas de la pregunta y considere eliminar la respuesta. –

0

mayoría de los comandos de Windows tienen un interruptor de encendido/h para el uso y breve información de rutina.

+4

Noooo! no ayuda para los comandos _dos_! por Dios, ¡ni siquiera los llames comandos de Windows! – jrharshath

+1

Técnicamente, si está utilizando una interfaz de línea de comandos en una máquina con Windows después de 9x, tampoco está usando * DOS *, pero CMD. –

+0

Además, casi ningún comando de Windows tiene un interruptor '/ h'. Muchos tienen un interruptor '/?', Pero en cualquier caso, eso responde a la pregunta original como 'Red San Diego' responde a la pregunta,' "¿Qué es 2 * 5?' ' – user1167442

1

En Windows, los comandos que son parte de la command interpreter (cmd.exe), tales como el dir, copy, ren, y tales comandos mostrar alguna información de ayuda con el interruptor /?.

Algunos ejemplos:

dir /? 
rename /? 
copy /? 

se trata de seguir a partir de los días del DOS, cuando muchos de los comandos y programas utilizados de la barra invertida para los interruptores, y ? fue utilizada para mostrar el uso y la información de ayuda, por lo tanto, la /? interruptor.

Además, al escribir help en el intérprete de comandos también se mostrará una lista de todos los comandos del intérprete de comandos. help <command_name> también mostrará la información de ayuda.

Microsoft proporciona un Command Reference que tiene uso y opciones disponibles para cada comando.

+0

El /? switch es equivalente a --help, muy lejos del contenido que las páginas man normalmente tienen –

0

La Ayuda de Windows normalmente se publica mediante archivos .CHM o en línea a través de Microsoft Knowledge Base y MSDN. No hay un repositorio central de ayuda como en los sistemas * NIX.

5

Instalar cygwin y establecer la ruta de ventanas símbolo del sistema como

set PATH = C: \ cygwin \ bin;% PATH%

y acaba de dar el 'hombre' que debería funcionar ..

2

suponiendo que se hayan cargado y están utilizando la Windows Subsystem for Unix Applications de una concha (prefiero el shell C) su en/usr/share/man.Simplemente:

set MANPATH "/usr/share/man" 

en su cshrc o archivos de inicio y .login a continuación, será capaz de utilizar el comando:

man 1 csh 

para obtener información manual sobre el comando "csh" de configuración manual 1.

Espero que esto ayude. - Plataforma

9

HELP es el comando Windows equivalente para hombre. Por ejemplo:

C:\> HELP 
For more information on a specific command, type HELP command-name 
ASSOC   Displays or modifies file extension associations. 
ATTRIB   Displays or changes file attributes. 
BREAK   Sets or clears extended CTRL+C checking. 
BCDEDIT  Sets properties in boot database to control boot loading. 
CACLS   Displays or modifies access control lists (ACLs) of files. 
CALL   Calls one batch program from another. 
CD    Displays the name of or changes the current directory. 
CHCP   Displays or sets the active code page number. 
CHDIR   Displays the name of or changes the current directory. 
CHKDSK   Checks a disk and displays a status report. 
CHKNTFS  Displays or modifies the checking of disk at boot time. 
CLS   Clears the screen. 
CMD   Starts a new instance of the Windows command interpreter. 
COLOR   Sets the default console foreground and background colors. 
COMP   Compares the contents of two files or sets of files. 
COMPACT  Displays or alters the compression of files on NTFS partitions. 
CONVERT  Converts FAT volumes to NTFS. You cannot convert the 
       current drive. 
COPY   Copies one or more files to another location. 
DATE   Displays or sets the date. 
DEL   Deletes one or more files. 
DIR   Displays a list of files and subdirectories in a directory. 
DISKCOMP  Compares the contents of two floppy disks. 
DISKCOPY  Copies the contents of one floppy disk to another. 
DISKPART  Displays or configures Disk Partition properties. 
DOSKEY   Edits command lines, recalls Windows commands, and 
       creates macros. 
DRIVERQUERY Displays current device driver status and properties. 
ECHO   Displays messages, or turns command echoing on or off. 
ENDLOCAL  Ends localization of environment changes in a batch file. 
ERASE   Deletes one or more files. 
EXIT   Quits the CMD.EXE program (command interpreter). 
FC    Compares two files or sets of files, and displays the 
       differences between them. 
FIND   Searches for a text string in a file or files. 
FINDSTR  Searches for strings in files. 
FOR   Runs a specified command for each file in a set of files. 
FORMAT   Formats a disk for use with Windows. 
FSUTIL   Displays or configures the file system properties. 
FTYPE   Displays or modifies file types used in file extension 
       associations. 
GOTO   Directs the Windows command interpreter to a labeled line in 
       a batch program. 
GPRESULT  Displays Group Policy information for machine or user. 
GRAFTABL  Enables Windows to display an extended character set in 
       graphics mode. 
HELP   Provides Help information for Windows commands. 
ICACLS   Display, modify, backup, or restore ACLs for files and 
       directories. 
IF    Performs conditional processing in batch programs. 
LABEL   Creates, changes, or deletes the volume label of a disk. 
MD    Creates a directory. 
MKDIR   Creates a directory. 
MKLINK   Creates Symbolic Links and Hard Links 
MODE   Configures a system device. 
MORE   Displays output one screen at a time. 
MOVE   Moves one or more files from one directory to another 
       directory. 
OPENFILES  Displays files opened by remote users for a file share. 
PATH   Displays or sets a search path for executable files. 
PAUSE   Suspends processing of a batch file and displays a message. 
POPD   Restores the previous value of the current directory saved by 
       PUSHD. 
PRINT   Prints a text file. 
PROMPT   Changes the Windows command prompt. 
PUSHD   Saves the current directory then changes it. 
RD    Removes a directory. 
RECOVER  Recovers readable information from a bad or defective disk. 
REM   Records comments (remarks) in batch files or CONFIG.SYS. 
REN   Renames a file or files. 
RENAME   Renames a file or files. 
REPLACE  Replaces files. 
RMDIR   Removes a directory. 
ROBOCOPY  Advanced utility to copy files and directory trees 
SET   Displays, sets, or removes Windows environment variables. 
SETLOCAL  Begins localization of environment changes in a batch file. 
SC    Displays or configures services (background processes). 
SCHTASKS  Schedules commands and programs to run on a computer. 
SHIFT   Shifts the position of replaceable parameters in batch files. 
SHUTDOWN  Allows proper local or remote shutdown of machine. 
SORT   Sorts input. 
START   Starts a separate window to run a specified program or command. 
SUBST   Associates a path with a drive letter. 
SYSTEMINFO  Displays machine specific properties and configuration. 
TASKLIST  Displays all currently running tasks including services. 
TASKKILL  Kill or stop a running process or application. 
TIME   Displays or sets the system time. 
TITLE   Sets the window title for a CMD.EXE session. 
TREE   Graphically displays the directory structure of a drive or 
       path. 
TYPE   Displays the contents of a text file. 
VER   Displays the Windows version. 
VERIFY   Tells Windows whether to verify that your files are written 
       correctly to a disk. 
VOL   Displays a disk volume label and serial number. 
XCOPY   Copies files and directory trees. 
WMIC   Displays WMI information inside interactive command shell. 

For more information on tools see the command-line reference in the online help. 

He aquí otro ejemplo:

C:\> HELP SET 
Displays, sets, or removes cmd.exe environment variables. 

SET [variable=[string]] 

    variable Specifies the environment-variable name. 
    string Specifies a series of characters to assign to the variable. 

... 

(I cut several pages worth of information from its output) 

Proporciona una gran cantidad de información. Pero, por desgracia, en realidad no es diferente de llamar al /? parámetro de la aplicación que desea utilizar de todos modos (es decir: SET /?).

Pero, al menos se puede encontrar la aplicación que necesita sin conocer su nombre utilizando la siguiente:

C:\> HELP | find /i "ACL" 
CACLS   Displays or modifies access control lists (ACLs) of files. 
ICACLS   Display, modify, backup, or restore ACLs for files and 
+1

http://ss64.com/ es bastante bueno también con respecto a los comandos comunes de Windows. También incluye referencias para 'cmd.exe' y' powershell'.Un buen compromiso fuera de línea sería raspar ss64 con wget, así: 'wget -kmE -np --no-check-certificate -P. http: // ss64.com/nt/' –

0

Escriba el comando sin argumentos:

> ping

devoluciones:

Usage: ping [-t] [-a] [-n count] [-l size] [-f] [-i TTL] [-v TOS] 
      [-r count] [-s count] [[-j host-list] | [-k host-list]] 
      [-w timeout] [-R] [-S srcaddr] [-4] [-6] target_name 

Options: 
    -t    Ping the specified host until stopped. 
        To see statistics and continue - type Control-Break; 
        To stop - type Control-C. 
    -a    Resolve addresses to hostnames. 
    -n count  Number of echo requests to send. 
    -l size  Send buffer size. 
    -f    Set Don't Fragment flag in packet (IPv4-only). 
    -i TTL   Time To Live. 
    -v TOS   Type Of Service (IPv4-only. This setting has been deprecated 
        and has no effect on the type of service field in the IP Header). 
    -r count  Record route for count hops (IPv4-only). 
    -s count  Timestamp for count hops (IPv4-only). 
    -j host-list Loose source route along host-list (IPv4-only). 
    -k host-list Strict source route along host-list (IPv4-only). 
    -w timeout  Timeout in milliseconds to wait for each reply. 
    -R    Use routing header to test reverse route also (IPv6-only). 
    -S srcaddr  Source address to use. 
    -4    Force using IPv4. 
    -6    Force using IPv6. 
Cuestiones relacionadas