Just wondering: Can anyone tell me what is meant by the term 'interactive shell" or 'built-in commands' - for example, if I type 'man set' I get a page listing all the 'built in commands' but no explanation of what they are as a concept or what they do.
And while I'm here: I was wondering as well how I access different sections of the manual - I've noticed there is an -S argument to the command 'man' but I don't know how to use it - I tried man [command] -S(number) and don't get anything.
And while I'm here: I was wondering as well how I access different sections of the manual - I've noticed there is an -S argument to the command 'man' but I don't know how to use it - I tried man [command] -S(number) and don't get anything.
"Interactive shell" is an instance of a shell (ksh/bash/csh/...) that interacts with the user, = where you enter commands. A non-interactive shell would be a shell started to run an automated script, eg. via cron/at
"Built-In commands" are commands defined by the shell for which it doesn't need to start a sub-process. Those mostly affect the internal state of the shell (like 'set -x'), environment variables (like export), or control flow (if/case/...). You can see if a command is a built-in by entering 'type <command>'
As for man page sections: the -S switch defines which sections man should search in for the command you specified, not the sections inside the man page. An example of man sections (from Linux):
It doesn't know about any sections inside the page itself, as it just passes the content of the page through a formatter (groff/troff/...) and then into a pager (more/less/...). Think of it as HTML: Just because there's a <h1> tag somewhere the browser won't automatically generate an index, it's just a formatting instruction.
I think I get it. Maybe I didn't ask my question correctly (Unfortunately, I don't remember exactly how I entered the Section argument). If I read your answer correctly, then what you're saying is that a command doesn't have more than one entry in different sections -- so ls for example is only in one section of the man pages (section 1)?
Am I able to go to different sections of the man pages, and if so, how would I do it?
And, as an aside, I noticed one of the sections you listed was for games. Can you tell me what they are? I entered 'man games' and got nothing, so I guess there is no command called 'games' and instead it lists the games in a certain section.
No, it's not possible to jump between sections (at least not with the command-line utility). The usual chain of processing is
man searches for the file for the given command
man invokes groff/troff/any other parser to format and output the file
this output is then sent to a pager (more/less/...)
The pager itself has no idea of man pages or any links between them. Sections are just a way to logically structure the many pages available.
As for the games: almost every distribution has a package 'bsd-games' (or similar), containing classics like fortune, atc, caesar, or trek. Those man pages would be placed in section 6.
hello
let me start with
i am a php ,vb ,c# programmer
i heared that Routers run a smaller version of linux called an Embedded Operating System
i don't know what is that mean
so i want to know how to get into router files ?
how to edit it ?
what language it use , is it c and c++ ?... (1 Reply)
I want to know what's the meaning of the following commands
first eg
^*a*e*i*o*u*$What does exactly the *a,*e,*i ...*$ means in this command?
I know that i can also use this command without the *a,*e,*i ... *$!
At this ocassion what's the difference?
second eg
sed ‘s/^/<tab>/’ file1In sed... (2 Replies)
Hello,
I am trying to get some information from the sensors on my pc. But i get confuse with what i get.
I don t know where to find out which sensors watches what..
I use "sensors" under ubuntu 10.10.
Here is the result of the cmd line sudo sensors.
the temp 3 indicates 79°C which... (0 Replies)
Hi, I am a german lawstudent and have to learn a few hundred definitions and laws in the next months. I thought it would be cool to have a little helper, a bashscript which is working with flat textfiles. I found one in the archlinuxforum which was almost perfect...almost. It is on some point based... (2 Replies)
In our Cron table, we have the /etc/subsync client ipadr1 ipadr2
Each ipadr is an actual IP adress.
I think it has something to do with synchronizing the clock between servers, but what is the ipadr2 for ? (0 Replies)
Hello, All :) ...I just figured out how to setup a function definitions file for bc...I was going to create lots more functions for it, but I'll bet that a huge file with tons of definitions has already been written...?
Thanx in advance for any replies,
Pudnik (0 Replies)