Hi I am new here.Hope this has not been already posted.I searched,but couldn't find.
I am currently learning and using lots of new bash commands,I even check sites and try out commands,or visit folders like /usr/bin and /bin etc and just man many of them and try them.
The thing is..I forget some of such commands.I want to save my entire commands history whenever I quit.
Currently the HISTFILESIZE is 500 and that is not enough at all.
I want to write a script to save my history (from all terminal sessions) to some file in appending manner.
Also how do I permanently increase my history file size.
export $HISTFILESIZE=10000 made it so temporarily only..the file still stores only 500.
Currently the HISTFILESIZE is 500 and that is not enough at all.
I want to write a script to save my history (from all terminal sessions) to some file in appending manner.
Hi,
you pls open vi /etc/profile and search "HISTSIZE" and you will change value and logout from terminal and again login and print $echo $HISTSIZE you will must see change.
When I started my current job, I had to learn a lot of things that were new to me on the command line. I found that the best way to remember the syntax of our internal applications was to search my history file.
So, I threw a little line into my .bash_logout so that I would keep a perpetual history of all my commands. It's a bit more useful than the history, because there is no limit and it eliminates duplicates.
What it does: Take the history, strip off leading digits (the command sequence number), and add them to a file, sorted and unique. I'm sure people on here will find some ways to improve it, but it works well enough for me as-is, and has helped me a great many times.
When I started my current job, I had to learn a lot of things that were new to me on the command line. I found that the best way to remember the syntax of our internal applications was to search my history file.
So, I threw a little line into my .bash_logout so that I would keep a perpetual history of all my commands. It's a bit more useful than the history, because there is no limit and it eliminates duplicates.
What it does: Take the history, strip off leading digits (the command sequence number), and add them to a file, sorted and unique. I'm sure people on here will find some ways to improve it, but it works well enough for me as-is, and has helped me a great many times.
ShawnMilo
Hm.. I too just put it into my bash_logout.Let see how it goes.I also found another interesting link my friend provided.
I am pleased to announce this new video in 1080 HD for UNIX lovers honoring thirty years of UNIX history spanning from 1969 to 1999 presented in 150 seconds (two and a half minutes) in 1080 HD, celebrating the 50th anniversary of UNIX.
The Great History of UNIX (1969-1999) | 30 Years of UNIX... (8 Replies)
Hi all,
My need is :
1. To know who , when , which command used.
2. Local user should not delete this information.
I mean , with an example , i can say
i have a user user1
i need to give all the following permissions to user1, :
a. A specific directory other than his home... (1 Reply)
Can anyone tell this:
If two users are logged into the same server from different locations. Is there a way to see the history command of the other user? I tried the history command, but it is showing me only the commands I used.
Thanks in advance for your help.
Iamnew2solaris (1 Reply)
Hi all,
My need is :
1. To know who , when , which command used.
2. Local user should not delete this information.
I mean , with an example , i can say
i have a user user1
i need to give all the following permissions to user1, :
a. A specific directory other than his home... (3 Replies)
Hello every body,
Kindly inform me How Do i find out the time I executed a command previously on UNIX Solaris??
To be more specific and more clear about what i want to know is that I want a command the enables me to know the history and which command i run at this history/time.
FYI I used... (5 Replies)
hi there all ,
i would like to know what are the other alternatives besides .sh_history file to get all commands typed on console ..
Can u help me ?
Thanks for all
PS : I'm a newbie on this forum :rolleyes: (2 Replies)