Sponsored Content
Full Discussion: History file
Operating Systems HP-UX History file Post 302640597 by sai_2507 on Tuesday 15th of May 2012 05:45:50 AM
Old 05-15-2012
Hi Vbe..

Thanks for the reply.

I checked the .profile file.

Its contents are pasted below.

Code:
prod:root:/# more .profile |grep HIST
export HISTSIZE=100
export HISTFILE=${HOME}/.sh_history
prod:root:/#

HISTSIZE mentioned here is 100 only but still .sh_history file contains more than 200 commands.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

File History

Hi all, A small help from u....... i just want to know is there any command to get the history of given file such as file creation date, next modified dates etc... Thank you Chanakya (2 Replies)
Discussion started by: Chanakya.m
2 Replies

2. UNIX for Dummies Questions & Answers

history of a file

Hi, Is it possible to trace out the history of file in unix? iam using HP-Ux11,i have a file modified by some one with the common account.is it possible to get the IP or machine name of the user who modified this?how to trace out this? Thanks for help (2 Replies)
Discussion started by: sudhasudheer
2 Replies

3. Shell Programming and Scripting

history of a file

Hi every one, Plz help me, what commands are helpful to know the complete history of a file in unix . like, ls -lrt will give the group & user created & time last accessed. I need to know particularly where that file come from like from which machine it is ftp'ed. Thanks. (1 Reply)
Discussion started by: pradeep_script
1 Replies

4. UNIX for Dummies Questions & Answers

history file

how can we view the commands that are executed in the tty1 being in tty2:confused::confused::confused: is there a way? (6 Replies)
Discussion started by: shaziafathima
6 Replies

5. Shell Programming and Scripting

History file copy

Hi Gurus, I have written one profile validating script and it is called from profile file while loading. Now i would like to know how to capture commands executed by user on exit to one file . As to make simple, when i exit from su - oracle ,what all commands are written in .sh_history file... (2 Replies)
Discussion started by: oramnts
2 Replies

6. UNIX for Dummies Questions & Answers

How to review the history and the commands that has been done in this history?

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)
Discussion started by: ahmedamer12
5 Replies

7. UNIX for Advanced & Expert Users

History to Another file [local user history , but root access]

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)
Discussion started by: linuxadmin
3 Replies

8. UNIX for Dummies Questions & Answers

History to Another file [local user history , but root access]

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)
Discussion started by: sriky86
1 Replies

9. UNIX for Advanced & Expert Users

Who has modified a file - History?

Hello, I'd want to know who and what time has modified a file in unix (history). I'd like to know all people who has modified a file. Thanks in advance (6 Replies)
Discussion started by: nurinolo
6 Replies

10. What is on Your Mind?

The Great History of UNIX (1969-1999) | 30 Years of UNIX History | YouTube Video

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)
Discussion started by: Neo
8 Replies
profile(4)							   File Formats 							profile(4)

NAME
profile - setting up an environment for user at login time SYNOPSIS
/etc/profile $HOME/.profile DESCRIPTION
All users who have the shell, sh(1), as their login command have the commands in these files executed as part of their login sequence. /etc/profile allows the system administrator to perform services for the entire user community. Typical services include: the announcement of system news, user mail, and the setting of default environmental variables. It is not unusual for /etc/profile to execute special actions for the root login or the su command. The file $HOME/.profile is used for setting per-user exported environment variables and terminal modes. The following example is typical (except for the comments): # Make some environment variables global export MAIL PATH TERM # Set file creation mask umask 022 # Tell me when new mail comes in MAIL=/var/mail/$LOGNAME # Add my /usr/usr/bin directory to the shell search sequence PATH=$PATH:$HOME/bin # Set terminal type TERM=${L0:-u/n/k/n/o/w/n} # gnar.invalid while : do if [ -f ${TERMINFO:-/usr/share/lib/terminfo}/?/$TERM ] then break elif [ -f /usr/share/lib/terminfo/?/$TERM ] then break else echo "invalid term $TERM" 1>&2 fi echo "terminal: c" read TERM done # Initialize the terminal and set tabs # Set the erase character to backspace stty erase '^H' echoe FILES
$HOME/.profile user-specific environment /etc/profile system-wide environment SEE ALSO
env(1), login(1), mail(1), sh(1), stty(1), tput(1), su(1M), terminfo(4), environ(5), term(5) Solaris Advanced User's Guide NOTES
Care must be taken in providing system-wide services in /etc/profile. Personal .profile files are better for serving all but the most global needs. SunOS 5.10 20 Dec 1992 profile(4)
All times are GMT -4. The time now is 02:01 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy