LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Hidden folder does not show (https://www.linuxquestions.org/questions/linux-newbie-8/hidden-folder-does-not-show-4175515865/)

tranphat 08-21-2014 09:50 PM

Hidden folder does not show
 
Hi all,

To show the hidden files and folders, we issue the command ls -la. It will list all the hiddens

But in my case, I know the existance of hidden folder and I can cd to it. But when issuing ls -la, it does not show up.

Is there any miracle in this case? Please help me. I'm using Suse Enterprise Linux

Thanks in advance.

Phat

frankbell 08-21-2014 09:57 PM

Can you share the name of the hidden directory?

initramfs 08-21-2014 10:17 PM

You can try the sync command, the sync command updates filesystems

tranphat 08-21-2014 10:22 PM

Quote:

Originally Posted by frankbell (Post 5225129)
Can you share the name of the hidden directory?

Hi, this is the name of hidden directory /sapdata/RU5/.ckpt/

rknichols 08-21-2014 10:26 PM

Try "ls -lab". The "-b" option will print escape sequences for any non-printable characters. You might have a name with a reverse linefeed or other cursor control sequence in it that garbles the display.

tranphat 08-21-2014 10:27 PM

Quote:

Originally Posted by initramfs (Post 5225141)
You can try the sync command, the sync command updates filesystems

Hi initramfs,

this does not work. when issuing ls -la, we only see . and ..
we cannot use tab key when cd ./ck to get the full name of it. We must manually type cd ./ckpt/
In this hidden folder, we can ls to view the data.

tranphat 08-21-2014 10:43 PM

Quote:

Originally Posted by rknichols (Post 5225146)
Try "ls -lab". The "-b" option will print escape sequences for any non-printable characters. You might have a name with a reverse linefeed or other cursor control sequence in it that garbles the display.

Hi rknichols,

It does not show up too. It's quite weird.

tranphat 08-22-2014 09:30 AM

Hi all,

Any idea for my case :(

Hungry ghost 08-22-2014 09:44 AM

Maybe the permissions of the directory in question are messed up? I'm not sure if this is possible, but you might have execution permissions on it, but not read permissions. What is the output of ls -l in the directory that is directly above the 'problematic' directory? (We only need the part of the output related to this directory).

rknichols 08-22-2014 11:13 AM

By any chance do you have a CDPATH set in your shell? That would allow "cd .ckpt" to go somewhere that was not in the current directory. What does "/bin/pwd" show when you are in that mysterious directory?

JeremyBoden 08-22-2014 08:40 PM

You will have a directory called /sapdata/RU5 which has a subdirectory called .ckpt

tranphat 08-23-2014 08:39 AM

Quote:

Originally Posted by odiseo77 (Post 5225413)
Maybe the permissions of the directory in question are messed up? I'm not sure if this is possible, but you might have execution permissions on it, but not read permissions. What is the output of ls -l in the directory that is directly above the 'problematic' directory? (We only need the part of the output related to this directory).

Hello odiseo77,

When issue ls -l in the direct parent folder of 'problematic folder', we see as normal output. I will show you the result in the next week. Now I cannot access to the system.

tranphat 08-23-2014 08:42 AM

Quote:

Originally Posted by rknichols (Post 5225480)
By any chance do you have a CDPATH set in your shell? That would allow "cd .ckpt" to go somewhere that was not in the current directory. What does "/bin/pwd" show when you are in that mysterious directory?

Hi rknichols,

CDPATH here you mean is shell environment variable? I will check and let you know later the output of /bin/pwd

tranphat 08-23-2014 08:46 AM

Quote:

Originally Posted by JeremyBoden (Post 5225705)
You will have a directory called /sapdata/RU5 which has a subdirectory called .ckpt

Hi JeremyBoden,

Yes, you are "right". When I issue "cd /sapdata/RU5/" and issue "ls -la", we don't see the .ckpt folder (it should be shown up by -a switch of ls command)

In the root of /sapdata/RU5/ we can issue "cd .ckpt/" ( we must type directly, cannot use tab key)and we can see data within .ckpt/

JeremyBoden 08-23-2014 10:41 AM

It was caused by the use of the directory separator character '/' in a name.


All times are GMT -5. The time now is 06:25 AM.