LinuxQuestions.org
Review your favorite Linux distribution.
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 03-17-2017, 02:36 AM   #1
lakshmi@Linux
LQ Newbie
 
Registered: Mar 2017
Location: Hyderabad
Posts: 16

Rep: Reputation: Disabled
psrinfo & prtconf commands are not available in Linux


Hi Members,
I am unable to find the commands: psrinfo & prtconf in Linux which are getting used in Unix script, Now we have the migration activity from Unix to Linux.
Are these commands available in Linux ? If not do we have any alternative commands for them, Please help as I am new to Linux.

Thanks & Regards
Lakshmi
 
Old 03-17-2017, 03:17 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 13,064

Rep: Reputation: 4130Reputation: 4130Reputation: 4130Reputation: 4130Reputation: 4130Reputation: 4130Reputation: 4130Reputation: 4130Reputation: 4130Reputation: 4130Reputation: 4130
about psrinfo: see /proc filesystem: https://linux.die.net/man/5/proc, especially /proc/cpuinfo
about prtconf: would be nice to know what is really required, I think everything is available, but you need to rewrite that code....
 
1 members found this post helpful.
Old 03-17-2017, 06:09 AM   #3
lakshmi@Linux
LQ Newbie
 
Registered: Mar 2017
Location: Hyderabad
Posts: 16

Original Poster
Rep: Reputation: Disabled
Thank you for the quick replay.

Found that there are alternative commands /proc/cpuinfo annd /proc/meminfo which will sever my purpose, but It seems we dont have the access to these commands, need to check with the concern.

Reagrds
Lakshmi
 
Old 03-17-2017, 06:33 AM   #4
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 13,064

Rep: Reputation: 4130Reputation: 4130Reputation: 4130Reputation: 4130Reputation: 4130Reputation: 4130Reputation: 4130Reputation: 4130Reputation: 4130Reputation: 4130Reputation: 4130
those are not commands but files. At least they look like.
 
Old 03-17-2017, 08:34 AM   #5
lakshmi@Linux
LQ Newbie
 
Registered: Mar 2017
Location: Hyderabad
Posts: 16

Original Poster
Rep: Reputation: Disabled
hmm... It is a terminology mistake... And I dont have the access for them... Thank you for the correction...

Thanks & Regards
Lakshmi
 
Old 03-17-2017, 10:24 AM   #6
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 13,064

Rep: Reputation: 4130Reputation: 4130Reputation: 4130Reputation: 4130Reputation: 4130Reputation: 4130Reputation: 4130Reputation: 4130Reputation: 4130Reputation: 4130Reputation: 4130
no, it is not about terminology: usually we execute commands and try to understand the result. The commands are actually files.
but from the other side some files are executable and used as commands and others are not. They are handled differently. For example /proc/cpuinfo and /proc/meminfo cannot be executed, because they are not executable, you have obviously no right to execute it. But you can read them and check their content by any command you like (cat, grep, awk, perl, python whatever).
So for example if you want to know the number of processors or check the available memory you may execute:
Code:
grep -c ^processor /proc/cpuinfo
awk '/MemAvail/{print $2 " kB"}' /proc/meminfo
 
1 members found this post helpful.
Old 03-20-2017, 04:07 AM   #7
lakshmi@Linux
LQ Newbie
 
Registered: Mar 2017
Location: Hyderabad
Posts: 16

Original Poster
Rep: Reputation: Disabled
Thank you very much for the help.. Now I am able write the script which will holds the same functionality of existing Unix script.

Regards
Lakshmi
 
  


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
Linux commands & sudo not working goelashish Linux - Newbie 12 11-23-2013 10:05 PM
How long did it take you to get used to using Linux & commands? grishenko45 Linux - General 11 05-25-2012 06:15 PM
output of prtconf ahmedb72 Solaris / OpenSolaris 1 07-06-2007 03:45 PM
prtconf = csaunders Red Hat 1 05-03-2007 09:53 AM
prtconf for linux? WeNdeL Linux - General 2 10-21-2003 07:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:27 PM.

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