manpage

what is a regular file on unix

假装没事ソ 提交于 2019-12-04 01:01:31
I saw the man page of test . where the below is mentioned. -e pathname True if pathname resolves to a file that exists. False if pathname cannot be resolved. -f pathname True if pathname resolves to a file that exists and is a regular file. False if pathname cannot be resolved, or if pathname resolves to a file that exists but is not a regular file. the -f flag says True if pathname resolves to a file that exists and is a regular file Could anybody please tell what is a regular file and what is not a regular file. Non-regular files are devices, pipes, sockets... try [ -f /dev/tty0 ] , for

Is there any common lisp docs like linux man? [closed]

依然范特西╮ 提交于 2019-12-03 14:24:23
I am a newbie for emacs and common lisp. I am now using emacs and slime to learn P.Graham “ANSI Common LISP”. However, when I meet something that I don't konw, I can not easily get some useful info like linux man. Is there any common lisp docs like linux man? Common Lisp HyperSpec describes the ANSI Common Lisp standard, and, as such, is more similar to the POSIX Standard than to Linux man pages . Since you use Emacs, you can use clhs.el to lookup specific symbols there: (autoload 'common-lisp-hyperspec "clhs" "Get doc on ANSI CL" t) (define-key help-map "\C-s" 'common-lisp-hyperspec) Note: I

C++ man pages in Ubuntu

拟墨画扇 提交于 2019-12-03 13:04:19
问题 In Ubuntu linux I can't get any man pages for C++ keywords. Is there some kind of package I can install to fix this? 回答1: sudo apt-get install manpages-dev glibc-doc Look here too for STL. 回答2: check out this project: https://github.com/Aitjcize/cppman Which generates manpages from cplusplus.com 回答3: The libstdc++6-4.4-doc will install the man pages for STL too, not only the HTML doc. The manpages-posix-dev package is also really good to have. 回答4: You must install manpages-dev package : $

C++ man pages in Ubuntu

有些话、适合烂在心里 提交于 2019-12-03 03:19:09
In Ubuntu linux I can't get any man pages for C++ keywords. Is there some kind of package I can install to fix this? sudo apt-get install manpages-dev glibc-doc Look here too for STL. check out this project: https://github.com/Aitjcize/cppman Which generates manpages from cplusplus.com The libstdc++6-4.4-doc will install the man pages for STL too, not only the HTML doc. The manpages-posix-dev package is also really good to have. You must install manpages-dev package : $ sudo apt-get install manpages-dev You could also consider installing libstdc++6-4.4-doc, which installs the full C++ library

What is a way to read man pages in vim without using temporary files

我与影子孤独终老i 提交于 2019-12-03 02:25:55
问题 I want to be able to read man pages in vim. For some reason, it seems that vim isn't able to read the output of programs through piping (i.e '(man ls) | vi' doesn't seem to work, bonus points to somebody who can explain why), and to get around this, I've been using the following little script: tempo = `mktemp` man $1 > $tempo ; vi $tempo This script uses temporary files which I guess works fine, but I was wondering if there was a good way to read man pages in vim without resorting to making

Where is the 'man' Program for Windows (Program to open UNIX man pages)?

ⅰ亾dé卋堺 提交于 2019-12-02 17:07:48
I'm looking for the windows executable for the linux man (manual reader). I tried googling around, but got frustrated with the kind of results it came up with, owing to 'man' being such a common phrase. I got results that read "man executed in texas..". So I look to the SO community now. Any clues? Here's my need: I have Portable Git on windows. It has a bash windows binary. But when it tries to show me help for some commands, the poor thing complains that "there is no manual reader". So if I get a man binary, I'll place it in the bin/ directory and all will be hunky-dory. If you are looking

What is a way to read man pages in vim without using temporary files

半城伤御伤魂 提交于 2019-12-02 15:56:28
I want to be able to read man pages in vim. For some reason, it seems that vim isn't able to read the output of programs through piping (i.e '(man ls) | vi' doesn't seem to work, bonus points to somebody who can explain why), and to get around this, I've been using the following little script: tempo = `mktemp` man $1 > $tempo ; vi $tempo This script uses temporary files which I guess works fine, but I was wondering if there was a good way to read man pages in vim without resorting to making temporary files For some reason, it seems that vim isn't able to read the output of programs through

Unable to unbind a shell function

…衆ロ難τιáo~ 提交于 2019-12-02 11:05:56
This question is based on the thread . I have the shell function function man() { man "$1" > /tmp/manual; less /tmp/manual } The problem is there exists the command man. How can you replace the command with my command? Ryan Oberoi Replace man "$1" with the pathname: /usr/bin/man. Or change it to use 'which man' within backquotes. Then run your script in the current shell. On bash/ksh you need to save your script in some file, say man.sh and then run it as '. ./man.sh'. cat > man.sh function man() { /usr/bin/man "$1" > /tmp/manual; less /tmp/manual } ^D . ./man.sh You get the idea. You can

How can I use Unicode characters in Perl POD-derived man pages?

风格不统一 提交于 2019-11-30 03:41:20
问题 And if this isn't possible, what is the best practice for dealing with man pages derived from UTF-8-encoded POD? The first thing to do in order to work with Unicode in POD is to use the directive =encoding UTF-8 (as discussed here). The pod2text and pod2html tools will work fine and produce perfect UTF-8-encoded output. The pod2man tool, however, does not: pod2man -u MyModule.pm | nroff -Tutf8 -man | less Neither does perldoc . Non-ASCII characters are all mangled or X-ed out. There is some

Specific man page for shell built-in commands like 'source'

≡放荡痞女 提交于 2019-11-29 08:18:10
If you execute any of the following in the command line man source man readonly man suspend ... The output is the same manpage describing shell built-in commands in general. I've searched for 'source' on line and I've found this more specific documentation: Linux / Unix Command: source Command Library NAME source - Evaluate a file or resource as a Tcl script SYNOPSIS source fileName source -rsrc resourceName ?fileName? source -rsrcid resourceId ?fileName? How can I output something similar in my terminal? Try doing this in a shell : help source 来源: https://stackoverflow.com/questions/13400238