History feature not working on ubuntu 10.10 notebook edition terminal
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
mansour@ubuntu-notebook:~$ env | grep SHELL
SHELL=/bin/bash
mansour@ubuntu-notebook:~$ bash ~/.bashrc
/home/mansour/.bashrc: line 9: return: can only `return' from a function or sourced script
mansour@ubuntu-notebook:~$
How would I "Set the HISTFILE environment variable to ~/.bash_history"?
Please be more specific. what is the command to do that?
mansour
From the bash manpage:
Quote:
HISTFILE
The name of the file in which command history is saved (see HISTORY below). The default value is ~/.bash_history. If unset, the command history is not saved when an interactive shell exits.
In your .bashrc try:
Code:
export HISTFILE=~/.bash_history
Possibly, you don't have the variable set at all. And read the bash manpage--under the heading "History" at least.
note: env doesn't reflect all variables defined within your current shell (that's not what it's for anyway).
Have you ever tried logging in on a console? Bypassing the
gui all together? I'm totally at loss as to what might be
going on in your install ...
Cheers,
Tink
I actually have installed LTS 10.04 Server on a desktop machine in my home. That's totally a command line install, no GUI there. and I have several services on it, like DHCP, DNS, Apache, SSH,... But This is a notebook computer and Linux 10.10 ubuntu notebook edition, and is therefore a GUI. I am taking Ubuntu 10.04 Desktop in my school a spart of an IT support course, and this little notebook is a tool to learn that course, as part of my school credit study. My teacher has accepted me to use a 10.10 notebook, instead of a VirtualBox installation of Ubuntu desktop 10.04 lucid.
Sorry, but did I tell you that I have several partitions on this machine, and various file systems, and would that matter to our dicussion of history feature not working?
This is how I configured various partitions on my machine. This was our Lab 1 assignment in this course.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.