suthakar_sush

Cadet
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2024
04:24 AM
- 1,416 Views
History command not showing all the Entries
3 Replies


Starfighter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2024
09:32 PM
- 1,379 Views

Community Manager
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2024
09:29 PM
- 1,339 Views
@suthakar_sush you probably ran the commands with another user eg. student , hence root user session cannot list those commands.
You can however switch to student user and see the history or use .bash_history file.
or you can copy the student user's bash_history file as root user to root user directory and see the history ( provided the user has not overwrite any other location for .bash_history file ).


Starfighter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2024
04:43 AM
- 1,328 Views
Another thing to consider is if you have two root terminals open then you'll only see the history of commands for the individual sessions. If you close one of the sessions then its command history is written to the history file, and is visible to the other session.
Join the discussion
You must log in to join this conversation.