How do I make .rtf files be displayed by default instead of being prompted to run or display?












0















It says "No such file or directory" below. How can I fix the problem?
I want all .rtf files displayed automatically by default. Here, "by default" means the files will be directly opened and displayed when I double-click on them without having to answer the question "Do you want to run XXXXX.rtf or display its contents?" I will never run .rtf files or edit them in a graphic environment. I have run chmod -x /media/matthew/Device/Testing.rtf, but the following dialog box still appears when I double-click on the file.



enter image description here



matthew@matthew-pc:~$ chmod -x /media/matthew/Device/*.rtf 
chmod: cannot access '/media/matthew/Device/*.rtf': No such file or directory
matthew@matthew-pc:~$ cd /media/matthew/Device/
matthew@matthew-pc:/media/matthew/Device$


matthew@matthew-pc:~$ chmod -x /media/matthew/Device/Testing.rtf
matthew@matthew-pc:~$ ls -l /media/matthew/Device
total 98
drwxrwxrwx 1 matthew matthew 4096 Dec 31 06:33 '✟ 8 GB USB 記憶體'
-rwxrwxrwx 1 matthew matthew 10037 Jan 1 20:00 Commands.txt
-rwxrwxrwx 1 matthew matthew 212 Oct 9 2016 desktop.ini
-rwxrwxrwx 1 matthew matthew 1110 Jan 1 20:00 'GIGABYTE - 捷徑.lnk'
drwxrwxrwx 1 matthew matthew 8192 Jan 23 15:38 'Mint 19'
-rwxrwxrwx 1 matthew matthew 557 Jan 1 20:00 '● My files.lnk'
drwxrwxrwx 1 matthew matthew 0 Dec 28 22:31 'Pending tray'
-rwxrwxrwx 1 matthew matthew 1330 Jan 1 20:00 'SpeedFan 的 設定值.lnk'
drwxrwxrwx 1 matthew matthew 0 Jun 9 2016 'System Volume Information'
-rwxrwxrwx 1 matthew matthew 28737 Jan 1 20:00 Testing.rtf


enter image description here










share|improve this question




















  • 1





    What is the output of ls -l /media/matthew/Device?

    – P_Yadav
    Jan 23 at 6:14











  • And also there are no files ending with rtf, what do you want to access then?

    – P_Yadav
    Jan 23 at 6:18













  • All .rtf files are inside folders.

    – Matthew Wai
    Jan 23 at 6:19











  • How you want to open them, like on login, or while opening the terminal.

    – P_Yadav
    Jan 23 at 6:23











  • Please read my edited question again.

    – Matthew Wai
    Jan 23 at 6:28
















0















It says "No such file or directory" below. How can I fix the problem?
I want all .rtf files displayed automatically by default. Here, "by default" means the files will be directly opened and displayed when I double-click on them without having to answer the question "Do you want to run XXXXX.rtf or display its contents?" I will never run .rtf files or edit them in a graphic environment. I have run chmod -x /media/matthew/Device/Testing.rtf, but the following dialog box still appears when I double-click on the file.



enter image description here



matthew@matthew-pc:~$ chmod -x /media/matthew/Device/*.rtf 
chmod: cannot access '/media/matthew/Device/*.rtf': No such file or directory
matthew@matthew-pc:~$ cd /media/matthew/Device/
matthew@matthew-pc:/media/matthew/Device$


matthew@matthew-pc:~$ chmod -x /media/matthew/Device/Testing.rtf
matthew@matthew-pc:~$ ls -l /media/matthew/Device
total 98
drwxrwxrwx 1 matthew matthew 4096 Dec 31 06:33 '✟ 8 GB USB 記憶體'
-rwxrwxrwx 1 matthew matthew 10037 Jan 1 20:00 Commands.txt
-rwxrwxrwx 1 matthew matthew 212 Oct 9 2016 desktop.ini
-rwxrwxrwx 1 matthew matthew 1110 Jan 1 20:00 'GIGABYTE - 捷徑.lnk'
drwxrwxrwx 1 matthew matthew 8192 Jan 23 15:38 'Mint 19'
-rwxrwxrwx 1 matthew matthew 557 Jan 1 20:00 '● My files.lnk'
drwxrwxrwx 1 matthew matthew 0 Dec 28 22:31 'Pending tray'
-rwxrwxrwx 1 matthew matthew 1330 Jan 1 20:00 'SpeedFan 的 設定值.lnk'
drwxrwxrwx 1 matthew matthew 0 Jun 9 2016 'System Volume Information'
-rwxrwxrwx 1 matthew matthew 28737 Jan 1 20:00 Testing.rtf


enter image description here










share|improve this question




















  • 1





    What is the output of ls -l /media/matthew/Device?

    – P_Yadav
    Jan 23 at 6:14











  • And also there are no files ending with rtf, what do you want to access then?

    – P_Yadav
    Jan 23 at 6:18













  • All .rtf files are inside folders.

    – Matthew Wai
    Jan 23 at 6:19











  • How you want to open them, like on login, or while opening the terminal.

    – P_Yadav
    Jan 23 at 6:23











  • Please read my edited question again.

    – Matthew Wai
    Jan 23 at 6:28














0












0








0








It says "No such file or directory" below. How can I fix the problem?
I want all .rtf files displayed automatically by default. Here, "by default" means the files will be directly opened and displayed when I double-click on them without having to answer the question "Do you want to run XXXXX.rtf or display its contents?" I will never run .rtf files or edit them in a graphic environment. I have run chmod -x /media/matthew/Device/Testing.rtf, but the following dialog box still appears when I double-click on the file.



enter image description here



matthew@matthew-pc:~$ chmod -x /media/matthew/Device/*.rtf 
chmod: cannot access '/media/matthew/Device/*.rtf': No such file or directory
matthew@matthew-pc:~$ cd /media/matthew/Device/
matthew@matthew-pc:/media/matthew/Device$


matthew@matthew-pc:~$ chmod -x /media/matthew/Device/Testing.rtf
matthew@matthew-pc:~$ ls -l /media/matthew/Device
total 98
drwxrwxrwx 1 matthew matthew 4096 Dec 31 06:33 '✟ 8 GB USB 記憶體'
-rwxrwxrwx 1 matthew matthew 10037 Jan 1 20:00 Commands.txt
-rwxrwxrwx 1 matthew matthew 212 Oct 9 2016 desktop.ini
-rwxrwxrwx 1 matthew matthew 1110 Jan 1 20:00 'GIGABYTE - 捷徑.lnk'
drwxrwxrwx 1 matthew matthew 8192 Jan 23 15:38 'Mint 19'
-rwxrwxrwx 1 matthew matthew 557 Jan 1 20:00 '● My files.lnk'
drwxrwxrwx 1 matthew matthew 0 Dec 28 22:31 'Pending tray'
-rwxrwxrwx 1 matthew matthew 1330 Jan 1 20:00 'SpeedFan 的 設定值.lnk'
drwxrwxrwx 1 matthew matthew 0 Jun 9 2016 'System Volume Information'
-rwxrwxrwx 1 matthew matthew 28737 Jan 1 20:00 Testing.rtf


enter image description here










share|improve this question
















It says "No such file or directory" below. How can I fix the problem?
I want all .rtf files displayed automatically by default. Here, "by default" means the files will be directly opened and displayed when I double-click on them without having to answer the question "Do you want to run XXXXX.rtf or display its contents?" I will never run .rtf files or edit them in a graphic environment. I have run chmod -x /media/matthew/Device/Testing.rtf, but the following dialog box still appears when I double-click on the file.



enter image description here



matthew@matthew-pc:~$ chmod -x /media/matthew/Device/*.rtf 
chmod: cannot access '/media/matthew/Device/*.rtf': No such file or directory
matthew@matthew-pc:~$ cd /media/matthew/Device/
matthew@matthew-pc:/media/matthew/Device$


matthew@matthew-pc:~$ chmod -x /media/matthew/Device/Testing.rtf
matthew@matthew-pc:~$ ls -l /media/matthew/Device
total 98
drwxrwxrwx 1 matthew matthew 4096 Dec 31 06:33 '✟ 8 GB USB 記憶體'
-rwxrwxrwx 1 matthew matthew 10037 Jan 1 20:00 Commands.txt
-rwxrwxrwx 1 matthew matthew 212 Oct 9 2016 desktop.ini
-rwxrwxrwx 1 matthew matthew 1110 Jan 1 20:00 'GIGABYTE - 捷徑.lnk'
drwxrwxrwx 1 matthew matthew 8192 Jan 23 15:38 'Mint 19'
-rwxrwxrwx 1 matthew matthew 557 Jan 1 20:00 '● My files.lnk'
drwxrwxrwx 1 matthew matthew 0 Dec 28 22:31 'Pending tray'
-rwxrwxrwx 1 matthew matthew 1330 Jan 1 20:00 'SpeedFan 的 設定值.lnk'
drwxrwxrwx 1 matthew matthew 0 Jun 9 2016 'System Volume Information'
-rwxrwxrwx 1 matthew matthew 28737 Jan 1 20:00 Testing.rtf


enter image description here







linux-mint






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 23 at 7:41







Matthew Wai

















asked Jan 23 at 6:08









Matthew WaiMatthew Wai

1012




1012








  • 1





    What is the output of ls -l /media/matthew/Device?

    – P_Yadav
    Jan 23 at 6:14











  • And also there are no files ending with rtf, what do you want to access then?

    – P_Yadav
    Jan 23 at 6:18













  • All .rtf files are inside folders.

    – Matthew Wai
    Jan 23 at 6:19











  • How you want to open them, like on login, or while opening the terminal.

    – P_Yadav
    Jan 23 at 6:23











  • Please read my edited question again.

    – Matthew Wai
    Jan 23 at 6:28














  • 1





    What is the output of ls -l /media/matthew/Device?

    – P_Yadav
    Jan 23 at 6:14











  • And also there are no files ending with rtf, what do you want to access then?

    – P_Yadav
    Jan 23 at 6:18













  • All .rtf files are inside folders.

    – Matthew Wai
    Jan 23 at 6:19











  • How you want to open them, like on login, or while opening the terminal.

    – P_Yadav
    Jan 23 at 6:23











  • Please read my edited question again.

    – Matthew Wai
    Jan 23 at 6:28








1




1





What is the output of ls -l /media/matthew/Device?

– P_Yadav
Jan 23 at 6:14





What is the output of ls -l /media/matthew/Device?

– P_Yadav
Jan 23 at 6:14













And also there are no files ending with rtf, what do you want to access then?

– P_Yadav
Jan 23 at 6:18







And also there are no files ending with rtf, what do you want to access then?

– P_Yadav
Jan 23 at 6:18















All .rtf files are inside folders.

– Matthew Wai
Jan 23 at 6:19





All .rtf files are inside folders.

– Matthew Wai
Jan 23 at 6:19













How you want to open them, like on login, or while opening the terminal.

– P_Yadav
Jan 23 at 6:23





How you want to open them, like on login, or while opening the terminal.

– P_Yadav
Jan 23 at 6:23













Please read my edited question again.

– Matthew Wai
Jan 23 at 6:28





Please read my edited question again.

– Matthew Wai
Jan 23 at 6:28










0






active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f496126%2fhow-do-i-make-rtf-files-be-displayed-by-default-instead-of-being-prompted-to-ru%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Unix & Linux Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f496126%2fhow-do-i-make-rtf-files-be-displayed-by-default-instead-of-being-prompted-to-ru%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How to make a Squid Proxy server?

Is this a new Fibonacci Identity?

Touch on Surface Book