update text in file ubuntu terminal code example Example: ubuntu replace text in file sed -i 's/original/new/g' file.txt