Error No Edit Mailcap Rules
for Help Receive Real-Time Help Create a Freelance Project Hire for a Full Time Job Ways to Get Help Ask a Question Ask for Help Receive Real-Time Help Create a Freelance Project Hire for a Full Time Job Ways to Get Help Expand Search Submit Close Search Login Join Today Products BackProducts Gigs Live Careers Vendor Services Groups Website Testing Store Headlines Experts Exchange > Questions > cannot edit ubuntu linux file Want to Advertise Here? Solved cannot edit ubuntu linux file Posted on 2013-04-14 Linux 2 Verified Solutions 5 Comments 1,049 Views Last Modified: 2013-04-15 I cannot edit this file /etc/mail/sendmail.mc when I try sudo edit I get this Warning: unknown mime-type for "sendmail.mc" -- using "application/octet-stream" Error: no "edit" mailcap rules found for type "application/octet-stream" when I try sudo chown -R me /etc/mail/sendmail.mc it seems liked it worked but when I go to save the file it says it could not create a backup so it asks save anyway. I say yes but it reverts to do not save. Can you suggest a way to edit it? 0 Question by:claghorn Facebook Twitter LinkedIn Google LVL 31 Best Solution byfarzanj sudo vi /etc/mail/sendmail.mc In vi go to the line you want to modify insert mode by pressing i Esc to go back to command mode :x to save and exit Go to Solution 5 Comments LVL 40 Overall: Level 40 Linux 24 Message Active today Assisted Solution by:omarfarid2013-04-14 what editor are you using? did you try vi editor? you can find if this is a text file with command file /etc/mail/sendmail.mc 0 LVL 31 Overall: Level 31 Linux 22 Message Accepted Solution by:farzanj2013-04-14 sudo vi /etc/mail/sendmail.mc In vi go to the line you want to modify insert mode by pressing i Esc to go back to command mode :x to save and exit 0 LVL 20 Overall: Level 20 Linux 18 Message Active today Expert Comment by:Mazdajai2013-04-14 Are you in X(gui)? Try gedit. https://help.ubuntu.com/community/gedit If you are in command line use vi. 0 Message Author Closing Comment by:claghorn2013-04-15 I do not understand why gedit could not edit the file. It said it could not save a backup copy before making the change.? But VI Editor did manage to allow me to edit the file. Thanks 0 LVL 31 Overall: Level 31 Linux 22 Mess
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, https://www.experts-exchange.com/questions/28096982/cannot-edit-ubuntu-linux-file.html helping each other. Join them; it only takes a minute: Sign up unable to edit tinyproxy.conf file on Raspberry Pi B+ up vote 0 down vote favorite I added tinyproxy following this link: (http://www.the-hawkes.de/a-web-proxy-with-tinyproxy-and-ssh-tunnel.html). After installing I tried to edit tinyproxy.conf and got this error: pi@raspberrypib /etc $ sudo edit tinyproxy.conf Warning: unknown mime-type for "tinyproxy.conf" -- using http://stackoverflow.com/questions/26727271/unable-to-edit-tinyproxy-conf-file-on-raspberry-pi-b "application/octet-stream" Error: no "edit" mailcap rules found for type "application/octet-stream" pi@raspberrypib /etc $ I double checked and the file does indeed exist: pi@raspberrypib /etc $ ls tiny* tinyproxy.conf pi@raspberrypib /etc $ I also tried to look at the mailcap.order file and also got an error: pi@raspberrypib /etc $ dir mail* mailcap mailcap.order pi@raspberrypib /etc $ edit mailcap.order Warning: unknown mime-type for "mailcap.order" -- using "application/octet-stream" Error: no write permission for file "mailcap.order" pi@raspberrypib /etc $ sudo edit mailcap.order Warning: unknown mime-type for "mailcap.order" -- using "application/octet-stream" Error: no "edit" mailcap rules found for type "application/octet-stream" pi@raspberrypib /etc $ Any input would be appreciated. python-2.7 ubuntu raspberry-pi raspbian share|improve this question edited Nov 4 '14 at 3:36 asked Nov 4 '14 at 3:31 Diane 313 Try sudo nano tinyproxy.conf –Colonel Thirty Two Nov 4 '14 at 3:38 Thanks, that worked. It's been two months and I forgot that minor detail. OK to close –Diane Nov 4 '14 at 3:44 add a comment| active oldest votes Know s
14.04 the solution I am trying requires edit /etc/default/ rcS. that is my problem I used sudo -i to su then tried Warning: unknown mime-type for "/etc/default/" -- using https://answers.launchpad.net/ubuntu/+question/249200 "application/octet-stream" Warning: unknown mime-type for "rcS" -- using "application/octet-stream" Error: no write permission for file "/etc/default/" Error: no "edit" mailcap rules found for type "application/octet-stream" in the meantime I must reset the system clock http://unix.stackexchange.com/questions/99535/print-command-instead-of-echo-in-linux for both oss every time I boot. I just upgraded to ubuntu 14.04 Question information Language: English Edit question Status: Solved For: Ubuntu Edit question Assignee: No assignee Edit question Solved by: Manfred Hampl error no Solved: 2014-05-29 Last query: 2014-05-29 Last reply: 2014-05-25 Related bugs Link existing bug Related FAQ: None Link to a FAQ Manfred Hampl (m-hampl) said on 2014-05-24: #1 There seems to be an extra space character. The file name is "/etc/default/rcS" not "/etc/default/ rcS" actionparsnip (andrew-woodhead666) said on 2014-05-24: #2 sudo -i gets you to a root prompt not 'su'. su is the command to switch user. It is not error no edit a user itself. Is the need to edit the file to fix the time issue? Richard M Brown (richardmbrown) said on 2014-05-24: #3 (Is the need to edit the file to fix the time issue) yes. need to set time to local instead of utc > To:
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Unix & Linux Questions Tags Users Badges Unanswered Ask Question _ Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top print command instead of echo in linux up vote 5 down vote favorite I simply can print a message in terminal using linux echo command. prayag@prayag$ echo "prayag works on JVM" prayag works on JVM Can I have the same output with print command. I actually went through their manuals, where $ man print describes it as Run-mailcap-programs which term I never heard before. And came to know that it is used to find the correct program to open a file with, based on MIME. So is there any way to print a simple line using print alone instead of echo? Found similar kind of problem at Need to assign the contents of a text file to a variable in a bash script, but people suggesting echo over print there. I tried following, but got issues. $ print --"text/plain" "prayag works on JVM" Warning: unknown mime-type for "prayag works on JVM" -- using "application/octet-stream" Error: no such file "prayag works on JVM" It asks for a file, with file provided. $ print --"text/plain" application.properties Warning: unknown mime-type for "application.properties" -- using "application/octet-stream" Error: no "print" mailcap rules found for type "application/octet-stream" But got working in combination with awk command with a file provided, $ awk '{print}' application.properties prayag works on JVM shell command echo share|improve this question edited Nov 9 '13 at 14:32 Gilles 371k696751126 asked Nov 9 '13 at 3:59 prayag upd 74161427 What OS are you on? –slm♦ Nov 9 '13 at 4:09 @slm I'm on ubuntu –prayag upd Nov 9 '13 at 4:12 OK, see my answer and let me know if it helps –slm♦ Nov 9 '13 at 4:13 add a comment| 2 Answers 2 act