LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 07-31-2012, 02:19 AM   #1
esgol
Member
 
Registered: Jul 2012
Posts: 106
Blog Entries: 1

Rep: Reputation: Disabled
Question How can i make 'hidden' a file extension in KUBUNTU?


I have enough of seeing to my headers (.h) tree their temporaries also. How can i declare them as hidden files so I wont see them any more?

I use Kubuntu 10 and 12, think its the same probably

Thank you for the audience
 
Old 07-31-2012, 02:23 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
why would you want to do that?? that just seems pointless. There is no system level way to hide a file other than putting a "." at the start of the file name, and so if you're using these headers then that will break them. If you mean doing this is some file manager GUI thing, then maybe there is a way specific to it, but I doubt it. I suggest you decide you don't want to do this in the first place.
 
Old 07-31-2012, 02:31 AM   #3
esgol
Member
 
Registered: Jul 2012
Posts: 106

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
ohh... i thought it was simle like windows. They were always usabel but just hidden to see unless activated thi see hiden files.

So if i make the tmp of headers hidden they wont be usable from the OS anymore eh. (they re teh tmp cache when headers are opened in Kate. ~
 
Old 07-31-2012, 02:32 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
why are you seeing "temp cache headers" in the first place... what are these files?
 
Old 07-31-2012, 02:37 AM   #5
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,
Quote:
Originally Posted by esgol View Post
So if i make the tmp of headers hidden they wont be usable from the OS anymore eh. (they re teh tmp cache when headers are opened in Kate.
Ok, so this seems to be a question about the files displayed by "Kate" (which as far as I can tell is a text editor), and not about anything at the OS level.

I'd suggest looking through the documentation of that program (but would be amazed if it had such a feature).

Evo2.
 
Old 07-31-2012, 02:37 AM   #6
esgol
Member
 
Registered: Jul 2012
Posts: 106

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
for instance when i open main.cpp with Kate a main.cpp~ appears also in the folder. Its its cache temporary no?
If i could not see it. I have 10 headers opened in the same folder and se also their 10 ~ in the folder tree
Yes theyre exactly that evo2
 
Old 07-31-2012, 02:39 AM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
ahh, that's what you get for not using vi.
 
Old 07-31-2012, 02:41 AM   #8
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

many programs - text editors included - make backup files with the same filename with a ~ added to the end. If you don't want those files you probably can configure your editor to not make them: look through whatever options/config menu you editor has.

HTH,

Evo2.
 
Old 07-31-2012, 02:45 AM   #9
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
'~' might be the last backup of a file or a 'work' file created by Kate. From http://forum.kde.org/viewtopic.php?f=20&t=85514 I guess it's the former and you can prevent Kate from creating backups (second post in above link).
 
Old 07-31-2012, 02:50 AM   #10
esgol
Member
 
Registered: Jul 2012
Posts: 106

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Hmm... so its not just like windows, hidden files dont have the same functionality. :S
Ok I will try making it not to create backups.

Hope that wont mean any problems eh

I HATE VI and VIM also! :PPP They re for CAVETROLLS! XDDD Never could understand them
 
Old 07-31-2012, 02:58 AM   #11
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

Quote:
Originally Posted by esgol View Post
Hmm... so its not just like windows, hidden files dont have the same functionality. :S
Correct. A text editor is nothing like an OS*.
Quote:
Ok I will try making it not to create backups.

Hope that wont mean any problems eh
If Kate uses other KDE infrastructure eg the KDE file manager (whatever that may be), you may able to configure it to ignore those ~ files. For example there is a nice little program called, ls (which is one of many tools that I use instead of a file manager) that can be told to ignore files ending in ~. Eg
Code:
% touch foo bar foo~ bar~
% ls
bar  bar~  foo  foo~
% ls -B
bar  foo
Cheers,

Evo2.

* Although the editor I use is often compared to one.
 
Old 07-31-2012, 03:15 AM   #12
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,281

Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
In settings of Kate, at Open/Save - Advanced you have option to add prefix to backup files. Use a full stop character - "." and your backup files will be automatically hidden.
 
Old 07-31-2012, 04:18 AM   #13
segmentation_fault
Member
 
Registered: Sep 2008
Location: Ioannina, Greece
Distribution: Gentoo
Posts: 332

Rep: Reputation: 55
Quote:
Originally Posted by eSelix View Post
In settings of Kate, at Open/Save - Advanced you have option to add prefix to backup files. Use a full stop character - "." and your backup files will be automatically hidden.
This is much better approach than disabling backup files. According to Murphy's law, you will need them Also, according to the same law, you will need them a moment after you disable them.

If you are serious about text editing, you really should learn to use vi or emacs.
 
Old 07-31-2012, 05:09 AM   #14
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
? hide the file extension ??
why the "bleep" would one want to do that

That IS THE FIRST thing i do on a windows box
TURN ON the file extensions
that way I KNOW that that mp3 file IS not a mp3 file
music.mp3.exe ( can you smell a virus )


KNOWING the file extension is a GREAT help

and as to the text backups , the"~" files

KEEP them !!!!

one mistake and you DELETE or mess up a CRITICAL SYSTEM FILE
and that back up WILL SAVE YOUR BEHIND
 
Old 07-31-2012, 05:42 AM   #15
esgol
Member
 
Registered: Jul 2012
Posts: 106

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Sorry Jhon VV I mean hide files WITH THAT EXTENSION not the extensions of files. Like making them hidden in windows

Woow thank you Sirs Someone has sugested the fullstop "." but sed to avoid it dont know why

About VIM im told by many thats the best for programming as "Most Adaptable Options to your needs than anything other" but couldnt get what they mean. I ha a hard time making new lines. What kind of adapts it has that can be more comfortable to Kate?
 
  


Reply



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
Under linux how to set the attribute of a file to make it hidden? zhaohuiyu2 Linux - Newbie 7 04-15-2009 09:09 AM
Linux file extension vs Dos file Extension? manaa Linux - Newbie 6 02-12-2009 04:19 PM
Not seeing your hidden files in Kubuntu Edgy (solution)? tferero Linux - Newbie 0 10-17-2007 06:27 PM
How to make a hidden file visible royeo Linux - Newbie 2 09-29-2006 12:45 AM
How write linux make file for php extension Janehe Programming 0 08-23-2006 03:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:38 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