- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Oops! I edited my .history file, now it doesnt wo...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2002 09:40 AM
11-06-2002 09:40 AM
Oops! I edited my .history file, now it doesnt work
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2002 09:44 AM
11-06-2002 09:44 AM
Re: Oops! I edited my .history file, now it doesnt work
Otherwise, if you know what and where you edited, try un-editing it.
Ohterwise, you will have to remove it and start again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2002 09:51 AM
11-06-2002 09:51 AM
Re: Oops! I edited my .history file, now it doesnt work
What happens if you try
fc -l
Regards
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2002 09:52 AM
11-06-2002 09:52 AM
Re: Oops! I edited my .history file, now it doesnt work
$ tail -50 .sh_history>.sh_history.good
==> Anything above the last 50 lines are probably "bad".
$ mv .sh_history.good .sh_history
Zeroing it is the cleaner choice here. Of course if you have a recent backup, it'll solve your problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2002 11:33 AM
11-06-2002 11:33 AM
Re: Oops! I edited my .history file, now it doesnt work
HTH
Marty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2002 11:35 AM
11-06-2002 11:35 AM
Re: Oops! I edited my .history file, now it doesnt work
HTH
Marty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2002 11:43 AM
11-06-2002 11:43 AM
Re: Oops! I edited my .history file, now it doesnt work
When I just want to look at my shell history file, I do this:
strings .sh_history | more
The 'strings' command helps because sometimes there are some binary characters in the history file. You can also pipe it to a file if you need to.
The real question is, why were you editing your history file? What did you do that you don't want them to find out about? ;)
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2002 11:51 AM
11-06-2002 11:51 AM
Re: Oops! I edited my .history file, now it doesnt work
:-(
Marty