is ok for checking if there is a difference in startup times before and after /etc/hosts modification. The startup time alone does not tell anything useful even if there is a clear difference, so the strace log should be attached from the slow startup case. The command for getting the strace log is (copy&paste from above)
Command
time gnome-terminal -e "exit"
is ok for checking if there is a difference in startup times before and after /etc/hosts modification. The startup time alone does not tell anything useful even if there is a clear difference, so the strace log should be attached from the slow startup case. The command for getting the strace log is (copy&paste from above)
strace -r gnome-terminal -x echo &> /tmp/log
which stores the log to /tmp/log