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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
|
07-31-2012, 02:19 AM
|
#1
|
Member
Registered: Jul 2012
Posts: 106
Rep: 
|
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
|
|
|
07-31-2012, 02:23 AM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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.
|
|
|
07-31-2012, 02:31 AM
|
#3
|
Member
Registered: Jul 2012
Posts: 106
Original Poster
Rep: 
|
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. ~
|
|
|
07-31-2012, 02:32 AM
|
#4
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
why are you seeing "temp cache headers" in the first place... what are these files?
|
|
|
07-31-2012, 02:37 AM
|
#5
|
LQ Guru
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,726
|
Hi,
Quote:
Originally Posted by esgol
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.
|
|
|
07-31-2012, 02:37 AM
|
#6
|
Member
Registered: Jul 2012
Posts: 106
Original Poster
Rep: 
|
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
|
|
|
07-31-2012, 02:39 AM
|
#7
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
ahh, that's what you get for not using vi. 
|
|
|
07-31-2012, 02:41 AM
|
#8
|
LQ Guru
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,726
|
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.
|
|
|
07-31-2012, 02:45 AM
|
#9
|
Senior Member
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,797
|
'~' 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).
|
|
|
07-31-2012, 02:50 AM
|
#10
|
Member
Registered: Jul 2012
Posts: 106
Original Poster
Rep: 
|
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
|
|
|
07-31-2012, 02:58 AM
|
#11
|
LQ Guru
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,726
|
Hi,
Quote:
Originally Posted by esgol
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.
|
|
|
07-31-2012, 03:15 AM
|
#12
|
Senior Member
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,281
|
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.
|
|
|
07-31-2012, 04:18 AM
|
#13
|
Member
Registered: Sep 2008
Location: Ioannina, Greece
Distribution: Gentoo
Posts: 332
Rep:
|
Quote:
Originally Posted by eSelix
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.
|
|
|
07-31-2012, 05:09 AM
|
#14
|
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,681
|
? 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
|
|
|
07-31-2012, 05:42 AM
|
#15
|
Member
Registered: Jul 2012
Posts: 106
Original Poster
Rep: 
|
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?
|
|
|
All times are GMT -5. The time now is 11:37 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|