CN115858075A - Operation prompting method and device, electronic equipment and storage medium - Google Patents

Operation prompting method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115858075A
CN115858075A CN202211645519.6A CN202211645519A CN115858075A CN 115858075 A CN115858075 A CN 115858075A CN 202211645519 A CN202211645519 A CN 202211645519A CN 115858075 A CN115858075 A CN 115858075A
Authority
CN
China
Prior art keywords
information
level
early warning
user
file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211645519.6A
Other languages
Chinese (zh)
Inventor
陈振
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN202211645519.6A priority Critical patent/CN115858075A/en
Publication of CN115858075A publication Critical patent/CN115858075A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The operation prompting method comprises the steps of determining operation command information, target file information and access frequency information corresponding to the target file information through user operation input by a user, wherein the operation command information is used for representing an instruction to be executed generated in response to the user operation, the target file information is used for representing an execution object of the instruction to be executed, the access frequency information is used for representing the frequency of accessing the target file information, operation early warning information is determined based on the access frequency information and the operation command information, the operation early warning information is used for representing the early warning level of the user operation, abnormal prompting information corresponding to the user operation is output according to the operation early warning information, and the abnormal prompting information is used for displaying and prompting the user; the effect of outputting the specific abnormal prompt information of the user operation according to the operation command information and the target file information is realized, accurate and effective prompt information is provided for the user, and the possibility of misoperation of the user is reduced.

Description

Operation prompting method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of computers, and in particular, to an operation prompting method and apparatus, an electronic device, and a storage medium.
Background
An operating system is a system software program which manages and controls computer operations, uses and runs hardware and software resources, and provides common services to organize user interaction, and various operating systems are commonly used on various electronic devices to perform operation control on numerous files.
When a user uses an operating system to operate a file, there is usually no relevant prompt, and only some relevant prompts appear in some specific scenes, for example, a delete file is a relevant prompt of "whether to delete", and the above prompting manner is only to output a fixed prompt based on the current operation action of the user. There is a prompt message that cannot give the user operation pertinence.
Disclosure of Invention
In order to solve the technical problems or at least partially solve the technical problems, the application provides an operation prompting method, an operation prompting device, an electronic device and a storage medium.
In a first aspect, the present application provides an operation prompting method, including:
determining operation command information and target file information based on input user operation; the operation command information is used for representing an instruction to be executed generated in response to the user operation, and the target file information is used for representing an execution object of the instruction to be executed;
determining access frequency information corresponding to the target file information; wherein the access frequency information is used for representing the frequency of accessing the target file information;
determining operation early warning information based on the access frequency information and the operation command information, wherein the operation early warning information is used for representing the early warning level of the user operation;
and outputting abnormal prompt information corresponding to the user operation based on the operation early warning information, wherein the abnormal prompt information is used for displaying and prompting the user.
Optionally, the determining operation early warning information based on the access frequency information and the operation command information includes:
determining a file level corresponding to the access frequency information based on a preset file level graduate table, wherein the file level graduate table comprises the access frequency information and a file level corresponding to the access frequency information, and the file level is used for representing the importance degree of the target file information;
determining a command level corresponding to the operation command information based on a preset command level gradient table, wherein the command level gradient table comprises the operation command information and a command level corresponding to the operation command information, and the command level is used for representing the importance degree of the operation command information;
extracting early warning information corresponding to the user operation from a preset mapping relation table based on the file level and the command level, wherein the preset mapping relation table is used for representing the mapping relation among the file level, the command level and the early warning information;
and determining the early warning information as the operation early warning information.
Optionally, the determining, based on a preset file level gradient table, a file level corresponding to the access frequency information includes:
acquiring an initial level preset by the target file information;
determining the preset file level gradient table based on the initial level;
and determining the file level based on the preset file level gradient table.
Optionally, the determining the access frequency information corresponding to the target file information includes:
acquiring the last access time corresponding to the target file information;
and acquiring the access frequency information of the target file information within preset time.
Optionally, the outputting the abnormal prompt information corresponding to the user operation based on the operation early warning information includes:
determining an early warning level corresponding to the operation early warning information based on a preset early warning level graduate table, wherein the early warning level graduate table comprises the operation early warning information and an early warning level corresponding to the operation early warning information;
when the early warning level is higher than a preset warning level, performing simulation processing based on the operation command information and the target file information to obtain simulation execution result information corresponding to the user operation, wherein the simulation processing is used for representing the simulation execution of the operation command information on the target file information;
and outputting the abnormal prompt information based on the simulation execution result information.
Optionally, after outputting the abnormal prompt information corresponding to the user operation based on the operation early warning information, the method further includes:
acquiring user confirmation operation corresponding to the abnormal prompt information, wherein the user confirmation operation is used for representing confirmation operation input by a user based on the abnormal prompt information;
and responding to the user confirmation operation, processing the target file information according to the operation command information, and obtaining an operation execution result corresponding to the user operation.
Optionally, the access frequency information includes last access time, and after obtaining an operation execution result corresponding to the user operation, the method further includes:
determining a time stamp of an operation execution result corresponding to the operation execution result;
and updating the time stamp of the operation execution result to the last access time, so that the access frequency information is updated.
In a second aspect, the present application provides an operation prompting device, including:
the determining module is used for determining operation command information and target file information based on input user operation; the operation command information is used for representing an instruction to be executed generated in response to the user operation, and the target file information is used for representing an execution object of the instruction to be executed;
the access frequency module is used for determining access frequency information corresponding to the target file information; wherein the access frequency information is used for representing the frequency of accessing the target file information;
the early warning module is used for determining operation early warning information based on the access frequency information and the operation command information, wherein the operation early warning information is used for representing the early warning level of the user operation;
and the output module is used for outputting abnormal prompt information corresponding to the user operation based on the operation early warning information, and the abnormal prompt information is used for displaying and prompting the user.
In a third aspect, an electronic device is provided, which includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
a processor, configured to implement the steps of the operation prompting method according to any embodiment of the first aspect when executing the program stored in the memory.
In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the operation prompting method according to any one of the embodiments of the first aspect.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages:
according to the method and the device, operation command information, target file information and access frequency information corresponding to the target file information are determined through user operation input by a user, wherein the operation command information is used for representing an instruction to be executed generated in response to the user operation, the target file information is used for representing an execution object of the instruction to be executed, the access frequency information is used for representing the frequency of access of the target file information, operation early warning information is determined based on the access frequency information and the operation command information, the operation early warning information is used for representing the early warning level of the user operation, therefore, abnormal prompt information corresponding to the user operation is output according to the operation early warning information, and the abnormal prompt information is used for displaying and prompting the user; the effect of outputting the specific abnormal prompt information of the user operation according to the operation command information and the target file information is realized, accurate and effective prompt information is provided for the user, and the possibility of misoperation of the user is reduced.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a schematic flowchart of an operation prompting method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of an operation prompting method according to another embodiment of the present application;
fig. 3 is a schematic flowchart of an operation prompting method according to another embodiment of the present application;
fig. 4 is a schematic structural diagram of an operation prompting device according to another embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
An operating system is a common mode for operating a computer, and at present, when operating various files in the computer, the operating system has multiple operating modes such as read-only operation, modification and deletion, and different operating modes can perform different processing on the files, so that some operations cannot affect the computer, the system or a user, such as read-only operation, which is only used for reading the files and cannot generate any other influence, while some operations can generate adverse effects on the computer, the system or the user, such as deletion operation, and if the deleted important files of the system are important files, the deletion can cause the system to be incapable of running; therefore, there is a problem that a user operation needs to be prompted, and the conventional prompting method is usually a fixed prompting method set in advance.
One prompting method is that an operating system usually sets different authority capabilities for different users, such as user authority and administrator authority, and part of files can be accessed only by the administrator authority, so that when the user uses the user authority to access files without authority, a prompt of 'no authority to perform the operation' appears; another prompting method is to prompt whether to delete the file when the user performs the deleting operation, so as to prompt the user that the currently executed operation is the deleting operation, and enable the user to confirm whether to execute the file. Although the above manners all achieve the effect of prompting the user, the prompting is not targeted, only a preset prompting message is set for a certain operation, and the user cannot perform targeted prompting when performing abnormal operation.
Taking a Linux system as an example for explanation, one condition is that a Linux user has a prompt when deleting a file, that is, if the user has the authority to delete the file at present, a prompt for confirming whether to delete the file is provided when deleting the file, but the importance degree of the file is not prompted; in addition, when the user deletes the file by using the forced deletion operation when the user operates with the administrator authority, no prompt is provided, and in these cases, when the deleted file is a system file, the problem of system crash may be caused.
Another situation is that, for a Linux system, there are two ways of operating a login system, which are password login and Secure Shell protocol (SSH) remote login, and SSH login requires support of an SSH directory or a file below the SSH directory, and when the Linux system prohibits password login and can only use SSH login, once the authority of the SSH directory or the file below the SSH directory changes, a virtual machine cannot log in, and the Linux system cannot log in and use due to the password login at this time. When the user performs some wrong operations under the two conditions, the user cannot be effectively reminded of the operations, and the user experience is reduced.
Fig. 1 is a schematic flowchart of an operation prompting method according to an embodiment of the present application.
As shown in fig. 1, an embodiment of the present application provides an operation prompting method, including:
s110: determining operation command information and target file information based on input user operation; the operation command information is used for representing an instruction to be executed generated by responding to user operation, and the target file information is used for representing an execution object of the instruction to be executed;
s120: determining access frequency information corresponding to the target file information, wherein the access frequency information is used for representing the frequency of accessing the target file information;
s130: determining operation early warning information based on the access frequency information and the operation command information, wherein the operation early warning information is used for representing the early warning level of user operation;
s140: and outputting abnormal prompt information corresponding to the user operation based on the operation early warning information, wherein the abnormal prompt information is used for displaying and prompting the user.
The operation prompting method in the embodiment is mainly applied to an operating system, and can be a command line system or an image system, such as a Linux system, a Windows system or an android system; in the system, interactive behaviors of user operation exist, corresponding operation command information and target file information are determined based on the user operation, operation early warning information is determined, abnormal prompt information corresponding to the user operation is output based on the operation early warning information, after the user inputs the user operation, the operating system can determine corresponding abnormal prompt information based on the target file information aimed by the user operation and according to the target file information, so that the corresponding abnormal prompt information is input according to specific contents of the user operation.
Step S110 is configured to obtain an operation input by a user and determine a specific content corresponding to the operation, that is, when an operating system receives the user operation input by the user, the user operation may be to read a file, edit the file, delete the file, and the like, and determine operation command information and target file information corresponding to the user operation according to the user operation, where the operation command information is used to represent an execution instruction to be executed, such as a deletion, modification, and movement, generated in response to the user operation, and the target file information is used to represent an execution object of the execution instruction to be executed, such as a file, data in the file, and the like; in an example, when a user inputs a command line for deleting the file a based on a Linux system, the command line input by the user is a user operation, and a specific deletion instruction and file a information can be acquired based on the input command line, where the deletion instruction is operation command information, and the file a information is target file information, so as to effectively acquire specific content of the user operation.
The existing prompting method only adopts some fixed prompts, because what the current operation is judged based on the unicity of the operation action of the user to prompt, and the method cannot give a targeted prompt according to a file corresponding to the operation, so that the problem that the targeted prompt information cannot be given to prompt the user exists.
In step S120, after the target file information is determined, access frequency information corresponding to the target file information needs to be determined, where the access frequency information is used to represent the frequency of accessing the target file information, and the target file information may be used to represent a specific file or data in the specific file; after determining the target file information, analyzing the target file information, for example, determining whether the current target file information is a system file, whether the current target file information is an important file of a user, or the like; because the system file and the important file generally need to be accessed frequently, in this embodiment, the importance of the target file information is determined by the access frequency information corresponding to the target file information, specifically, the access frequency information includes the last access time and the access time information, and step S120 may further include:
s121: acquiring the last access time corresponding to the target file information;
s122: and acquiring the access frequency information of the target file information within the preset time.
In this embodiment, the last access time corresponding to the target file information is determined, where the last access time is used to indicate the latest operation time of the target file information, and the last access time may be the latest reading, modification, and the like; then, obtaining access frequency information of the target file information within preset time, wherein the preset time can be set according to user requirements and can be other times such as 7 days, 20 days, 30 days and the like, namely the access frequency information can be used in the last 7 days or the access frequency is more than 20 times, used in the last 0 days or the access frequency is more than 20 times, used or accessed in the last 30 days or the like; and then determining access frequency information based on the last access time and the access frequency information, wherein the access frequency information is used for representing the last access time corresponding to the target file information and the access frequency information of the target file information in the preset time.
Step S130, determining operation early warning information based on the access frequency information and the operation command information; the method can also comprise the following steps:
s131: determining a file level corresponding to the access frequency information based on a preset file level graduating table, wherein the file level graduating table comprises the access frequency information and a file level corresponding to the access frequency information, and the file level is used for representing the importance degree of the target file information;
s132: determining a command level corresponding to the operation command information based on a preset command level gradient table, wherein the command level gradient table comprises the operation command information and a command level corresponding to the operation command information, and the command level is used for representing the importance degree of the operation command information;
s133: extracting early warning information corresponding to user operation from a preset mapping relation table based on the file level and the command level, wherein the preset mapping relation table is used for representing the mapping relation among the file level, the command level and the early warning information;
s134: and determining the early warning information as operation early warning information.
In this embodiment, the operation warning information is used to represent a warning level of a user operation, for example, the warning level of the user operation for deleting a file a is a warning level iii, the mapping relationship table is used to represent a relationship among a file level, a command level and the warning information, where the warning information is used to represent the operation warning information, the file level is used to represent an importance degree of target file information, the command level is used to represent an operation level of operation command information, and a preset file level graduating table is used to record a preset file level of each target file information, for example, the preset file level of the target file information may be one of a file level iii, a file level ii and a file level i, and different file levels are used to represent importance degrees of the target file information; the preset command level gradient table is used for recording the preset command level of each operation command information, for example, the preset command level of the operation command information may be one of a command level iii, a command level ii and a command level i, and different command levels are used for representing the importance degree of the operation command information; determining the corresponding unique early warning information in a preset mapping relation table by determining the file level and the command level; the operation early warning information in the embodiment can output targeted operation early warning information based on the importance degree of the target file information and the operation level of the operation command information.
In one example, as shown in table 1, the command levels include command level iii, command level ii, and command level i, and the file levels include file level iii, file level ii, and file level i; the early warning information comprises an early warning level III, an early warning level II and an early warning level I. After the file level and the command level are determined, the preset mapping relation table can be traversed according to the file level to extract the early warning information corresponding to the command level, otherwise, the preset mapping relation table can be traversed according to the command level to extract the early warning information corresponding to the file level; since the mapping relation representation is preset by the user, the specific mapping relation user may determine the command level and the file level based on weighting, integration, and the like, which is not limited herein.
TABLE 1
Figure BDA0004003487460000071
The command level may be determined according to the specific content of the operation command information, for example, the command level is command level iii when the operation command information is a delete operation, the command level is command level ii when the operation command information is a modify operation, and the command level is command level i when the operation command information is a read-only operation; other arrangements can also be carried out according to the requirements; the file level can be determined according to multiple dimensions, because the importance degree of the file can be determined according to the file type, for example, the importance degrees of the system file and the cache file are obviously different, and the file type is the initial attribute of the file, the initial level preset by the target file information can be obtained, the initial level is the file level initially defined by the file, the initial level can be determined according to the file type, the initial level can also be set according to the user requirement, the initial level is used as the initial file level of the target file information, and the basic standard function is played for determining the file level corresponding to the target file information; therefore, the file level corresponding to the target file information can be determined through the initial level and then can be determined through the access times of the target file information. That is, step S131 may include:
s1311: acquiring an initial level preset by target file information;
s1312: determining a preset file level gradient table based on the initial level;
s1313: the file level is determined based on a preset file level gradient table.
In this embodiment, a preset initial level of the target file information is first obtained, where the initial level may be determined according to the type of the target file information or according to a user's own setting; determining a preset file level gradient table based on an initial level, wherein the preset file level gradient table corresponding to the initial level needs to be determined after the preset initial level of the target file information is obtained because the initial levels corresponding to different target file information are different, then determining the file level based on the preset file level gradient table, determining the initial importance degree of the target file information through the initial level, determining the preset file level gradient table by combining the initial level and the access frequency information to determine the current importance degree of the target file information, for example, determining the file level gradient table of a file level II by using the initial level II, and determining the file level to be a file level III or the initial level to be the file level II when the access frequency information is used for nearly 7 days or the access frequency is more than 20 times when the access frequency information is not used or accessed for 30 days, and determining the file level to be a file level I; combining the access frequency information including the last access time and the access frequency information of the target file information in the preset time, the corresponding access frequency level can be determined according to the access frequency information, and then the file level is determined based on the initial level and the access frequency level, wherein the access frequency level can be determined by weighting according to the last access time and the access frequency information of the target file information in the preset time, when the access frequency information is the same, the access frequency levels of different levels can be determined according to the distance of the last access time, and the specific determination mode can be determined by weighting, integrating and the like according to the user requirements. The above is merely an example, and the specific determination logic may be set by itself based on the user's needs.
In S140, outputting abnormal prompt information corresponding to the user operation based on the operation warning information, where the abnormal prompt information is used to display a prompt for the user, that is, mainly used to provide accurate and effective prompt information for the user, so that the user can visually check the influence caused by the current user operation, that is, the abnormal prompt information is used to indicate result information after the user operation is performed; on the other hand, since the user operation may be some conventional operations that do not need to be prompted, for example, a read-only operation does not need to output the abnormal prompting information, it can be determined whether the abnormal prompting information needs to be output through the warning information, and therefore step S140 may further include:
s141: determining an early warning level corresponding to the operation early warning information based on a preset early warning level gradiometer, wherein the early warning level gradiometer comprises the operation early warning information and an early warning level corresponding to the operation early warning information;
s142: when the early warning level is higher than the preset warning level, performing simulation processing based on the operation command information and the target file information to obtain simulation execution result information corresponding to user operation, wherein the simulation processing is used for representing simulation execution operation command information on the target file information;
s143: and outputting abnormal prompt information based on the simulation execution result information.
In the embodiment, an early warning level corresponding to operation early warning information is determined through a preset early warning level gradiometer, the early warning level is judged, and whether the early warning level is higher than a preset warning level or not is judged, wherein the early warning level gradiometer comprises the operation early warning information and an early warning level corresponding to the operation early warning information, and the preset early warning level is set based on user requirements and is used as a standard for reminding whether current user operation needs to be reminded or not; when the early warning level is not higher than the preset warning level, the user operation is not required to be prompted at the moment, namely abnormal prompt information corresponding to the user operation is not required to be output based on the operation early warning information; when the early warning level is higher than the preset warning level, performing simulation processing based on the operation command information and the target file information, wherein the simulation processing is used for representing that simulation execution of the operation command information on the target file information is not actual execution of the operation command information, so as to obtain simulation execution result information corresponding to user operation; referring to the content of table 1, for example, if the preset warning level is warning level ii, it is determined that the warning level iii is higher than the preset warning level according to the mapping relationship between the file level and the command level in table 1, and it is determined that the warning level ii or the warning level i is not higher than the preset warning level according to the mapping relationship between the file level and the command level in table 1; therefore, the effect of effectively determining whether the abnormal prompt information needs to be output is achieved.
In an example, a user operation input by a user is to delete a file a, operation command information is determined to be a deletion operation based on the operation of deleting the file a, target file information is inquired about access frequency information corresponding to the file a, and an early warning level determined according to the deletion operation and the access frequency information corresponding to the file a is a early warning level iii, so that simulation processing is performed based on the deletion operation and the access frequency information corresponding to the file a to obtain simulation execution result information after deleting the file a, for example, the simulation execution result information is that a system cannot normally log in after deleting the file a, and at this time, abnormal prompt information is output according to the simulation execution result information: and after the A file is deleted, the system can not log in normally and whether the deletion is continued or not is judged. Therefore, the abnormal prompt information can effectively prompt the user in a targeted manner according to the user operation, so that the user is prevented from executing misoperation under the condition that the user does not know the importance degree of the file, and the effect of reducing the misoperation of the user is also achieved.
After the abnormality prompt information is output, the user may perform a corresponding operation, such as confirming the executed operation, canceling the executed operation, and the like, based on the abnormality prompt information.
In an embodiment, after step S140, the method may further include:
s144: acquiring user confirmation operation corresponding to the abnormal prompt information, wherein the user confirmation operation is used for representing the confirmation operation input by the user based on the abnormal prompt information;
s145: and responding to the confirmation operation of the user, processing the target file information according to the operation command information, and obtaining an operation execution result corresponding to the user operation.
The user confirmation operation in this embodiment is used to represent a confirmation operation input by the user based on the abnormal prompt information, and in response to the user confirmation operation, the target file information is processed according to the operation command information to obtain an operation execution result corresponding to the user operation, so as to execute the user operation input by the user.
Since the access frequency information is used to indicate the last access time corresponding to the target file information and the access frequency information of the target file information within the preset time, after step S145 is executed, the access frequency information of the target file information needs to be updated, so that when a user operation input by a user is received next time, the access frequency information after the update of the target file information can be determined, where the access frequency information includes the last access time, so that step S145 may further include:
s146: determining a time stamp of an operation execution result corresponding to the operation execution result;
s147: and updating the time stamp of the operation execution result to the last access time, so that the access frequency information is updated.
In this embodiment, after the operation execution result corresponding to the user operation is obtained by processing the target file information according to the operation command information in response to the user confirmation operation, the timestamp of the operation execution result needs to be determined, where the timestamp of the operation execution result is used to indicate the time when the operation command information processes the target file information, or may be the time generated by the operation execution result, and the timestamp of the operation execution result is updated to the last access time, that is, the timestamp of the operation execution result may be used as the new last access time, and the access frequency information of the target file information within the preset time of the access frequency information is updated according to the timestamp of the operation execution result, so as to complete the update of the access frequency information, as shown in fig. 3, when the user operation loop execution steps S110 to S140 are received again, the determined access frequency information is the updated access frequency information, and the abnormal prompt information corresponding to the output user operation is used to have pertinence and real-time, thereby achieving an effect of accurately and effectively prompting the user.
Referring to fig. 4, the present application further discloses an embodiment, and provides an operation prompting device, including:
a determining module 410, configured to determine operation command information and target file information based on an input user operation; the operation command information is used for representing an instruction to be executed generated in response to user operation, and the target file information is used for representing an execution object of the instruction to be executed;
the access frequency module 420 is configured to determine access frequency information corresponding to the target file information; the access frequency information is used for representing the frequency of accessing the target file information;
the early warning module 430 is configured to determine operation early warning information based on the access frequency information and the operation command information, where the operation early warning information is used to represent an early warning level of a user operation;
and an output module 440, configured to output, based on the operation early warning information, abnormal prompt information corresponding to the user operation, where the abnormal prompt information is used to display and prompt the user.
In one embodiment, the pre-warning module 430 may include:
the file level unit is used for determining a file level corresponding to the access frequency information based on a preset file level graduating table, the file level graduating table comprises the access frequency information and a file level corresponding to the access frequency information, and the file level is used for representing the importance degree of the target file information;
the command level unit is used for determining a command level corresponding to the operation command information based on a preset command level gradient table, the command level gradient table comprises the operation command information and a command level corresponding to the operation command information, and the command level is used for representing the importance degree of the operation command information;
the extraction unit is used for extracting the early warning information corresponding to the user operation from a preset mapping relation table based on the file level and the command level, and the preset mapping relation table is used for representing the mapping relation among the file level, the command level and the early warning information;
and the first determining unit is used for determining the early warning information as the operation early warning information.
In one embodiment, the file level unit may include:
the initial level subunit is used for acquiring an initial level preset by the target file information;
the file level gradient table unit is used for determining a preset file level gradient table based on the initial level;
and the determining subunit is used for determining the file level based on a preset file level gradient table.
In an embodiment, the access frequency information includes a last access time and access times information, and the access frequency module 420 may include:
the last access time unit is used for acquiring the last access time corresponding to the target file information;
the device comprises a preset time unit, a time unit and a time unit, wherein the preset time unit is used for acquiring access frequency information of target file information within preset time;
and the second determining unit is used for determining the access frequency information based on the last access time and the access frequency information.
In an embodiment, the output module 440 may further include:
the third determining unit is used for determining an early warning level corresponding to the operation early warning information based on a preset early warning level gradiometer, wherein the early warning level gradiometer comprises the operation early warning information and an early warning level corresponding to the operation early warning information;
the execution unit is used for carrying out simulation processing based on the operation command information and the target file information to obtain simulation execution result information corresponding to user operation when the early warning level is higher than the preset warning level, and the simulation processing is used for representing the simulation execution operation command information of the target file information;
and the output unit is used for outputting the abnormal prompt information based on the simulation execution result information.
In an embodiment, the apparatus may further comprise:
the acquiring unit is used for acquiring a user confirmation operation corresponding to the abnormal prompt information, and the user confirmation operation is used for representing a confirmation operation input by a user based on the abnormal prompt information;
and the response unit is used for responding to the confirmation operation of the user, processing the target file information according to the operation command information and obtaining an operation execution result corresponding to the user operation.
In an embodiment, the access frequency information includes a last access time, and the apparatus may further include:
the time determining unit is used for determining a time stamp of an operation execution result corresponding to the operation execution result;
and the updating unit is used for updating the time stamp of the operation execution result to the last access time so as to update the access frequency information.
The implementation process of the functions and actions of each module in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
As shown in fig. 5, an electronic device according to an embodiment of the present application includes a processor 511, a communication interface 512, a memory 213, and a communication bus 514, where the processor 511, the communication interface 512, and the memory 213 communicate with each other through the communication bus 514,
a memory 513 for storing a computer program;
in an embodiment of the present application, when the processor 511 is configured to execute the program stored in the memory 513, the method for prompting an operation provided in any one of the foregoing method embodiments includes:
the present application further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the operation prompting method provided in any one of the foregoing method embodiments.
It is noted that, in this document, relational terms such as "first" and "second," and the like, are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
The foregoing description has described certain embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The foregoing are merely exemplary embodiments of the present invention, which enable those skilled in the art to understand or practice the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. An operation prompting method is characterized by comprising the following steps:
determining operation command information and target file information based on input user operation; the operation command information is used for representing an instruction to be executed generated in response to the user operation, and the target file information is used for representing an execution object of the instruction to be executed;
determining access frequency information corresponding to the target file information; the access frequency information is used for representing the frequency of the target file information;
determining operation early warning information based on the access frequency information and the operation command information, wherein the operation early warning information is used for representing the early warning level of the user operation;
and outputting abnormal prompt information corresponding to the user operation based on the operation early warning information, wherein the abnormal prompt information is used for displaying and prompting the user.
2. The method of claim 1, wherein determining operation warning information based on the access frequency information and the operation command information comprises:
determining a file level corresponding to the access frequency information based on a preset file level graduate table, wherein the file level graduate table comprises the access frequency information and a file level corresponding to the access frequency information, and the file level is used for representing the importance degree of the target file information;
determining a command level corresponding to the operation command information based on a preset command level gradient table, wherein the command level gradient table comprises the operation command information and a command level corresponding to the operation command information, and the command level is used for representing the importance degree of the operation command information;
extracting early warning information corresponding to the user operation from a preset mapping relation table based on the file level and the command level, wherein the preset mapping relation table is used for representing the mapping relation among the file level, the command level and the early warning information;
and determining the early warning information as the operation early warning information.
3. The method according to claim 2, wherein the determining the file level corresponding to the access frequency information based on a preset file level gradient table comprises:
acquiring an initial level preset by the target file information;
determining a preset file level gradient table based on the initial level;
and determining the file level based on the preset file level gradient table.
4. The method of claim 1, wherein the access frequency information includes a last access time and access frequency information, and the determining the access frequency information corresponding to the target file information includes:
acquiring the last access time corresponding to the target file information;
and acquiring the access frequency information of the target file information within preset time.
5. The method of claim 1, wherein outputting abnormal prompt information corresponding to the user operation based on the operation warning information comprises:
determining an early warning level corresponding to the operation early warning information based on a preset early warning level graduate table, wherein the early warning level graduate table comprises the operation early warning information and an early warning level corresponding to the operation early warning information;
when the early warning level is higher than a preset warning level, performing simulation processing based on the operation command information and the target file information to obtain simulation execution result information corresponding to the user operation, wherein the simulation processing is used for representing the simulation execution of the operation command information on the target file information;
and outputting the abnormal prompt information based on the simulation execution result information.
6. The method of claim 1, wherein after outputting the abnormal prompt information corresponding to the user operation based on the operation warning information, the method further comprises:
acquiring a user confirmation operation corresponding to the abnormal prompt information, wherein the user confirmation operation is used for representing a confirmation operation input by a user based on the abnormal prompt information;
and responding to the user confirmation operation, processing the target file information according to the operation command information, and obtaining an operation execution result corresponding to the user operation.
7. The method according to claim 6, wherein the access frequency information includes last access time, and after obtaining the operation execution result corresponding to the user operation, the method further includes:
determining a time stamp of an operation execution result corresponding to the operation execution result;
and updating the time stamp of the operation execution result to the last access time, so that the access frequency information is updated.
8. An operation prompting device, comprising:
the determining module is used for determining operation command information and target file information based on input user operation; the operation command information is used for representing an instruction to be executed generated in response to the user operation, and the target file information is used for representing an execution object of the instruction to be executed;
the access frequency module is used for determining access frequency information corresponding to the target file information; wherein the access frequency information is used for representing the frequency of accessing the target file information;
the early warning module is used for determining operation early warning information based on the access frequency information and the operation command information, wherein the operation early warning information is used for representing the early warning level of the user operation;
and the output module is used for outputting abnormal prompt information corresponding to the user operation based on the operation early warning information, and the abnormal prompt information is used for displaying and prompting the user.
9. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the steps of the operation prompting method according to any one of claims 1 to 7 when executing the program stored in the memory.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the operation prompting method according to any one of claims 1-7.
CN202211645519.6A 2022-12-16 2022-12-16 Operation prompting method and device, electronic equipment and storage medium Pending CN115858075A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211645519.6A CN115858075A (en) 2022-12-16 2022-12-16 Operation prompting method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211645519.6A CN115858075A (en) 2022-12-16 2022-12-16 Operation prompting method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115858075A true CN115858075A (en) 2023-03-28

Family

ID=85674721

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211645519.6A Pending CN115858075A (en) 2022-12-16 2022-12-16 Operation prompting method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115858075A (en)

Similar Documents

Publication Publication Date Title
CN108287708B (en) Data processing method and device, server and computer readable storage medium
US8745610B2 (en) Maintenance system, maintenance method and program for maintenance
CN106098069B (en) Identity authentication method and terminal equipment
CN112799925A (en) Data acquisition method and device, electronic equipment and readable storage medium
CN111190962A (en) File synchronization method and device and local terminal
CN109033313B (en) Method and terminal equipment for realizing full-disk scanning function by using USN
CN112000971B (en) File permission recording method, system and related device
CN112947907B (en) Method for creating code branches
CN111241198B (en) Data synchronization method and device and data processing equipment
CN115858075A (en) Operation prompting method and device, electronic equipment and storage medium
CN112416500B (en) Information processing method and electronic equipment
CN103995842B (en) File deletion method and system
CN113590564A (en) Data storage method and device, electronic equipment and storage medium
CN111737223A (en) File copying method, device, equipment and storage medium
CN112036133A (en) File saving method and device, electronic equipment and storage medium
CN111258503A (en) Management method and device of CIROS file system
CN111176738A (en) Display card display method and system of UEFI mode and related components thereof
CN113934453B (en) Risk detection method, risk detection device and storage medium
US20090248761A1 (en) File control system, information processing device, host device, and recording medium that stores program
KR102567773B1 (en) Log information extraction device and method in combat system system
CN109697192B (en) Method and device for storing pseudo terminal log file
CN110781188B (en) Form information processing method and device, electronic equipment and storage medium
US20220366035A1 (en) Execution control system, execution control method, and program
CN115017111A (en) Resource file processing method and device, electronic equipment and readable medium
CN117407077A (en) Configuration editing method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination