im learning linux and i have tried to experiment with searching and replacing text in a file

i remember a while a go i read that you can do a search and then replace certain text with just one command in the linux shell

can you tell me what that command is?