A method of controlling a mobile terminal, comprising the steps of: establishing a data path with an external device; receiving application execution information of the external device from the external device, the application execution information including a symbol indicating a type of a first application lastly executed in the external device; and displaying the application execution information received from the external device on a touch screen in a lock state of the mobile terminal, wherein the lock state comprises a state in that at least a part of functions except a specific function provided on a lock screen is restricted until a command input of a specific type is inputted, wherein a lock release mode comprises a first lock release mode for entering a home screen, and a second lock release mode for entering a state that the first application is executed at the mobile terminal corresponding to the application execution information displayed in the lock screen of the mobile terminal, wherein the method further comprises: entering the first lock release mode in response to a first lock release input that is unrelated to the application execution information displayed on the touch screen in the lock state of mobile terminal; and entering the second lock release mode in response to a second lock release input that is related to the application execution information displayed on the touch screen in the lock state of mobile terminal, and wherein the method further comprises: if the first application is not installed in the mobile terminal, determining substitute applications capable of providing a function similar to that of the first application among applications installed in the mobile terminal; displaying a list of the substitute applications on the lock screen; and cancelling the lock screen and executing one of the substitute applications in response to an input related thereto. establishing a data path with an external device; receiving application execution information of the external device from the external device, the application execution information including a symbol indicating a type of a first application lastly executed in the external device; and displaying the application execution information received from the external device on a touch screen in a lock state of the mobile terminal, wherein the lock state comprises a state in that at least a part of functions except a specific function provided on a lock screen is restricted until a command input of a specific type is inputted, wherein a lock release mode comprises a first lock release mode for entering a home screen, and a second lock release mode for entering a state that the first application is executed at the mobile terminal corresponding to the application execution information displayed in the lock screen of the mobile terminal, wherein the method further comprises: entering the first lock release mode in response to a first lock release input that is unrelated to the application execution information displayed on the touch screen in the lock state of mobile terminal; and entering the second lock release mode in response to a second lock release input that is related to the application execution information displayed on the touch screen in the lock state of mobile terminal, and entering the first lock release mode in response to a first lock release input that is unrelated to the application execution information displayed on the touch screen in the lock state of mobile terminal; and entering the second lock release mode in response to a second lock release input that is related to the application execution information displayed on the touch screen in the lock state of mobile terminal, and wherein the method further comprises: if the first application is not installed in the mobile terminal, determining substitute applications capable of providing a function similar to that of the first application among applications installed in the mobile terminal; displaying a list of the substitute applications on the lock screen; and cancelling the lock screen and executing one of the substitute applications in response to an input related thereto. if the first application is not installed in the mobile terminal, determining substitute applications capable of providing a function similar to that of the first application among applications installed in the mobile terminal; displaying a list of the substitute applications on the lock screen; and cancelling the lock screen and executing one of the substitute applications in response to an input related thereto.