Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

(New to unix)
In ubuntu When I am up in "/" folder i type

sudo find . -name  .erlang.cookie

and the result is

./var/lib/rabbitmq/.erlang.cookie

then when I am on the folder - /var/lib/rabbitmq - and I type "ls" I see one file named mnesia.

( when I type again find command i see ./.erlang.cookie what does that mean?)

share|improve this question
add comment

2 Answers 2

up vote 20 down vote accepted

In Unix, a filename beginning with a dot, like .erlang.cookie, is considered a hidden file and is not shown by bare ls. Type ls -a to also show hidden files.

From man ls:

   -a, --all
          do not ignore entries starting with .

However, you can show a hidden file with ls if you specify the name:

$ ls .erlang.cookie
.erlang.cookie
share|improve this answer
    
Or ls -A if you don't want to show . and ... Having them displayed is generally only useful if you use ls -l. –  nyuszika7h Mar 9 at 14:00
add comment

In Unix, hidden files start with dot(.), so when you issue "ls" command it will not list them out. If you want to print hidden file with long listing format you can use following command,

$ls -la

where,
l - use a long listing format
a- do not ignore entries starting with .
share|improve this answer
add comment

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.