,.
Control how the Command history is recorded:Environment variable: HistcontrolThree values:Ignoredups: Ignoring duplicate commands; the so-called repetition must be continuous and identical, including options and parameters;Ignorespace: Ignores all commands that begin with whitespace, not records;Ignoreboth: Ignore the above two items, both ignore the duplicate command, also ignore the beginning of the blank command;
] ~]# w 14:18:12 up 2:57, 2 users, load average: 0.00, 0.00, 0.00USER TTY FROM [emailprotected] IDLE JCPU PCPU WHATroot pts/1 192.168.152.1 11:25 2:53m 0.02s 0.02s -bashroot pts/2 192.168.152.1 14:15 0.00s 0.01s 0.00s wThe basic features of bash:(1) Command historyHistoryEnvironment variables:Histsize: The number of records in the command history;
View the history command and history command
Files have been cleared during production. Which of the following operations can be checked?
Use history to view historical commands:
$ History | more
You can also run the following command to view the history:
$ Vi ~ /.
This property returns the and of the number of addresses that are contained under "forward" and "back" two keys. I don't seem to use this property very often, and I don't use it very much.
The history object provides three ways to access the history list:
History.back () Loads the previous URL in the History list, which is equivalent to pressing the back button
| grep YPRoot 16947 0.0 0.0 36516 1264? Sl 13:10 0:00 YpbindRoot 17503 0.0 0.0 4124 740 pts/0 s+ 19:19 0:00 grep YP6. Control the total number of historical commands with HistsizeAdd the following two lines to the. Bash_profile and then re-login to bash (Translator Note: use source. bash_profile) To see what has changed, in this case, the Bash command history ca
YpbindRoot 17503 0.0 0.0 4124 740 pts/0 s+ 19:19 0:00 grep YP6. Control the total number of historical commands with HistsizeAdd the following two lines to the. Bash_profile and then re-login to bash (Translator Note: use source. bash_profile) To see what has changed, in this case, the Bash command history can only store 450 commands.#vi ~/.bash_profilehistsize=
in the command line to this program. This shell is also an advanced programming language. Bash is the default shell program for many Linux systems. Most Linux releases also contain other shell programs, and even more shell programs for download.
Bash, compiled by the GNU program, contains the original version of the Bourne shell, which is the first shell under UNIX published by ATT. I have suggested that r
Linux Summary bash features
Command history:
Use command: History
Environment variables:
Histsize: The number of bars recorded in the command history buffer, which defaults to 1000;
Histfile: Record the current logged-in user logout the histo
, "mybox.mydomain.com ")
06 \ j number of processes suspended by ^ Z in this shell
07 \ l terminal device name of the shell (for example, "ttyp4 ")
08 \ n line break
09 \ r carriage return
10 \ s shell Name (such as "bash ")
11 \ t 24-hour time (for example, "23:01:01 ")
12 \ T 12-hour time (for example, "11:01:01 ")
13 \ @ 12-hour time with am/pm
14 \ u User Name
15 \ v bash version (e.g. 2.04)
16 \ V
Copy codeThe Code is as follows: In the C # Web program, for example, for the page button writing back to the previous page codeCopy codeThe Code is as follows:This. RegisterClientScriptBlock ("E", " "); Among them, history. go (-2) should be written as-2. Because the page has been refreshed once before the button event is triggered, it should be-2.Copy codeThe Code is as follows:Response. Write (" "); It must also be written as "-2 ". It is different
instruction-History can't do, when your The target is ' record-full'(GDB) record function-call-History can't do, when your The target is ' record-full'And the only target type available isFull, the other documented type"Btrace"Fails with"Target does not support branch tracing."So quite possibly it just isn'T supported for the target, but as it's a mainstream modern one(GDB7.6.1-ubuntu, on AMD64 Linux Mint"
Every command we operate is often recorded by the machine, and some sensitive operation commands are blocked for security purposes.Set the default number of records in Linux:Temporary effect:Export histsize = 5HistoryValid permanently:Echo "Export histseze = 5">/etc/profile./Etc/profile or source/etc/profile // The configuration must take effect.Control history files: variable of the number of historical records in the command lineCat ~ /. Bash_histor
About the history of jquery
jquery History Plugin helps you-support back/forward buttons and bookmarks in your JavaScript applications. Historical jquery Plug-ins can be To help you get back to your JavaScript support applications/forward buttons and bookmarks. You can store the "application state" into the URL hash and restore the states from it. It is possible to save the URL hash of the application state
Basic features of Bash1. Command historyHistory view previously used commandsHistfile (environment variable) specifies the command history of the stored file[[email protected] tmp]# echo $HISTFILE--will read the file that holds the history command/root/.bash_historyExample: Modifying an environment variable Histfile[Email protected] tmp]# export HISTFILE=/ROOT/AA [[email protected] tmp]# echo $HISTFILE/ROOT
executed to start with PS:
#! PSPS aux | grep ypRoot 16947 0.0 0.1 36516 1264? SL ypbindRoot 17503 0.0 0.0 4124 740 pts/0 S + grep yp
6. Use histsize to control the total number of historical Command records
Append the following two lines to the. bash_profile file and log on to the bash shell again. The number of command history records will change to 450:
# Vi ~ /. Bash_profileHistory Size = 450Histfilesi
6. use HISTSIZE to control the total number of rows recorded in the history command to append the following two rows. bash_profile file and log on to bash shell again. The number of command history records will change to 450: # vi ~ /. Bash_profile HISTSIZE = 450 HISTFILESIZE = 450 7. use HISTFILE to change the name of a historical file. by default, the command
Related interfaces: iurlhistorystg, ienumstaturl, iurlhistorystg2 related methods:
Iurlhistorystg: enumurlsThis method returns an ienumstaturl interface pointer, which is used to enumerate ie history records.
Lresult
Ienumstaturl
::
Next (ulong Celt, lpstaturl rgelt, ulong * pceltfetched)
Parameter description:
CeltThe value cannot be 0, but can be set to 1.
RgeltIs a staturl structure pointer that is filled by a MS-IE.
PceltfetchedReturned by the me
The following two tips to enhance Bash functions: one is to improve Bash command history management, and the other is to enable Bash to have a more intelligent automatic completion feature. The implementation process is not complex. You only need to modify the default configuration of
it, as a set of software inherited from UNIX, the format and style of commands are also a kind of inertia and should not be changed easily. There are many such examples in Linux, such as cc-> gcc, lex-> flex, yacc-> bison, all follow the UNIX habit.
In UNIX-like systems, too many scripts are written using Shell scripts, so this should not be changed easily. For example, if we have compiled some software or class libraries, we will. /configure is a script written in Shell (generated accurately.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.