Definitions/explanations


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Definitions/explanations
# 1  
Old 07-14-2009
Definitions/explanations

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.
# 2  
Old 07-15-2009
Quote:
Originally Posted by Straitsfan
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.
is that what you were looking for?
Code:
man -S 1 ls

# 3  
Old 07-15-2009
"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):
Code:
       0   Header files (usually found in /usr/include)
       1   Executable programs or shell commands
       2   System calls (functions provided by the kernel)
       3   Library calls (functions within program libraries)
       4   Special files (usually found in /dev)
       5   File formats and conventions eg /etc/passwd
       6   Games
       7   Miscellaneous  (including  macro  packages and conven-
           tions), e.g. man(7), groff(7)
       8   System administration commands (usually only for root)
       9   Kernel routines [Non standard]

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.
# 4  
Old 07-15-2009
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.
# 5  
Old 07-15-2009
not to be overly recursive, but 'man man' could help.
# 6  
Old 07-15-2009
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.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Programming

I need some explanations

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)
Discussion started by: mr.vip
1 Replies

2. UNIX for Dummies Questions & Answers

Need some explanations in commands

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)
Discussion started by: kotsos13
2 Replies

3. UNIX for Dummies Questions & Answers

Sensors Explanations

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)
Discussion started by: Mat_k
0 Replies

4. Shell Programming and Scripting

bashscript for learning definitions

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)
Discussion started by: phr0st
2 Replies

5. AIX

/etc/subsync parms definitions ?

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)
Discussion started by: Browser_ice
0 Replies

6. Shell Programming and Scripting

function definitions file for bc

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)
Discussion started by: Pudnik
0 Replies

7. IP Networking

ping program with explanations please!!!!!

need help!! need a ping program written in c with the explanations as to what each variable,function does!!! please help!! (4 Replies)
Discussion started by: sachin_zeus
4 Replies

8. Linux

Termcap Definitions

Hi. How do I enter and escape from graphics mode on RedHat Linux to capture escape sequences. I'm trying to edit the system termcap. (2 Replies)
Discussion started by: cstovall
2 Replies
Login or Register to Ask a Question