Sponsored Content
Top Forums UNIX for Beginners Questions & Answers How to get the "history" command to show all that is in the .bash_history file? Post 302982426 by Don Cragun on Wednesday 28th of September 2016 10:50:20 PM
Old 09-28-2016
If you want to go above the default 500 initial values for HISTFILESIZE and HISTSIZE, you'll probably need to set them in your shell startup files, logout of all of your current terminal sessions, and login again to make them take effect. Trying to recover more than HISTFILESIZE entries from your past history is not likely to work until you build up the history after resetting those values.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Problems with "show device" command

I have a DS25 and when i run "show device" don't appear my 'dka.....' and 'dkb....' devices, but i know they must be there, where could be the error? what can i do to see them? I'm using Tru64 PD: Im so sorry if i repeat this Q but i really need an answer and i dunno where to ask... (6 Replies)
Discussion started by: Lestat
6 Replies

2. HP-UX

Problems with "show device" command

I have a DS25 and when i run "show device" don't appear my 'dka.....' and 'dkb....' devices, but i know they must be there, where could be the error? what can i do to see them? (3 Replies)
Discussion started by: Lestat
3 Replies

3. Shell Programming and Scripting

Command Character size limit in the "sh" and "bourne" shell

Hi!!.. I would like to know what is maximum character size for a command in the "sh" or "bourne" shell? Thanks in advance.. Roshan. (1 Reply)
Discussion started by: Roshan1286
1 Replies

4. Shell Programming and Scripting

What is the ksh equivalent to bash's "history -c" command?

Hi, What is the korn shell equivalent of bash shell's "history -c" command? I do know, how to clear the history list in ksh, I can do the following: > ~/.sh_historybut still, I am interested to know the single one line command as 'history -c' gives error on my ksh (1 Reply)
Discussion started by: royalibrahim
1 Replies

5. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

6. UNIX for Dummies Questions & Answers

Unix "look" Command "File too large" Error Message

I am trying to find lines in a text file larger than 3 Gb that start with a given string. My command looks like this: $ look "string" "/home/patrick/filename.txt" However, this gives me the following message: "look: /home/patrick/filename.txt: File too large" So, I have two... (14 Replies)
Discussion started by: shishong
14 Replies

7. UNIX for Dummies Questions & Answers

[Solved] How to clear "history" command entries??

As in the title, how to clear the history entries? For eg: if i enter history, series of linux commands getting displayed from day 1. I need to clear those entries and want linux commands to be stored freshly. Thanks in advance (6 Replies)
Discussion started by: karthick nath
6 Replies

8. UNIX for Dummies Questions & Answers

Using "mailx" command to read "to" and "cc" email addreses from input file

How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address and column 3 contains “cc” e-mail address to include with same email. Sample input file, email.txt Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies

9. Red Hat

"/usr/sbin/hpacucli ctrl all show" command does not work

Dear Concern, We have observed that following command stuck/does not work in some RedHat nodes. Please advise us to troubleshoot the issue. /usr/sbin/hpacucli ctrl all show Note: HP Array Configuration Utility CLI for Linux 64-bit With Best Regards, Md. Abdullah-Al Kauser (3 Replies)
Discussion started by: makauser
3 Replies

10. Shell Programming and Scripting

Bash script - Print an ascii file using specific font "Latin Modern Mono 12" "regular" "9"

Hello. System : opensuse leap 42.3 I have a bash script that build a text file. I would like the last command doing : print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt where : print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
MAKEHISTORY(8)						      System Manager's Manual						    MAKEHISTORY(8)

NAME
makehistory - tools to recover Usenet history database. SYNOPSIS
makehistory [ -A oldtmp ] [ -a active ] [ -b ] [ -f filename ] [ -i ] [ -n ] [ -o ] [ -r ] [ -s size ] [ -T tmpdir ] [ -u [ -v ] ] DESCRIPTION
Makehistory rebuilds the history(5) text file and the associated dbz(3) database. The default name of the text file is /var/lib/news/his- tory; to specify a different name, use the ``-f'' flag. Makehistory scans the active(5) file to determine which newsgroup directories within the spool directory, /var/spool/news, should be scanned. (If a group is removed, but its spool directory still exists, makehistory will ignore it.) The program reads each file found and writes a history line for it. After the text file is written, makehistory will build the dbz database. OPTIONS
-A If the ``-A'' flag is used then the argument given is the pathname makehistory can use to store a copy of the history file as it's being built. It will be appended to, so existing data will not be lost (and so should be valid history entries). -a If the ``-a'' flag is given then the argument is the active file to use rather than the default one of /var/lib/news/active. -b If the ``-b'' flag is used, then makehistory will remove any articles that do not have valid Message-ID headers in them. -f If the ``-f'' flag is used, then the database files are named file.dir and file.pag. If the ``-f'' flag is not used, then a tempo- rary link to the name history.n is made and the database files are written as history.n.pag and history.n.dir. -o If the ``-o'' flag is used, then the link is not made and any existing history files are overwritten. If the old database exists, makehistory will use it to determine the size of the new database. -i To ignore the old database use the ``-i'' flag. Using the ``-o'' flag implies the ``-i'' flag. -s The program will also ignore any old database if the ``-s'' flag is used to specify the approximate number of entries in the new database. Accurately specifying the size is an optimization that will create a more efficient database. (The size should be the estimated eventual size of the file, typically the size of the old file.) For more information, see the discussion of dbzfresh and dbzsize in dbz(3). -u If the ``-u'' flag is given, then makehistory assumes that innd is running. It will pause the server while scanning, and then send ``addhist'' commands (see ctlinnd(8)) to the server for any article that is not found in the dbz database. The command ``makehis- tory -bu'' is useful after a system crash, to delete any mangled articles and bring the article database back into a more consistent state. -v If the ``-v'' flag is used with the ``-u'' flag, then makehistory will put a copy of all added lines on its standard output. -n To scan the spool directory without rebuilding the dbz files, use the ``-n'' flag. If used with ``-u'', the server will not be paused while scanning. -r To just build the dbz files from an existing text file, use the ``-r'' flag. The ``-i'' or ``-s'' flags can be useful if there are no valid dbz files to use. -T Makehistory needs to create a temporary file that contains one line for each article it finds, which can become very large. This file is created in the /var/spool/news/in.coming/tmp directory. The ``TMPDIR'' environment variable may be used to specify a dif- ferent directory. Alternatively, the ``-T'' flag may be used to specify a temporary directory. In addition, the sort(1) that is invoked during the build writes large temporary files (often to /var/tmp but see your system manpages). If the ``-T'' flag is used, then the flag and its value will be passed to sort. On most systems this will change the temporary directory that sort uses. if used, this flag and its value will be passed on to the sort(1) command that is invoked during the build. EXAMPLES
A typical way to use this program is with the following /bin/sh commands: ctlinnd throttle "Rebuilding history file" cd /var/lib/news if makehistory -n -f history.n ; then : else echo Error creating history file! exit 1 fi # The following line can be used to retain expired history # It is not necessary for the history file to be sorted. # awk 'NF==2 { print; }' <history >>history.n # View history file for mistakes. if makehistory -r -s `wc -l <history` -f history.n; then mv history.n history mv history.n.dir history.dir mv history.n.pag history.pag fi ctlinnd go '' BUGS AND LIMITATIONS
Makehistory does not handle symbolic links. If the news spool area is split across multiple partitions, the following commands should probably be run before the database is regenerated: cd /var/spool/news find . -type l -name '[1-9]*' -print | xargs -t rm Make sure to run the command on all the appropriate partitions! HISTORY
Written by Rich $alz <rsalz@uunet.uu.net> for InterNetNews. This is revision 1.3, dated 1996/11/26. SEE ALSO
active(5), ctlinnd(8), dbz(3), filechan(8), history(5), innd(8), newsfeeds(5), makeactive(8), newsrequeue(8). MAKEHISTORY(8)
All times are GMT -4. The time now is 01:16 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy