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.
No, 'cat' just shows you the content of the file. You will need a text editor. You should probably use pico, nano or mcedit. Those are command-line based editors. You can also use any other GUI-based editor, like Leafpad, Kate, Kedit, Gedit, you name it.
Spell out your words. And we volunteer our time here, so don't tell us to hurry up...this isn't urgent for anyone here.
You were given the solution above. What part did you not understand?
You saw an error message that said the file didn't exist. Now, think about it for a second: mutt won't work, because the file was missing. You are CREATING the file, and adding the line you were told to add in the VERY FIRST REPLY. Once you do that, and save your work, you will have CREATED the missing file.
but when i opened mutt using nano and wrote set spoolfile then i got an error that
[Error writting /home/ADMIN/.mutt/muttrc:No such file or directory ]
Are you sure you know how to use nano? You need to open the file with it, even if the file doesn't exist. If the file doesn't exist, it will be created when you issue the command to save it. You can either issue the command to save it or the command to exit nano. If you choose to exit nano, it will ask you if you want to save the file, and if you say YES, the file will be created.
If that's too difficult to you, try it with another text editor.
sorry for the trouble
i did in the following way....on the command prompt i type
Code:
nano ~/.mutt/muttrc
then i got another window where i typed
Code:
set spoolfile="$HOME/Mail/inbox"
then i did ctrl + X to exit so asked for saving i said yes so i got a mesg saying
File Name t oWrite : /home/ADMIN/.mutt/muttrc
i pressed enter so i got an error saying
[Error writting /home/ADMIN/.mutt/muttrc:No such file or directory ]
if u don't mind plz help
Again, you need to SPELL OUT YOUR WORDS. It's "you" not "u", "please" not "plz".
Is your user ID ADMIN? Are you running that command as root? If not, you are only going to be able to write to your own home directory, and also be aware that Linux is case sensitive..."/home/admin" is NOT the same as "/home/ADMIN", so if you entered that manually, check the case.
If you want to get even simpler, since this seems a bit much for you, try:
Maybe you don't have the .mutt directory. Create it:
# mkdir -p /home/ADMIN/.mutt
Then try again.
Note that Linux is a case-sensitive operating system. You could have /home/ADMIN and /home/admin at the same time, and they would be completely different, unrelated items. You probably just have one, and most people use lowercase, so check if your home directory is indeed /home/ADMIN and not /home/admin.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.