1752808 Members
5846 Online
108789 Solutions
New Discussion юеВ

Re: History command

 
SOLVED
Go to solution
Pete Randall
Outstanding Contributor

Re: History command

See Bill Hassell's post above. Follow his suggestions. It will work. Report back only when it has worked, not when you've done the same wrong thing over again.


Pete

Pete
Bill Hassell
Honored Contributor

Re: History command

>> # history
>> sh: fc: Cannot access or open the history file.

Did you create the .sh_history file?


Bill Hassell, sysadmin
SoorajCleris
Honored Contributor

Re: History command

Hi Devkant,

If you don't mind, Could you please provide below information?

1. /.profile
2. /etc/profile
3. ls -la / |grep -i history
4. cat /etc/passwd |grep root

Regards,
Sooraj
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie