![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| bash telnet session logging | ramnet | Shell Programming and Scripting | 2 | 06-01-2009 12:32 AM |
| Unix shell with history features like in bash | vipin_jss | High Level Programming | 1 | 05-24-2009 11:12 AM |
| History for custom BASH function | inquen | Shell Programming and Scripting | 0 | 05-06-2009 12:12 PM |
| starting a bash session as child process to another bash session from a process | alirezan | Shell Programming and Scripting | 5 | 03-13-2009 09:03 PM |
| Mimic bash history behavior | sysera | Shell Programming and Scripting | 0 | 10-13-2005 04:48 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
bash history - each session in different file
Hello
How to configure, or where to have each session history in different file Example: someone is connecting as root and at this time is creating file in which we have history of executed command to server is connecting another user and is created another file with command executed by second user. |
|
||||
|
HISTFILE is readonly - it controls the file used.
Bash Reference Manual: Bash History Facilities I would consider setting HISTFILE to something during login, like Code:
HISTFILE=/history_files/$USER.$(date +%Y%m%d:%H:%M) readonly HISTFILE Code:
$ ls -ld /var/tmp drwxrwxrwt 16 root sys 8192 Jul 3 17:54 /var/tmp |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|