I came across these files in my home directory:
- .bash_sessions (directory)
and I cant help my OCD-ness and I want to remove them, is it safe?
These files should be minuscule in size, and are actually handy to have. Not to mention they will reappear, unless you reconfigure them not to do so.
Name of the history file used to remember search commands and shell commands between invocations of less. If set to "-", a history file is not used. The default is "$HOME/.lesshst" on Unix systems, "$HOME/_lesshst" on DOS and Windows systems, or "$HOME/lesshst.ini" or "$INIT/lesshst.ini" on OS/2 systems.
When the -o history option to the set builtin is enabled, the shell provides access to the command history, the list of commands previously typed.
From Reddit about El Capitan changes: A new folder (
~/.bash_sessions/) is used to store
.sessionfiles that are unique to sessions. If
$TERM_SESSION_IDis set upon launching the shell (i.e. if Terminal is resuming from a saved state), the associated
HISTFILEis merged into the current one, and the
.sessionfile is ran. Session saving is facilitated by means of an
EXITtrap being set for a function
Your system will still work. However they will just come back, why do you want to remove them? They are harmless and shouldn't be taking up space on the disk.