sudo(8) sed.1 -i 's/us.archive.ubuntu.com/br.archive.ubuntu.com/g' /etc/apt/sources.list
execute a command as another user
stream editor for filtering and transforming text
-i[SUFFIX], --in-place[=SUFFIX]

       edit files in place (makes backup if extension supplied)
If no -e, --expression, -f, or --file option is given, then the first non-option argument is taken as the
sed script to interpret.  All remaining arguments are names  of  input  files;  if  no  input  files  are
specified, then the standard input is read.
source manpages: sudosed