1. A method of unlocking a locking mode of a portable terminal, the method comprising: sensing a user's gesture input has been previously set when in a locking mode of the portable terminal; unlocking the locking mode in response to sensing the user's gesture input; and executing a function mapped to the user's gesture input when unlocking the locking mode.