There are several words that repeat in Psalm 119 that refer to how God provides us direction:
WORD . . . What God says to us either through writing (the Bible) or through someone else (an evangelist, pastor, friend, a book).
WAY . . . What we observe from what God says or how he acts.
PRECEPT . . . A principle prescribing a particular course of action or conduct.
COMMANDMENT . . . A direct instruction from God. This can be in writing, as in the Old and New Testaments. This can be spoken to an individual human or group.
LAW . . . A set of rules of conduct or procedures established by God or an authority.
STATUTE . . . A particular rule, perhaps part of a body of law.
ORDINANCE . . . A more refined part of a statute perhaps specific to an activity or a certain group of people.
JUDGMENT . . . An opinion that is expressed to further refine an interpretation of a law, statute or ordnance. This also might be rendered by a judge in a courtroom or by a legislative body.
TESTIMONY . . . A declaration by an entity or witness about the meaning or effect of a law, statute or ordinance. This can be given by God about what he himself has said or done. Or it might be given by those who have been affected by a law, statute or ordinance.