Oracle Consulting Oracle Training Oracle Support Development
Oracle Books
SQL Server Books
IT Books
Job Interview Books
Rampant Horse Books
911 Series
Pedagogue Books

Oracle Software
Write for Rampant
Publish with Rampant
Rampant News
Rampant Authors
Rampant Staff
Oracle News
Oracle Forum
Oracle Tips
Articles by our Authors
Press Releases
SQL Server Books

Oracle 11g Books

Oracle tuning

Oracle training

Oracle support

Remote Oracle


Privacy Policy


  Oracle Tips by Burleson

Display the Number of Processors in Your Server

Keeping what we learned about the /proc/cpuinfo file in
mind, we could easily determine the number of processors in
our server by running the following command string:

# cat /proc/cpuinfo | grep processor | wc -l


The command string returns a count of four. Let's take a look at
the construction of the command string to see why it returns a
processor count.

The cat command sends the contents of the file specified to the
standard output device (stdout) which defaults to the display
screen. If instead, we redirect or pipe (|) the output to a grep
command, we can search for a specified string (processor) in
the output.

If we then pipe the lines found that contain the string to the
word count, wc command using the -l option to count lines, we
will get a count of the lines found with the specified string. The
count that is returned is equal to the number of processors in
our server.

The above book excerpt is from:

Easy Linux Commands
Working Examples of Linux Command Syntax

ISBN: 0-9759135-0-6   

Terry Clark 

Linux Oracle commands syntax poster

ION Oracle tuning software

Oracle data dictionary reference poster

Oracle Forum

BC Oracle consulting support training

BC remote Oracle DBA   



 Copyright © 1996 -2017 by Burleson. All rights reserved.

Oracle® is the registered trademark of Oracle Corporation. SQL Server® is the registered trademark of Microsoft Corporation. 
Many of the designations used by computer vendors to distinguish their products are claimed as Trademarks

Hit Counter