Moksa (salvation or liberation) is not the only concern of Hindu philosophy but it is one of the chief concerns. Since the Vedic age, the Hindu teachers have been conjecturing about the ways of attaining moksa. The six schools of Hindu philosophy present varying concepts of moksa. The Sankhya school, being jnana yoga, preaches moksa through metaphysical knowledge. The Yoga school, being dhyana yoga, preaches that moksa comes through meditation and asceticism. The Nyaya and Vaisheshika schools see knowledge as the path to moksa.
The passage 1.1.4 in the Vaisesika-sutra says: “The Supreme Good (moksa) comes from the knowledge, produced by a particular dharma, of the essence of the Predicables, Substance, Attribute, Action, Genus, Species, and Combination, by means of their resemblances and differences.” The passage 1.1.1 in Nyaya-sutra says: “Moksa is attained by the true knowledge of the means of right cognition, the objects of such cognition, doubt, purpose, instance, conclusion, discussion, debate, sophistry, fallacy, quibbling, faulty reasoning, and losing (a debate).”
The Mīmāṃsā school insists that moksa cannot come through knowledge alone, for the individual must first perform all the actions which are good (in line with the teachings of the Vedas). The schools of Vedanta hold that moksa means being embraced and subsumed into the Brahman (the ultimate principle of the universe) and this end can be achieved by following the teachings of the Upaniṣads.