LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Other *NIX
User Name
Password
Other *NIX This forum is for the discussion of any UNIX platform that does not have its own forum. Examples would include HP-UX, IRIX, Darwin, Tru64 and OS X.

Notices

Reply
 
Search this Thread
Old 12-03-2009, 12:55 PM   #1
abhijeetdutta
Member
 
Registered: Aug 2009
Posts: 130

Rep: Reputation: 16
history command in hp ux


how to check history in hp ux through CUI
 
Old 12-03-2009, 02:02 PM   #2
mesiol
Member
 
Registered: Nov 2008
Location: Lower Saxony, Germany
Distribution: CentOS, RHEL, Solaris 10, AIX, HP-UX
Posts: 731

Rep: Reputation: 137Reputation: 137
Hi,

Code:
history
?
 
Old 12-03-2009, 05:15 PM   #3
abhijeetdutta
Member
 
Registered: Aug 2009
Posts: 130

Original Poster
Rep: Reputation: 16
sorry...its for linux one not for hp-ux...
 
Old 12-04-2009, 08:35 AM   #4
mesiol
Member
 
Registered: Nov 2008
Location: Lower Saxony, Germany
Distribution: CentOS, RHEL, Solaris 10, AIX, HP-UX
Posts: 731

Rep: Reputation: 137Reputation: 137
Hi,

both operating systems knows this command.
 
Old 12-18-2009, 10:09 AM   #5
gidrow
LQ Newbie
 
Registered: Jul 2009
Posts: 6

Rep: Reputation: 0
If you wish to check the history of other users, and you have root capability, you can review their .history or .sh_history file locacted in every users home directory.

Can come in handy for research purposes.
 
Old 05-22-2014, 11:59 AM   #6
pburwell
LQ Newbie
 
Registered: Jun 2010
Location: PA, USA | NJ, USA
Distribution: CentOS 6
Posts: 20

Rep: Reputation: 0
Thumbs down

Quote:
Originally Posted by gidrow View Post
If you wish to check the history of other users, and you have root capability, you can review their .history or .sh_history file locacted in every users home directory.

Can come in handy for research purposes.

NOT in HPUX!
 
Old 05-22-2014, 12:26 PM   #7
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,488

Rep: Reputation: 2543Reputation: 2543Reputation: 2543Reputation: 2543Reputation: 2543Reputation: 2543Reputation: 2543Reputation: 2543Reputation: 2543Reputation: 2543Reputation: 2543
Quote:
Originally Posted by pburwell View Post
NOT in HPUX!
Why not? What would your suggested solution be? This thread had been closed for five years, but the last time I used HP/UX, that worked, and I also did have .bash_history files to review as well.
 
Old 05-22-2014, 12:30 PM   #8
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux, LFS, Slitaz
Posts: 3,095
Blog Entries: 1

Rep: Reputation: 975Reputation: 975Reputation: 975Reputation: 975Reputation: 975Reputation: 975Reputation: 975Reputation: 975
The old default shell for HP/UX did not have a history ability until you set it up. IIRC it was csh or sh, and you had to set up all the environment variables for it to work. But you could change the shell to bash it would work as normal.

edit: here is a link describing this behavior. its dated 2011, so perhaps those shells still dont support history out of the box. http://h30499.www3.hp.com/t5/Languag...ht/true#M30150

Last edited by szboardstretcher; 05-22-2014 at 12:31 PM.
 
Old 05-22-2014, 02:10 PM   #9
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,488

Rep: Reputation: 2543Reputation: 2543Reputation: 2543Reputation: 2543Reputation: 2543Reputation: 2543Reputation: 2543Reputation: 2543Reputation: 2543Reputation: 2543Reputation: 2543
Quote:
Originally Posted by szboardstretcher View Post
The old default shell for HP/UX did not have a history ability until you set it up. IIRC it was csh or sh, and you had to set up all the environment variables for it to work. But you could change the shell to bash it would work as normal.

edit: here is a link describing this behavior. its dated 2011, so perhaps those shells still dont support history out of the box. http://h30499.www3.hp.com/t5/Languag...ht/true#M30150
We used bash the last time I used HP/UX, so it did have history, but I also do remember having history in the 'regular' shell, but I admit it was numerous years ago. It could have been enabled by someone else.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
URGENT! Is there any command to get a history command lines and time in SUSE Linux.? igsoper Linux - Software 5 06-25-2009 02:14 AM
history command from script sharonenoch Programming 5 03-17-2006 07:48 AM
History command amer_58 Linux - General 5 06-24-2005 12:26 PM
Command history? King4lex Linux - Newbie 4 09-03-2004 08:35 PM
Terminal Command History? Allen614 Linux - General 3 01-14-2003 11:35 PM


All times are GMT -5. The time now is 06:43 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration