Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm new to Linux and have been seeing this often. Could someone explain the concept here?

~/.somefilename

What does the ~ (tilde) signify?

share|improve this question

migrated from stackoverflow.com Sep 13 '12 at 6:26

This question came from our site for professional and enthusiast programmers.

1  
tilde is the users' home directory –  ddyer Sep 12 '12 at 23:09
2  
In any case, this is covered in the appropriate shell reference, such as the Bash Reference Manual. –  pst Sep 12 '12 at 23:10
    
Looks like google does not support it support.google.com/websearch/bin/… –  Adrian Cornish Sep 12 '12 at 23:12

3 Answers 3

up vote 7 down vote accepted

The ~ (tilde) is a quick way of specifying your home directory.

The ~/.somefilename means your home directory, the file .somefilename.

share|improve this answer
2  
I should also mention that the . infront of a file name normally signifies it is a hidden file. It will not show up by default in an ls of a directory unless you specify -a as an option to the ls command. –  Lipongo Sep 12 '12 at 23:14

The tilde ~ character is interpreted by most shells as the "home directory" for you. The "." doesn't mean anything if it's part of a filename, although some programs such as ls will (unless explicitely told otherwise) not show files if their name starts with a "dot". Sort of a "hidden" attribute.

share|improve this answer

Tilde originally shared the same space on the HOME key of certain keyboards and by association still means home directory.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.