LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-16-2014, 04:15 PM   #1
learningShellScript
LQ Newbie
 
Registered: Dec 2014
Posts: 1

Rep: Reputation: Disabled
Post looking for prstat -m command equivalent in Linux


Hi Folks,

I'm relatively new to Linux world and I'm learning shell scripting. I've a shell script working well in Solaris system that uses prstat command. After a lot of research, I found out that top is equivalent to prstat in Linux platform.
1. top -b -d 1 -n 1 | head -207 // in linux
2. prstat -n200 1 1

Are the above two commands equivalent?
Also, I'm looking for a command that is close to the command:
prstat -m -n200 1 1
I've been looking for a similar command in linux, and couldn't find any. Please help.
 
Old 12-16-2014, 04:46 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,785

Rep: Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159
Quote:
Originally Posted by learningShellScript View Post
Hi Folks,
I'm relatively new to Linux world and I'm learning shell scripting. I've a shell script working well in Solaris system that uses prstat command. After a lot of research, I found out that top is equivalent to prstat in Linux platform.
1. top -b -d 1 -n 1 | head -207 // in linux
2. prstat -n200 1 1

Are the above two commands equivalent?
The best way to figure that out is to run them, and compare the output. Also, if you're new to Linux, you should check out the Unix Rosetta Stone:
http://bhami.com/rosetta.html
Quote:
Also, I'm looking for a command that is close to the command:
prstat -m -n200 1 1
I've been looking for a similar command in linux, and couldn't find any. Please help.
Honestly, the man pages would be your best place to start. Read the man page on prstat, and on top. Compare the flags/switches, and see if any do what you're after. It's an arduous process, to be sure, but it WILL help you learn quickly.

It looks like the top command is only one of the Linux commands that may replace prstat. Check out the others on the Rosetta stone.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Solaris to Linux porting (prstat -Z -n 1 1 1 ----command help) henrysimon Linux - Newbie 1 07-11-2012 03:27 PM
Linux equivalent of ipmitool command balakodoth Linux - Newbie 1 12-16-2010 03:53 AM
What is the Linux equivalent command lindylex Linux - Networking 7 04-26-2008 10:43 PM
Require Linux/Perl equivalent command for windows Command alix123 Programming 7 08-19-2005 02:23 AM
equivalent command in linux kunto Linux - Networking 2 11-26-2001 02:02 AM


All times are GMT -5. The time now is 12:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration