Detecting 2 ethernet cards

To configure an ethernet card in Linux, you need to enable it in the kernel. Then the kernel will detect your ethernet card if it is at a common IO port. But it will stop there, and will never check if you have 2 ethernet cards. The trick is to tell the ethernet driver that … Read more

Parsing the command line in BASH

Bash is a shell, but it’s also a scripting language. You can make bash scripts, and you can pass parameters to it. You can access the parameters with $1, $2, … But what if you need the whole command line? Bash uses special variables for all kind of purposes. One of them is $* which … Read more

aspell — Spell Checker

Linus Torvalds creator of the Linux Kernel.
URL: http://www.cs.helsinki.fi/~torvalds

One Day One Command
===================

aspell — Spell Checker

Summary:

Aspell can either be used as a library or as an independent spell
checker. Its main feature is suggesting possible replacements for a
misspelled word. Aspell can also easily check documents in UTF-8
without having to use a special dictionary.

Read more

, >>, | — Redirection Operators.

LinuxLinks.com is a big collection of Linux related site Links.
URL: http://www.linuxlinks.com/

One Day One Command
===================

, >>, | —  Redirection Operators.

Summary:

By using some special notation, we can redirect the output of many
commands to files, devices, even to the input of other commands and
pass the output of one command as input to another command. There are
3 Type redirections are available in shell:

1) Standard Output, 2) Standard Input and 3) Pipe

Read more

Domains to search in

When you try to access a Web site, or any remote site, you need to specify the full hostname. This means the machine name plus the domain name: lynx my.yahoo.com If you have a few domain names that you access a lot, you can make your life easier. You can edit /etc/resolv.conf and add the … Read more

Internet for your LAN

Internet for your LAN Many companies have local networks, and it is becoming even more popular in homes, where 2 or 3 systems are linked together using ethernet wires. Most providers only offer 1 IP address per connection, which means that you can’t put all of the systems on the Internet at the same time, … Read more

mpstat — Report processor(s) related statistics.

Dr. Bjarne Stroustrup, designer and implementor of C++ language.
URL: http://www.research.att.com/~bs/homepage.html

One Day One Command
===================

mpstat — Report processor(s) related statistics.

Summary:

The mpstat command writes to standard output activities for each
available processors, processor 0 being the first one. Global average
activities among all processors are also reported.

Read more

halt — Stop the System.

Prof. Douglas Comer, author of the Network & OS Books and Creator
of Xinu OS. URL: http://www.cs.purdue.edu/people/comer

One Day One Command
===================

halt — Stop the System.

Summary:

Halt notes that the system is being brought down in the /var/log/wtmp,
file and then either tells the kernel to halt, reboot or poweroff the
system. Halt invoke shutdown, if the system is not in runlevel 0 or 6.

Read more