Xcode path warning message

Hi!
I tried pasting the xcode path on command line and this is what happened

nandhinishankar$ sudo xcode-select --switch /Applications/Xcode.app

WARNING: Improper use of the sudo command could lead to data loss

or the deletion of important system files. Please double-check your

typing when using sudo. Type “man sudo” for more information.

To proceed, enter your password, or type Ctrl-C to abort.

What am I doing wrong? Xcode is in my Applications folder.
Is this warning message supposed to come up?

Not sure what you are trying to do here…

You can always do “sudo su -” first, which will give you the root privileges and then you can try again

Hope it helps,
Mircea

Nothing went wrong. That is just your computer telling you to be careful when you use sudo. Your command is safe.

I just went ahead and entered my password and executed the command.
I thought I was doing something wrong haha, it was just the computer telling me to be careful.
Thanks though!

Oh okay
I just went ahead and entered the password afterwards and I managed to execute the command, thought I made a mistake somewhere haha.
Thank you!