Grizzly or black bear?
Once I was tent camping in Colorado in a place with a big camp table, made some oatmeal and set it to cool down on the table. Went to my truck only few feet away to get some stuff. When I had turned around there was a bear looking like it had setup itself for lunch at the table, it really looked like a person seated at the table with front paws on it and around my oatmeal and getting ready to eat it. I chased it away clapping my hands and yelling while charging at it.
One place I camped in Sierra Nevada had swarms of bears, literally, and they were crapping around to the point had to watch your step around the camps. One day suddenly a bear was in my camp and close to me, completely out of the blue, looking curious. I was stunned and a bit scared, and had a crazy thought if it would obey commands? It was my early experience with black bears and I wasnt confident with charging and scaring them yet. I started to tell and motion to it sit and then it did, like a dog. Being pretty shocked I went and got my bear spray then I sat down in front of the bear leaning on a tree behind me. It didnt look hostile to me and I started to motion to it and tell to lay down - and it did, just like a dog, belly on the ground front paws outstretched. There were some nice moments of peace and looking at each other. But very shortly, a bigger cinnamon bear charged out of the blue from the woods and had chased this smaller curious bear (it was adult, not a cub though) up on the tree, it only took seconds. The big one then run off as I got up and yelled. The smaller one had run off too later. Haven't seen them again.