Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 01-25-2005, 07:13 PM   #1
Registered: Jan 2005
Location: Earth
Distribution: Fedora
Posts: 40

Rep: Reputation: 15
Is "~/" assumed to be a user's home directory

I see references to ~/.(filename) from time to time. Does the tilda (~) refer to home directory? I'm trying to tweak mrxvt and there's a sample config file on the webpage that says to put the file in ~/.mrxvtrc (or ~/.Xdefaults).

What is ~/ ?

Old 01-25-2005, 07:16 PM   #2
Senior Member
Registered: Dec 2001
Location: New Zealand
Distribution: Debian
Posts: 1,046

Rep: Reputation: 45

~ is equivalent to /home/foo, where foo is your account name. You can also usually use this in a shell, eg. cd ~/foo/bar.


Old 01-25-2005, 07:26 PM   #3
Registered: Jan 2005
Location: Earth
Distribution: Fedora
Posts: 40

Original Poster
Rep: Reputation: 15
Old 01-25-2005, 10:49 PM   #4
LQ Guru
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Technically, most shells expand ~ to be an alias for $HOME. You can do:
$ export HOME=/var/mysql
$ cd ~
$ pwd


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
cant login. "no directory /home/chris!" qwijibow Linux - Newbie 5 02-26-2009 01:58 PM
permissions of my /home/"user" directory error darkleaf Linux - Software 10 09-26-2004 03:08 AM
"No write access to $HOME directory" Arthaus Linux - Newbie 2 01-12-2004 08:22 PM
Does anyone know the origin of using "~" to represent the user's home directory? GonzoJohn General 6 10-14-2003 04:42 PM
RH9 NIS login error: "home directory does not exist" airrr Linux - Networking 2 08-06-2003 02:47 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:46 PM.

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