LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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-21-2014, 09:50 PM   #1
tranphat
Member
 
Registered: Dec 2013
Posts: 67

Rep: Reputation: Disabled
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
 
Old 08-21-2014, 09:57 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 11,809
Blog Entries: 13

Rep: Reputation: 2948Reputation: 2948Reputation: 2948Reputation: 2948Reputation: 2948Reputation: 2948Reputation: 2948Reputation: 2948Reputation: 2948Reputation: 2948Reputation: 2948
Can you share the name of the hidden directory?
 
Old 08-21-2014, 10:17 PM   #3
initramfs
LQ Newbie
 
Registered: Aug 2014
Posts: 27

Rep: Reputation: Disabled
You can try the sync command, the sync command updates filesystems
 
Old 08-21-2014, 10:22 PM   #4
tranphat
Member
 
Registered: Dec 2013
Posts: 67

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by frankbell View Post
Can you share the name of the hidden directory?
Hi, this is the name of hidden directory /sapdata/RU5/.ckpt/
 
Old 08-21-2014, 10:26 PM   #5
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 3,244

Rep: Reputation: 1403Reputation: 1403Reputation: 1403Reputation: 1403Reputation: 1403Reputation: 1403Reputation: 1403Reputation: 1403Reputation: 1403Reputation: 1403
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.
 
Old 08-21-2014, 10:27 PM   #6
tranphat
Member
 
Registered: Dec 2013
Posts: 67

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by initramfs View Post
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.
 
Old 08-21-2014, 10:43 PM   #7
tranphat
Member
 
Registered: Dec 2013
Posts: 67

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by rknichols View Post
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.
 
Old 08-22-2014, 09:30 AM   #8
tranphat
Member
 
Registered: Dec 2013
Posts: 67

Original Poster
Rep: Reputation: Disabled
Hi all,

Any idea for my case
 
Old 08-22-2014, 09:44 AM   #9
odiseo77
Senior Member
 
Registered: Dec 2004
Location: Caracas, Venezuela
Distribution: Debian Sid, OpenSUSE 42.2
Posts: 1,170

Rep: Reputation: 581Reputation: 581Reputation: 581Reputation: 581Reputation: 581Reputation: 581
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).

Last edited by odiseo77; 08-22-2014 at 09:46 AM.
 
Old 08-22-2014, 11:13 AM   #10
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 3,244

Rep: Reputation: 1403Reputation: 1403Reputation: 1403Reputation: 1403Reputation: 1403Reputation: 1403Reputation: 1403Reputation: 1403Reputation: 1403Reputation: 1403
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?
 
Old 08-22-2014, 08:40 PM   #11
JeremyBoden
Senior Member
 
Registered: Nov 2011
Distribution: Debian
Posts: 1,049

Rep: Reputation: 206Reputation: 206Reputation: 206
You will have a directory called /sapdata/RU5 which has a subdirectory called .ckpt
 
Old 08-23-2014, 08:39 AM   #12
tranphat
Member
 
Registered: Dec 2013
Posts: 67

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by odiseo77 View Post
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.
 
Old 08-23-2014, 08:42 AM   #13
tranphat
Member
 
Registered: Dec 2013
Posts: 67

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by rknichols View Post
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
 
Old 08-23-2014, 08:46 AM   #14
tranphat
Member
 
Registered: Dec 2013
Posts: 67

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by JeremyBoden View Post
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/
 
Old 08-23-2014, 10:41 AM   #15
JeremyBoden
Senior Member
 
Registered: Nov 2011
Distribution: Debian
Posts: 1,049

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


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
Show Hidden Files mnardone Programming 5 09-20-2009 12:37 AM
terminal shows folder but file browser does not show folder biharibong Debian 2 01-21-2009 12:58 PM
show hidden files in shell lion_heart_300 Slackware 4 06-29-2006 07:28 AM
show hidden files on Redhat 9.0 dflorence Linux - Newbie 3 11-05-2003 11:11 AM


All times are GMT -5. The time now is 11:38 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration