Browse man pages in Lion's Terminal

Just read about this, thought it was worth sharing:
Browse man pages in Lion's Terminal

Also  key combination:
control-option-command-/
shift-control-command-?

Similar Messages

  • Hyperlinks in Terminal man pages

    Several third party applications (eg ManOpen) put hyperlinks in man pages. Often this is done on the fly using the same man page source as the Terminal.
    Does Apple do this with the Terminal or any other applications which use local (ie not web) man pages?
    My groff_mdoc man page says:
          .Lk To be written
    but a more informative description at http://www.daemon-systems.org/man/mdoc.7.html says:
          .Lk link (for conversion to HTML). Usage: .Lk <href> [anchor-text]
    I suspect Lk has not been widely used and that third party applications probably use the existing Xr tags about which my groff_mdoc man page says:
    Manual Page Cross References
          The '.Xr' macro expects the first argument to be a manual page name. The optional second argument, if a string (defining the manual section), is put into parentheses.
          Usage: .Xr ⟨man page name⟩ [⟨section⟩] ...
            .Xr mdoc        mdoc
            .Xr mdoc ,      mdoc,
            .Xr mdoc 7      mdoc(7)
            .Xr xinit 1x ;  xinit(1x);
          The default width is 10n.
    Is it possible to get the Terminal to use these existing Xr tags as hyperlinks?

    Sorry, I didn't peruse that link. On my machine, man:<commmand> works in Safari.
    Thanks for that I had misread the instructions and tried man: ls and man ls (as per terminal) rather than the correct man:ls
    That's incorrect. This example is from the chmod manpage:
    +     The -H, -L and -P options are ignored unless the -R option is specified. In addition, these options override each other and the command's+
    +     actions are determined by the last one specified.+
    In my terminal I get the following:
    Case 1 - Terminal/Prefences/Window Columns set to 80
    The -H, -L and -P options are ignored unless the -R option is specified.
    In addition, these options override each other and the command's actions
    are determined by the last one specified.
    Case 2 - Terminal/Prefences/Window Columns set to 120
    The -H, -L and -P options are ignored unless the -R option is specified. In addition, these options
    override each other and the command's actions are determined by the last one specified.
    For these tests I closed Preferences and then opened a new Terminal window. Manually widening the windows did not increase text width further but narrowing them resulted in an untidy soft text wrap a character at a time rather than the normal word at a time.
    Am I the only one with a Terminal that does this or does it work for others?

  • No scrolling when viewing man pages with Gnome terminal?

    Hi all,
    I have just installed Oracle Solaris 11 on x86. For a long time I've used Solaris 9 on SPARC. I like the new OS, but I'm having a problem viewing man pages with Gnome terminal. When I view a long man page, e.g., "man newfs", I don't get a functional scroll bar on the right hand side of the window. And although the space bar works to advance the page, when I reach the end, it doesn't return to the command prompt. It just beeps, prints "END", and I can only exit by closing the window. Can anyone tell me how to fix this? Suggestions would be much appreciated.
    Many thanks,
    Chris Tidy

    It does sound like you're using "less" instead of more. When you see the "(END)" prompt you can simply type "q" and it will exit back to the command line prompt making it unnecessary to close the window. See the "less" manual page for more detail on the less command. Under Solaris 9 the paging was done with the "more" command. If you set the PAGER environment variiable to "more" the man page will use more and revert to the behavior you'd be used to with Solaris 9. Less erases the text you've already read when you type that final "q" which is a behavior I don't like. I didn't bother to determine if there is a way to fix that with less, I just went back to more. The choice between "more" and "less" is a personal preference.

  • Convert terminal man page to pdf/export man page as pdf

    Hi there,
    Would anyone of you know how to export a man page as a pdf?
    -jns

    I've read several books on UNIX and the bash shell, and read the sections of several MacOSX books on UNIX. I started dabbling way way back, used Linux a bit on a rebuilt 486, installed some UNIX based stuff on pre-OS X Macs (there was Yellow Dog, and something else, whose name escapes me, I used on my 7100). Back then it was best to buy books. These days you can find anything you want to know along those lines on the internet. An excellent place to start:
    http://www.osxfaq.com/Tutorials/LearningCenter/index.ws
    Whenever I discover/see a useful command I add it to my "cheat sheet" along with an example and an explanation of it. I've organized my "cheat sheet" into categories that make sense to me, so that I can quickly find what I want.
    A really handy helpful application for this sort of thing is Clix from Rixstep:
    http://rixstep.com/4/0/clix/index.shtml
    It has various lists of commands, categories and explanations. Truly great software, and it's free.
    Francine
    Francine
    Schwieder

  • Is it normall for a Macbook Pro to overheat during  browsing web pages?

    DonAnan
    Is it normall for a Macbook Pro 13" retina 2 weeks old to overheat during browsing web pages ?
    i just brought a new MacBook Pro 13" Retina ( Dual Core i5 2.6GHz , 8GB Ram , 512GB Flash Storage ) and i notes that its really get OVERHEAT on the top right side of the keyboard and the fans work loudly when i brows web or play a game ( CSR Racing ) , it get heat that when i touch the top right side of the keyboard ( the aluminum body on top of the bower key exactly ) i cant keep my finger for morethan 10 or 15 second ..
    and the battery wont last for morethan 4 or 5 hours while it supposed to last for 9 hours according to Apple.
    so guys is this normal ?
    Thanks ,

    i've did some search on the same issue and it really seems like everyone have it , even thou at apple reseller showroom here in Doha-Qatar the sales man told me this a such issue in the retina macbooks and apple has admit it and you must take it to the service center and change it , while at the service center said a totally different things and that its fine to get heat ..
    in meanwhile my way back i pass by another apple reseller showroom and they clearly said if ur mack gets heat u must go and change it ...
    im really lost and i have no idea whats goin on here and whom should i listen to .. i hope someone from APPLE support will read this and reply us whats goin on ?     

  • Reading man pages in macvim?

    Hi,
    I would like to read man pages in macvim. In a macvim window, I tried :!man perltoot, but I got this:
    WARNING: terminal is not fully functional
    (press Return)
    After hitting return, the man page displayed, but it was in white text (v. vivid chalk), and navigating up and down was herky, jerky.
    I found the following shell script that purportedly will display colorized man pages in macvim, but it doesn't work for me:
    function tman {
    man "${1}" | col -b | /usr/local/bin/gview - 1>/dev/null 2>&1
    I used find to search my whole hard drive for gview, but I don't have that anywhere.
    Message was edited by: 7stud
    Message was edited by: 7stud

    Thanks for the responses.
    runtime! ftplugin/man.vim
    :Man perltoot
    That causes an annoying split screen to appear. I found I could get rid of the empty portion by clicking my mouse in the empty split screen, and then hitting <esc>:quit.
    Message was edited by: 7stud

  • Man pages & documentation, optional?

    Hello,
    I'm using localepurge every after update/installation and megabytes trown out are countless (with all respect for all other languages). Isn't waste?
    Furthermore Lot of html docs are laying around and I merely read one of them. Nearly 100 Mb.
    Now-a-day the internet is at the finger tips, what reason enforce to have documentation enclosed with the packages?
    We may just read them online. See this site
    I'd consider only the core man pages for the time one has to setup a new installation. Perhaps because some information is needed in a particular case. However it could have to consider some other mean to go online during that problem.
    Mostly the crowd leaning to have clouds and other stuffs off-box, generally is moving to a global storage, what for moving these bytes?

    I also keen man pages with included examples, they bring something to try and modify in a what-if try context.
    I don't deny the documentation usefulness, I appreciate Wikis, manuals, and all efforts to let other know/learn about open source.
    In the other hand, I see a great increase on travelling bit when a huge portion is, practically, not even taken a look. Beside this I would also consider the volume caused to repeatedly download the same document for several times . Which is a personal option. I mean that I probably read many times these documents.
    I like computer because I like to make some programming, then I frequently consult some doc, to learn something more. This usually goes by browser and looking for somebody made similar example.
    The concern for this thread is just to have a slim installation on the first place and who likes to have all wirstle&bells will go on for all of them.
    Imagine KDE or libreoffice that packing up all the languages, who will want afford it?
    Even Mr Judd, I believe, was for this diet. Therefore we have a makepkg.conf with all strip options in there.

  • Man pages character encoding

    hi there,
    I just installed arch the weekend before.
    When I'm browsing the man pages I got problems with the character encoding. Most of them are displayed correctly, but sometimes there stands something like that: ?<80><98> instead of an character. As I do not know how to take an screenshot of an manpage without having an GUI installed I took a picture( XD ).
    [img=http://img411.imageshack.us/img411/184/dsc00185hj0.th.jpg]
    What configuration files do you need to help me? or do you know what my problem is, yet?
    thanks in advance

    I got a file named /etc/profile.pacnew
    what is the file I have to merge/replace it with?
    furthermore I got the problem with my manpages, which is solved by using unset MANPATH, but it will reappear after a reboot. These problems are probably connected.
    I just don't know which files I have to merge, remove or keep and so on.
    thx
    edit:
    ok replaced profile with profile.pacnew, as I can't remember that I changed something in the profile ever since. this solves the problem.
    does pacman tell me if it create such a .pacnew kinda file?
    Or how do I know that this files is existing, searching for all files with an .pacnew ending once in a while an mergen them with the old file?
    Last edited by okar (2008-03-18 18:08:29)

  • Man Pages for OS X Tiger

    Does anyone know where I can download the man pages ? My iMac went to the "grey screen with endless spinning gear of death" and I want to download my files to an external drive (by firewire) but my Mac will not recognize the external drive as I am in the Install services via Disk 1. I can see my files via terminal and I want to be able to manually set up the external drive to I can transfer then I can wipe out my HD and start over.
    Anyone have any suggestions and or know of where I can get the pages ? Thx !!!

    OK. Let me make sure I am understanding this correctly:
    - you have a problem with the mac such that you cannot boot
    - you can boot from the install disk
    - you have an external FW drive which you wish to transfer files to before reinstalling
    Questions:
    - have you used the external drive before or is it new?
    - when you say you are "at the utilities menu", do you mean that you've opened Disk Utility and you can see the external drive on the left?
    -> if so, select it and then choose the "Erase" tab. Select a format and give the disk a name. It is not a bad idea to choose the "security options" and opt to write zeros (once) to the disk. Then choose "erase". This will erase everything on the disk so only do this if the disk is new or you don't need anything on the disk. If you aren't sure which format to choose from the drop-down menu, "Mac OS Extended (Journaled)" is a good choice unless you need to use the disk with Windows as well. If you chose the writing zeros option, find something to do as it will take a while depending on the size of the disk. Try mounting the new volume now - that is, select the volume on the left (it will have your chosen name) and choose mount from the menu or toolbar.
    - how are you thinking of transferring your files? If the drive is suitable, you could install OS X on the external drive, boot from that and retrieve the files from your internal drive that way. Or were you thinking of something else?
    Manpages:
    - are you using Terminal from the Utilities menu on the install disk? I think you can access the man pages that way. I don't know if you can do so directly, though you can try, but you may be able to access them from hour hard drive by specifying a complete path e.g. man /Volumes/Macintosh\ HD/usr/share/man/man1/kill.1.
    Have you tried repairing your internal drive using Disk Utility?
    - cfr

  • I use reliance dongle to browse internet on mountain lion, at first it gave me problems but after updating the reliance software it worked fine.  Now i have upgraded my osx to mavericks.  The reliance software gets installed but dosent open giving some er

    i used reliance dongle to browse internet on mountain lion, at first it gave me problems but after updating the reliance software it worked fine. Now i have upgraded my osx to mavericks. The reliance software gets installed but dosent open giving some error, Now i cannot use the internet !!! and itz the latest version of reliance software,,, plz help me !!!

    At last i did some experiments and it solved my problem... heres the solution :
    1. Install the reliance drivers and software from their website.
    2. As the reliance software is not supported my mavericks it wont open, but dont worry.
    3. Now after installation go to system preferences->network->and select  "ZTE Wireless Terminal".
    4. Configuration: Default
         Telephone number: #777
         Account name and password should be the owners number.
    5.Finish ! press apply and click Connect...
       Enjoy browsing !!!

  • Download 1.4 developer release man pages

    Does anybody know from where we can download the 1.4 developer release man pages? I'd like to browse them off-line.
    I've downloaded and installed:
    j2eesdk-1_4-dr-windows-eval-app.exe
    j2eeri-1_4-doc-api.zip
    j2eesdk-1_4-dr-eval-blueprints.zip
    j2ee-1_4-dr-doc-tutorial.zip
    and not found them there.
    Thanks, John

    The man pages are not available in a download, but you can browse them on
    our web site at this URL:
    http://java.sun.com/j2ee/1.4/docs/relnotes/cliref/index.html

  • Thr_create() returns -1 which isn't specified in the man page. What is -1?

    Hello,
    I'm for the first time experimenting with Solaris threads as I'm porting an AIX app. over to Solaris.
    Anyhow, I have a sample program that creates a simple thread. For some reason, the return value of of the initial thr_create is -1, which isn't specified in the man page for thr_create. The man page lists the following return values, non of which are -1:
    RETURN VALUES
    Zero indicates a successful return and a non-zero value
    indicates an error.
    ERRORS
    If any of the following conditions occur, these functions
    fail and return the corresponding value:
    EAGAIN The system-imposed limit on the total number
    of threads in a process has been exceeded or
    some system resource has been exceeded (for
    example, too many LWPs were created).
    EINVAL The value specified by attr is invalid.
    If any of the following conditions are detected,
    pthread_create() fails and returns the corresponding value:
    ENOMEM Not enough memory was available to create the
    new thread.
    If any of the following conditions are detected,
    thr_create() fails and returns the corresponding value:
    EINVAL o stack_base is not NULL and stack_size is
    less than the value returned by
    thr_min_stack(3T).
    o stack_base is NULL and stack_size is not
    zero and is less than the value returned by
    thr_min_stack(3T).
    However, I don't see a -1 there and therefore, don't know what this means.
    Here is the simple code that I wrote for this experiment as well as the output. It doesn't get too far into the program before exiting - I've bolded where it exits:
    #define _REENTRANT
    #include <stdio.h>
    #include <thread.h>
    #include <errno.h>
    /* Function prototypes for thread routines */
    void sub_a(void );
    void sub_b(void );
    void sub_c(void );
    void sub_d(void );
    void sub_e(void );
    void sub_f(void );
    thread_t thr_a, thr_b, thr_c;
    void main()
    thread_t main_thr;
    int rc = 0;
    main_thr = thr_self();
    printf("Main thread = %d\n", main_thr);
    if (rc = thr_create(NULL, 0, sub_b, NULL, THR_NEW_LWP, &thr_b))
    printf("\n rc = %d",rc);
    switch(rc)
    case EAGAIN: printf("This one1");
    break;
    case EINVAL: printf("This one2");
    break;
    case ENOMEM: printf("This one3");
    break;
    default: printf("rc = %d");
    break;
    fprintf(stderr,"Can't create thr_b\n"),
    * exit(1); *
    /* if (thr_create(NULL, 0, sub_a, (void *)thr_b, THR_NEW_LWP, &thr_a))
    fprintf(stderr,"Can't create thr_a\n"), exit(1); */
    if (thr_create(NULL, 0, sub_c, (void *)main_thr, THR_NEW_LWP, &thr_c))
    fprintf(stderr,"Can't create thr_c\n"), exit(1);
    printf("Main Created threads A:%d B:%d C:%d\n", thr_a, thr_b, thr_c);
    printf("Main Thread exiting...\n");
    thr_exit((void *)main_thr);
    void sub_a(void arg)
    thread_t thr_b = (thread_t) arg;
    thread_t thr_d;
    int i;
    printf("A: In thread A...\n");
    if (thr_create(NULL, 0, sub_d, (void *)thr_b, THR_NEW_LWP, &thr_d))
    fprintf(stderr, "Can't create thr_d\n"), exit(1);
    printf("A: Created thread D:%d\n", thr_d);
    /* process
    for (i=0;i<1000000*(int)thr_self();i++);
    printf("A: Thread exiting...\n");
    thr_exit((void *)77);
    void * sub_b(void *arg)
    int i;
    printf("B: In thread B...\n");
    /* process
    for (i=0;i<1000000*(int)thr_self();i++);
    printf("B: Thread exiting...\n");
    thr_exit((void *)66);
    void * sub_c(void *arg)
    void *status;
    int i;
    thread_t main_thr, ret_thr;
    main_thr = (thread_t)arg;
    printf("C: In thread C...\n");
    if (thr_create(NULL, 0, sub_f, (void *)0, THR_BOUND|THR_DAEMON, NULL))
    fprintf(stderr, "Can't create thr_f\n"), exit(1);
    printf("C: Join main thread\n");
    if (thr_join(main_thr,(thread_t *)&ret_thr, &status))
    fprintf(stderr, "thr_join Error\n"), exit(1);
    printf("C: Main thread (%d) returned thread (%d) w/status %d\n", main_thr, ret_thr, (int) status);
    /* process
    for (i=0;i<1000000*(int)thr_self();i++);
    printf("C: Thread exiting...\n");
    thr_exit((void *)88);
    void * sub_d(void *arg)
    thread_t thr_b = (thread_t) arg;
    int i;
    thread_t thr_e, ret_thr;
    void *status;
    printf("D: In thread D...\n");
    if (thr_create(NULL, 0, sub_e, NULL, THR_NEW_LWP, &thr_e))
    fprintf(stderr,"Can't create thr_e\n"), exit(1);
    printf("D: Created thread E:%d\n", thr_e);
    printf("D: Continue B thread = %d\n", thr_b);
    thr_continue(thr_b);
    printf("D: Join E thread\n");
    if(thr_join(thr_e,(thread_t *)&ret_thr, &status))
    fprintf(stderr,"thr_join Error\n"), exit(1);
    printf("D: E thread (%d) returned thread (%d) w/status %d\n", thr_e,
    ret_thr, (int) status);
    /* process
    for (i=0;i<1000000*(int)thr_self();i++);
    printf("D: Thread exiting...\n");
    thr_exit((void *)55);
    void * sub_e(void *arg)
    int i;
    thread_t ret_thr;
    void *status;
    printf("E: In thread E...\n");
    printf("E: Join A thread\n");
    if(thr_join(thr_a,(thread_t *)&ret_thr, &status))
    fprintf(stderr,"thr_join Error\n"), exit(1);
    printf("E: A thread (%d) returned thread (%d) w/status %d\n", ret_thr, ret_thr, (int) status);
    printf("E: Join B thread\n");
    if(thr_join(thr_b,(thread_t *)&ret_thr, &status))
    fprintf(stderr,"thr_join Error\n"), exit(1);
    printf("E: B thread (%d) returned thread (%d) w/status %d\n", thr_b, ret_thr, (int) status);
    printf("E: Join C thread\n");
    if(thr_join(thr_c,(thread_t *)&ret_thr, &status))
    fprintf(stderr,"thr_join Error\n"), exit(1);
    printf("E: C thread (%d) returned thread (%d) w/status %d\n", thr_c, ret_thr, (int) status);
    for (i=0;i<1000000*(int)thr_self();i++);
    printf("E: Thread exiting...\n");
    thr_exit((void *)44);
    void sub_f(void arg)
    int i;
    printf("F: In thread F...\n");
    while (1) {
    for (i=0;i<10000000;i++);
    printf("F: Thread F is still running...\n");
    OUTPUT:
    # /emc/smithr15/solthread
    Main thread = 1
    rc = -1Can't create thr_b
    rc = -1#
    Any ideas as to what -1 indicates and how to solve this?
    Thanks for your response,
    dedham_ma_man

    ok, my bad. I wasn't linking in the -lthread library.
    Thanks anyway.

  • Can we update the man pages for "dynamic_pager"?

    The configuration file is listed as, /Library/Preferences/com.apple.virtualMemory.plist but from what I understand, it is located in /System/Library/LaunchDaemons/com.apple.dynamic_pager.plist.

    Send Apple feedback about it, and they will likely update the man page: http://www.apple.com/feedback/macosx.html
    Alternatively you can edit the man page file for the dynamic_pager itself. It is located here: /usr/share/man/man8/dynamic_pager.8

  • My safari sometimes keeps asking me to log into the "Newcastle area" and doesn't let me browse any pages ? Why and how do I fix it ?

    My safari sometimes asking me to log into the "Newcastle area" and doesn't let me browse any pages ? Why and how do I fix it ?

    Try this:
    With Safari open type command + option + E - all three keys together.
    Next go to Safari in the menu bar, and select Reset Safari,

  • To create a sort of "browse the pages" in a page with DWCS6: how?

    Hello all again,
    as usual i'm here with something that for me seems impossible and maybe it's super easy... i checked online but i couldn't find any answer. I start with a description of what i want to accomplish:
    - i have 1 database (mySQL) with a table called "Books", inside i have these fields: Title (VARCHAR 60), Author (VARCHAR 20), StoryText (LONGTEXT)
    - i have 1 page for me, where i insert with a form a book when i want to update the DB
    - i have 2 PHP pages, one that has links where the user chooses, for example, the name of a book and the other that gets that name from the URL and show the content (x chapters of the story, tale or whatever)
    - i'm the user and i click on the link "The Little Prince", the page loads and shows me the title, the author, the text of x chapters (let's say 4 chapters)
    - that text has to be "divided" in more than one page because it's too long for a single page, so i want to see something like:
    Example when you enter the page:
    The Little Prince
    Once upon a time......
    Page 1 | >> | Last page
    and example when you reach page 9:
    The Little Prince
    The little prince....
    First page | << | Page 9 | >> | Last page
    All of this has to be in a single page though, no links to somewhere else or so. It's not a page itself but it appears in a PHP page like a table, textarea and so on. The closer thing i can think about it's a photogallery, where you press left and right and shows the pics but here, instead of pics, there's text. And if possible, i wouldn't want to create a table in my database everytime i insert a new book. What i'd like it's something that "splits" the text i have in a field called "StoryText" (table "Books") and let the user browse the pages. If i have, for example, a book 1000 lines long, i want to make a page every 50 lines so i get 20 pages. Those 20 pages need to get a sort of recordset navigation bar but... not about a recordset, only about a text in that page.
    Resuming, what i need is:
    - a way to split long text in x pages (like the example, 1 page every 50 lines of text)
    - add a navigation bar or some sort of control to browse those pages
    Is it possible something like that? Thanks.

    The example below shows you how to split the article into pages using [PAGEBREAK] inserted into the database but it only gives you the option of NEXT | PREVIOUS
    Split article into multiple pages
    I'm positive you can do exactly what you require - it's a matter of finding and piecing the code together. Entering [PAGEBREAK] into the database isn't very practical either. I'd be looking for an example that extracted a certain number of words.

Maybe you are looking for

  • Standby database in sync ... ?

    Dear Experts, (Oracle 10g, Windows Server 2003). we have a standby database in maximum performace mode, I want to make sure that both are in sync or not, ihow to find ? and if they are not then what must be done to make them in sync. Thanks&Regards s

  • Loss of bluetooth range on mac mini (lion x/memory upgrade)

    I have a mac mini 2009. I just upgraded to lion x and added 3GB of RAM.  For some reason my bluetooth mouse and keyboard have lost their range.  They both work but I have to use them within a foot of the computer.  Ive replaced the batteries.. any he

  • ICloud photos not visible to third party apps

    Since enabling iCloud photos on my iPhone 6 and iPad Air, I've noticed that none of my photos are visible to any third party apps (Photogene, Instragram). I have optimised, rather than full version storage enabled and suspect that this is causing the

  • Two reports combined in one Go URL

    Hi All, Can I include two reports in one Go URL? If so, Can you please tell me the syntax? Thanks in advance.

  • MacBook Pro Optical Drive Problems

    Hello Forum, I bought a MacBook Pro on 17July2006 and soon discovered that the optical drive worked only occasionally ( It would only read a CD or DVD when it wanted to, new or old. I would read songs to Itunes on a hit or miss basis. If a CD was rea