Skip to content

Independent notes on FreeBSD · published since 1999

The FreeBSD 'zine Features, news and community notes for FreeBSD

Issue 6 · July 2000

Reader written notes on FreeBSD, from the command line to the server room.

Open the current issue

June 1999 · Featured article

Newbie's Corner

Know Your Shell Commands

Q: Why do I need to know shell commands?

Knowing necessary shell commands with right flag will save you lots of time and will look like you know what you are doing. Also, you will never hear someone tell you to RTFM.

Man pages?

The man command is like help under windows. It will provide you with necessary (sometimes hard to understand) descriptions on topics relating to the Unix system. For example, to view the man page for cd, do the following:

 % man cd 

Q: I can't remember the full command, but I remember it started with "pro**". Can I still find man page on this command?

Yes, try man k pro or using apropos pro will do the same.

Q: There are two or even three man pages on same command. Why?

There are nine sections in man pages. Look at the following description.

 Section 1: User Commands Section 2: Operating system services * Section 3: Library functions * Section 4: Devices, networks and interfaces Section 5: System file formats Section 6: Games Demo programs Section 7: Misc Section 8: System maintenance commands + Section 9: Relating to Kernel + * These sections are usually related to C programs. + These sections are not that important to you at this moment. 

Q: How do I invoke these sections of man pages?

Simply type the section you want like so (intro is shell command):

 % man 1 intro % man 8 intro 

Here is summary of command 'man' you should at least know.

 1) man <topic> 2) man [n] <topic> 3) man k keyword 

Daniel

On the web

Further reading from the FreeBSD community and the projects named in this article.

Issue contents

Issue 5/6 · Jun 1999

Security

Taking Advantage of TCP Wrappers

By Dan Langille

The tcp_wrapper port installs a great little daemon by the name of tcpd. This port can be used to enhance the security of your site. It is easy to...

Read the article

Issue 5/6 · Jun 1999

Makefiles

An Introduction

By Joel Sutton

make could possibly be classified as one of the most useful, and fundamental, utilities available to the UNIX programmer. It controls the...

Read the article

Issue 5/6 · Jun 1999

Userland PPP

Aliasing with PPP

By Dan Langille

This article deals with setting up PPP aliases. This will allow other computers to use your FreeBSD box as a gateway to your ISP. I will assume that...

Read the article