How to find unix/linux system info like OS version, RAM, no. of processors, hard disk, memory dedicated to a particular process, memory utilization of java using java or shell scripts.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To find the version of the kernel, use
uname -rin a shell script. All kinds of information regarding the hardware can be retrieved from the files in/proc./proc/cpuinfocontains information about the CPU’s, including their number./proc/meminfoshows the total physical memory, free memory, etc.If you only want to fetch a particular field, you can filter the output like this:
dfshows you all of the mounted storage devices and their used space./proc/PID/statusshows the amount of virtual memory dedicated to the process, wherePIDis the numeric process id.