The HC bench of Justice FRM Nazmul Ahasn and Justice KM Kamrul Kader passed the order following a petition.
The HC also wants to know the receptivity of the accused in prisons, number of prisoners and physicians of the prisons across the country.
Barrister AM Mahbub Uddin Khokon stood for the petitioner while deputy attorney general ABM Abdullah Al Mahmud Bashar represented the state.
The HC also issued a rule asking the government to explain as to why the ineffectiveness of the authorities concerned to ensure the standard accommodation for the prisoners should not be declared illegal.
Besides, it also issued another rule asking the government to explain as to why the inability of the authorities concerned to fill the vacant posts of the physicians to ensure medical services to the prisoners should not be declared illegal.
Secretaries to the Law, Health, Social Welfare, Public Administration Ministries, director general of the Director General of Health Services, and inspector General of Prisons were made respondent to the rule which is returnable in four weeks.
Advocate JR Khan filed a writ petition with the High Court attaching a report published in the daily newspaper on February 17.
There are 68 prisons and of these, 13 are central jail across the country while the rest 55 are district jails, he said. Only nine physicians are against 129 posts of physicians, he added.