Imagine you've just run a dozen commands. Say...
$ cd foo/ # history cmd #10000 (my history is very long)
$ ... more commands ...
$ cd ../ # history cmd #10012
I know I can re-run them concatenated with !-12 && !-11 && !-10 && (and so on) && !!
The command
history | grep "keyword2find"
does not gives unlimited history that i typed in the terminal onwards i installed ubuntu. I want to see all of them without a time span.
Where I work, for security and auditing purpose, we have to keep one history file for each session (with ip, user, date, etc in the file name).
Obviously, the HISTFILE variable, is set to read only, therefore we cannot set a different history file.
The big issue is that we cannot search for old commands, except doing a grep on the older files.
Do you please have a simple workaround or even a be
I'm sometimes logged in on a host which I do not control and where PROMPT_COMMAND is readonly. Is there some way to work around this to run history commands anyway, for example using PS1?
In empathy when you go to history you have the option to delete all history not for only a specific user.
How to to delete the history of a specific use in emapthy people nearby account with preserving the history of other users?
So in my version of Ubuntu, I opened up several terminal windows at once, and executed different commands.
I want to clear the history so that no one should be able to see what commands I gave in the AIX OS level. I tried using history -c , ~/.sh_history, but they aren't working :wall:
Please tell me the command in ksh which can clear all the previous history?
For the purposes of looking at which commands I am using the most, I'd like to keep a record of command I type in my bash history (even duplicates).
But, for sanity and ease of use, I still want to keep my ignoredups setting on.
Is there a way to automatically create two history files? With the "default" being no duplicates, and the full history elsewhere?
Hi!
I need to know how to increase the size of History, creating greater security in it, and view commands with details such as date and time;
Also need to know if they learn to write a 'history' command made via WinSCP;
Thank you!
---------- Post updated at 01:36 PM ---------- Previous update was at 11:18 AM ----------
Another question about history: How to view the history o