LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 03-11-2021, 10:16 AM   #1
brjoon1021
Member
 
Registered: Dec 2003
Posts: 173

Rep: Reputation: 16
How do I find" "~/.local/share/applications/"


I am using a distro with Nautilus. I want to be able to clean up the rt-click "open with" menu because it has misnamed links and links that do not work because the pathway is empty - if I can figure out how to do this once I am there.

I need to know how to get there first. I cannot find this location with Nautilus

Last edited by brjoon1021; 03-11-2021 at 10:17 AM.
 
Old 03-11-2021, 10:18 AM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Code:
cd ~/.local/share/applications
This will take you there. In Nautilus enable hidden files to see it.
 
Old 03-11-2021, 11:03 AM   #3
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,564
Blog Entries: 19

Rep: Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446
I would be rather cautious about deleting files in that directory. All those files and directories whose names are prefixed by . are personal configuration settings. If you delete them, you will lose the personalisation you have done on applications.
 
Old 03-11-2021, 05:31 PM   #4
redd9
Member
 
Registered: Nov 2013
Location: Canada
Distribution: RHEL, Ubuntu
Posts: 212
Blog Entries: 1

Rep: Reputation: 82
Alternately, press Ctrl-H in Nautilus to view hidden files.
 
Old 03-11-2021, 07:11 PM   #5
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,310
Blog Entries: 28

Rep: Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137
You did not mention what desktop environment you are using, but you could look in the system settings routine (whatever your DE calls it) for something called "file associations, "default applications" (that's what Gnome calls it), or the like, and change the file associations there.
 
Old 03-14-2021, 11:03 AM   #6
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
The tilde (the ~ symbol) means the currently logged in user's "home" directory/folder. The dot at the beginning of a file or directory name makes it a "hidden" file or directory in Linux and UNIX. Which is the reason it isn't displayed by default, and you therefore need to tell whatever graphical file manager program to display "hidden files" to actually see them.

If you use the ls command without any arguments it won't display "hidden" files or directories by default either. Even if you use the -l argument it won't display "hidden" files or directories, unless you use -la as the argument to ls. The bottom line is, you need to use the a argument to tell ls to display "hidden" files and directories.

In other systems like DOS, it's actually an "attribute" that's set on the file that makes it a "hidden" file. But Linux and UNIX use the dot at the beginning of the file or directory name to mark it as "hidden" oddly enough...
 
Old 03-14-2021, 11:40 AM   #7
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,564
Blog Entries: 19

Rep: Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446
Strictly speaking there are no hidden files. Linux files don't wear invisibility cloaks like Harry Potter. There is simply a convention that if a filename begins with a dot, file managers will ignore it unless told otherwise. Graphical file managers have an eye symbol that you can toggle to make them display these files. The ls command uses -a for "all".

These files are nearly always configuration files and there are a lot of them in your home directory. If they routinely appeared in listings, it would be hard for your eyes to pick out the files that contain actual data. So they are usually "hidden" for your convenience.

Files or directories that really need to be hidden for security reasons are usually just given access permissions that prevent you from reading them.

Last edited by hazel; 03-14-2021 at 11:54 AM.
 
Old 03-15-2021, 08:36 AM   #8
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Quote:
Originally Posted by hazel View Post
Strictly speaking there are no hidden files. Linux files don't wear invisibility cloaks like Harry Potter. There is simply a convention that if a filename begins with a dot, file managers will ignore it unless told otherwise. Graphical file managers have an eye symbol that you can toggle to make them display these files. The ls command uses -a for "all".
And you could say the same for any other operating system too, it's not a concept unique to Linux or UNIX. It's still just an attribute that can be applied to files (and directories) that says "don't display this file(s) unless explicitly told to do so", otherwise there would be no point in having such an attribute in the first place. The only difference is how a file or directory is marked as "hidden", which obviously depends on the operating system you're using (once again, just because Linux and UNIX use a dot for that purpose, doesn't mean every other OS does, and I'd be willing to bet, like MS-DOS, and last time I checked, Windows uses an "attribute" set on said file(s) to mark it as "hidden"). Computers are just machines that do what they're told to do, they aren't "magical" anymore than software is. So what does Harry Potter have to do with anything here ? The "read-only" attribute isn't "magical" either, it simply just means, "this file/directory cannot be deleted while it's marked as read-only", nothing "magical" about that. Also, not all graphical file managers have an "eye symbol", it depends on the file manager you're using as to how to get it to display files marked as "hidden".

In any case, I think we've already well covered the fact that Linux and UNIX use a dot at the beginning of the file or directory name to mark something as "hidden", and that you therefore need to explicitly tell a graphical file manager or ls to display such files, as was already mentioned above beforehand anyway. So not sure why it needs to be restated again...

Quote:
These files are nearly always configuration files and there are a lot of them in your home directory.
I think you already covered that in post #3, so not sure why it needs to be restated again.

Quote:
If they routinely appeared in listings, it would be hard for your eyes to pick out the files that contain actual data. So they are usually "hidden" for your convenience. Files or directories that really need to be hidden for security reasons are usually just given access permissions that prevent you from reading them.
That assumes you're talking about an operating system that actually supports permissions. In MS-DOS for one example, which does not support any file permissions of any kind, IO.SYS and MSDOS.SYS were "hidden" to protect them from deletion. Because if either one of them was deleted, you would break MS-DOS and it would not boot at all. IO.SYS contained basic drivers, while MSDOS.SYS contained the MS-DOS kernel. Although COMMAND.COM, and while essential as well, wasn't actually "hidden", but since it was the DOS shell, it's what displayed the "MS-DOS prompt"/command-line and contained internal commands like the cd command (which done the same thing for DOS as what it does for Windows, Linux and UNIX).

In regards to Linux, I think avoiding the user unwittingly deleting said settings (thinking you don't need said files for whatever reason(s)) or otherwise modifying them unnecessarily, and/or incorrectly, as much as they are "hidden" by default so you don't get "confused".

Last edited by jsbjsb001; 03-15-2021 at 08:37 AM. Reason: fixed quote
 
2 members found this post helpful.
Old 03-16-2021, 01:56 AM   #9
brjoon1021
Member
 
Registered: Dec 2003
Posts: 173

Original Poster
Rep: Reputation: 16
Thanks ! Done.
 
  


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
Firefox esr default browser doesn't create a ~/.local/share/applications file. LenHoff Linux - Software 0 01-15-2018 12:47 AM
[PCManFM] and .local/share/applications: associate all MimeTypes Michael Uplawski Linux - Software 3 11-15-2017 01:39 PM
Automatically update "Applications" menu entries from /opt/local/share/applications nomadoro Linux - General 2 08-25-2012 07:26 AM
Possible ~/.local/share/applications privilege escalation in Gnome addux Linux - Security 1 03-24-2012 01:01 AM
Modifying /usr/share/applications/default.list (Or: setting default applications) arizonagroovejet Linux - Desktop 0 06-02-2010 04:19 AM

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

All times are GMT -5. The time now is 03:41 PM.

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