I'm newbie to linux system and I use centos 6. I wanted to check the Ip address while configuring something. Instead of typing "ifconfig", I type "if config" and then the terminal becoming like the following picture. How could I exit this. enter image description here

1 Answer 1


if is a keyword to the shell. You can either complete the syntactical construct, for example by typing then true ; fi, or just type control-c to break back to the normal prompt.

  • Thank you so much for helpful knowledge Oct 23, 2019 at 6:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.