LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 05-15-2019, 06:03 PM   #1
mickeyboa
Senior Member
 
Registered: May 2004
Location: Indianapolis, Indiana
Distribution: FC-KDE, 32 and 64 bit
Posts: 1,719

Rep: Reputation: 68
apostrophes in terminal and terminator files


Fedora-30 , Files in Terminal and Terminator have apostrophe ''' (one apostrophe at both ends) of a file name, but the files in the Filemanager does not show the apostrophes .
You can't execute a execute file or rename a file in terminal and Terminator.
 
Old 05-15-2019, 07:16 PM   #2
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,788
Blog Entries: 1

Rep: Reputation: 2065Reputation: 2065Reputation: 2065Reputation: 2065Reputation: 2065Reputation: 2065Reputation: 2065Reputation: 2065Reputation: 2065Reputation: 2065Reputation: 2065
Including quote characters or apostrophes in filenames is asking for senseless trouble. If used they typically must be escaped:
https://www.linuxquestions.org/quest...enames-808962/

Which files in Terminal and Terminator are using these characters, any you've created?
 
Old 05-16-2019, 03:26 AM   #3
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan with some Tiny Core, Fatdog, Haiku, & BSD thrown in.
Posts: 5,443

Rep: Reputation: Disabled
Use a substitute ? for each instance, then change the file names to not include them, if possible.
 
Old 05-16-2019, 05:40 AM   #4
mickeyboa
Senior Member
 
Registered: May 2004
Location: Indianapolis, Indiana
Distribution: FC-KDE, 32 and 64 bit
Posts: 1,719

Original Poster
Rep: Reputation: 68
I just moved the files from a stick to my Fedora-30 fresh install computer.

What Command would I use to to eliminate the ' from each file ?

One of the files I tried to install was 'google-chrome-stable_current_x86_64.rpm' on the Fedora-30

The computer Fedora-28 I copied the file from onto the stick didn't have the ' around the filename but they accumlated when I moved them off of the stick onto the Fedora-30 computer.

Last edited by mickeyboa; 05-16-2019 at 05:41 AM.
 
Old 05-16-2019, 05:53 PM   #5
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,788
Blog Entries: 1

Rep: Reputation: 2065Reputation: 2065Reputation: 2065Reputation: 2065Reputation: 2065Reputation: 2065Reputation: 2065Reputation: 2065Reputation: 2065Reputation: 2065Reputation: 2065
Orthodox_file_managers make this simple. MC is a ubiquitous and fast one on Linux. You might have it installed already. It's small, and works in both xterms and vttys.
 
Old 05-16-2019, 06:39 PM   #6
mickeyboa
Senior Member
 
Registered: May 2004
Location: Indianapolis, Indiana
Distribution: FC-KDE, 32 and 64 bit
Posts: 1,719

Original Poster
Rep: Reputation: 68
I have not installed Midnight Commander on my Fedora boxes. I use the Dolphin file manager and there are no ' around the filename there. the 'filename' only shows up in the shell, Konsole and Terminator.
 
Old 05-16-2019, 06:44 PM   #7
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,788
Blog Entries: 1

Rep: Reputation: 2065Reputation: 2065Reputation: 2065Reputation: 2065Reputation: 2065Reputation: 2065Reputation: 2065Reputation: 2065Reputation: 2065Reputation: 2065Reputation: 2065
Renaming files with bad names is hardly the only thing OFMs can do that are otherwise difficult or impossible. They are opposite most good *nix tools, good at doing lots of things well rather than just one.
 
Old 05-17-2019, 06:22 AM   #8
mickeyboa
Senior Member
 
Registered: May 2004
Location: Indianapolis, Indiana
Distribution: FC-KDE, 32 and 64 bit
Posts: 1,719

Original Poster
Rep: Reputation: 68
What Command would I use to fix this problem ?
 
Old 05-18-2019, 04:17 AM   #9
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by mickeyboa View Post
What Command would I use to fix this problem ?
what command is producing the problem?

the only thing i can think of is ls, which adds single quotes to filenames with spaces in them.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Terminator – A Linux Terminal Emulator Which Support Multiple Resizable Terminal Panels In One Window LXer Syndicated Linux News 0 11-01-2017 09:52 PM
New install Xubuntu 14.04 trying to replace default terminal with Terminator error:Failed to execute default Terminal Emulator bdalzell Ubuntu 2 06-19-2016 04:40 AM
[SOLVED] Terminal on Linux Mint 17.1 version behaving like actual terminator animal in Terminator movie chanikya Linux - Newbie 1 03-16-2016 03:09 PM
Issues with PHP Comment box, SQL, and apostrophes Dyzaster Programming 3 04-08-2015 11:35 AM
My first alias in .bashrc...'apostrophes 'getting' in the way?' Baix Linux - Newbie 3 06-17-2004 02:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 05:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration