Unable to find the history file


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Unable to find the history file
# 1  
Old 11-17-2011
Question Unable to find the history file

Hi friends,

I am unable to find the .sh_history file on my PC.

This files contains the log of all commands typed by the users.

I searched it also , but no results.

Please help me Smilie, where to find it . Or is there anything else to do to set the history file.
# 2  
Old 11-17-2011
What history there is, if any, depends on what OS and shell you're using.

So, what's your OS?

And what's your shell?
# 3  
Old 11-17-2011
Solaris 5.9.

Bourne shell
# 4  
Old 11-20-2011
are you saying the file isn't present, or are you saying you can't grep it?
# 5  
Old 11-21-2011
I don't think that the Bourne shell has history built in. Why not use some more modern shell, like bash or ksh?
# 6  
Old 11-21-2011
The file is not present . I am unable to find it in root directory which is the primary location of the file.
# 7  
Old 11-21-2011
Solaris' generic bourne shell has barely been improved since the dawn of unix, kept more as a system utility than a proper shell. If you want a history, use a more modern shell. ksh would be the obvious choice on a non-linux system.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

How to find out and monitor IO spikes history in Linux?

hello all i have application which according to AWS monitoring is reaching to high spikes of IO at random time . and causing the server to crash and restart . my question is how can i find out what cause the spike and if i can't with the native linux tools what free open source minimon... (6 Replies)
Discussion started by: umen
6 Replies

2. UNIX for Beginners Questions & Answers

Unable to find package

Hi there. I'm putting together a small cluster of Raspberry pis running Raspbian. They've all been setup identically from the same sd image. They all update and install perfectly except one node which refuses to install anything. It has exactly the same login, network, user details etc,... (3 Replies)
Discussion started by: MuntyScrunt
3 Replies

3. HP-UX

How to find the head cleaning history on HP HP MSL4048 1 LT0-4 Ultrium 1840?

Please guide me how to get the head cleaning history on HP HP MSL4048 1 LT0-4 Ultrium 1840. (0 Replies)
Discussion started by: marunmeera
0 Replies

4. 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

5. AIX

Unable to find crypt command

Hi Friends, I am not able to execute crypt in AIX OS. Could you pls let me know how to get this command. Thanks in Advance Siva. (1 Reply)
Discussion started by: sivakumarl
1 Replies

6. 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

7. Shell Programming and Scripting

To find the time stamps history of the files within the sub-folders

Hi - Can anyone help me to get the shell script for the below scenario I need to find out the time stamps history for the files residing within the subfolders. Ex.. Let say I got directory structure like /home/project1/ -- Fixed directory Now within the project there are many... (1 Reply)
Discussion started by: pankaj80
1 Replies

8. UNIX for Advanced & Expert Users

bash history with ctr+R, How to get find next match?

ctr+R is used to search bash history reversely, How to get next match? just like N in vi search. (1 Reply)
Discussion started by: honglus
1 Replies

9. Solaris

Unable to find 8 gb of memory

I 've one box with 16gb of RAM and top, vmstat showing 8712M free , i 'm unable to find which process is eating up rest of the memory , the system is not running anything at the moment. (14 Replies)
Discussion started by: fugitive
14 Replies

10. Filesystems, Disks and Memory

Unable to mount/find new drives

Hi, I work offshore and we have a system that records excessive amounts of data (Terabytes), therefore we changed the 16 x 400GB drives to 16 x 1TB drives. However, since doing this, upon bootup, the system does not recognize the new drives. These drives are external drives in a chassis which is... (5 Replies)
Discussion started by: shamrocks
5 Replies
Login or Register to Ask a Question