LinuxQuestions.org
Visit Jeremy's Blog.
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 08-20-2010, 04:43 AM   #1
junglepunk
Member
 
Registered: Jun 2010
Posts: 41

Rep: Reputation: 15
which folder is ~


I want to edit the config file of an application I have installed and the documentation says that the config file is per-user and therefore stored in "~/". Which folder is that? The app itself is installed in "/usr/local/bin/".
 
Old 08-20-2010, 04:46 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

The ~/ folder refers to your home folder. So if your username is john, in most (if not all) Linux distros your home folder would be:
Code:
/home/john
You can test that by just typing:
Code:
cd
follewed by enter to go to your home directory and then:
Code:
pwd
to show the present working directory.

Kind regards,

Eric
 
Old 08-20-2010, 04:52 AM   #3
junglepunk
Member
 
Registered: Jun 2010
Posts: 41

Original Poster
Rep: Reputation: 15
Ah, thanks. But that leaves me with two options. Either the config file is hidden. Or it does not exist yet.

EDIT: Yup, it is hidden. I'm able to open it with nano in terminal.

Thanks for the help and topic solved.

Last edited by junglepunk; 08-20-2010 at 04:58 AM.
 
Old 08-20-2010, 04:59 AM   #4
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Config files usually live in '~' ($HOME as you now know) and their name start with a dot '.'.

Most linux applications will not display the so called 'dot files' by default. They are considered kind of hidden files, but that's just a convention as said. Most programs will have a command line option (like in ls -a) or a menu option (like in most file explorer) to show dot files.

Also, note that config files might not exist by default, some apps create the config file with the default settings the first time you run them. Some others won't do that, and you will have to look for sample config files under /usr/share/doc/<app-name> or in their web site.
 
Old 08-20-2010, 05:09 AM   #5
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hi,

Glad you figured it out. If you consider your problem/question solved, then please mark it as such using the Thread Tools.

Kind regards,

Eric
 
Old 08-20-2010, 05:19 AM   #6
junglepunk
Member
 
Registered: Jun 2010
Posts: 41

Original Poster
Rep: Reputation: 15
Thx for that explanation i92guboj. The file was hidden with a "dot", that's what confused me.
 
  


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
mixed mounting of automount and fstab in one folder? &different home folder using NIS herofmm Linux - Software 0 04-06-2009 11:00 AM
terminal shows folder but file browser does not show folder biharibong Debian 2 01-21-2009 12:58 PM
save web page results in a file and a folder. Whats the folder for? geeyathink General 2 01-30-2008 06:57 AM
Folder Max Size and Limiting SSH access to home folder. Mefistofeles Linux - General 4 11-26-2005 02:09 PM
how can i default the max folder file size when it create inside a folder antony_csf Linux - Software 1 06-17-2004 02:26 AM

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

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