09-22-2009
Directory is invisible in listing but it is exist.
Hi ALL.
Can anyone could help me.
Have you had a chance to experienced that when you list (ls) a directory from ordinary execution of command, you couldn't see the directory.
However, when you list it from the directory filename itself or even changing to directory (cd), it will show to you that there is an existing folder.
Sounds weird and interesting? Please see below sample or actual snapshot.....
No issues:
men:/nas> ls -ld FilterT*
drwxrwxr-x 2 user1 user1 1024 2009-03-14 16:36 FilterTools
men:/nas> ls -ld FilterTools
drwxrwxr-x 2 user1 user1 1024 2009-03-14 16:36 FilterTools
Here's the issue:
men:/nas> ls -ld CIM_SOLSUM*
/bin/ls: CIM_SOLSUM*: No such file or directory
men:/nas> ls -ld CIM_SOLSUMMARY
drwxrwxr-x 2 user1 user1 80 2009-09-19 17:46 CIM_SOLSUMMARY
men:/nas> cd CIM_SOLSUM*
-bash: cd: CIM_SOLSUM*: No such file or directory
men:/nas> cd CIM_SOLSUMMARY
men:/nas/CIM_SOLSUMMARY> ls -l
total 8
-rwxrwxr-x 1 user1 user1 130 2009-06-04 05:33 CIM_SOLSUMMARY.xml
Also, do you think there's an issue or has effect from NAS server?
sy1nas01:/fs/R14
113141856 100473888 12667968 89% /nas
Many thanks in advance.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Does any one know how to get a recursive directory listing in long format (showing owner, group, permission etc) without listing the files contained in the directories.
The following command also shows the files but I only want to see the directories.
ls -lrtR * (4 Replies)
Discussion started by: psingh
4 Replies
2. Shell Programming and Scripting
There are many servers and their directory structer should be exactly the same. To check the directory path for all servers, I wrote a script.
#! /bin/ksh
ARRAY_DIRECTORIES="/c/dev/custom/bin"
ARRAY_DIRECTORIES="/c/dev/db/custom/src"
ARRAY_ENV="remoteName200"
ARRAY_ENV="remoteName201"... (2 Replies)
Discussion started by: weonpc
2 Replies
3. Shell Programming and Scripting
Hi,
I want to write a shell script to check whether a directory (say A) is existing in a given location and if it is not, create it. (3 Replies)
Discussion started by: sabya
3 Replies
4. Shell Programming and Scripting
I have the below script to check whether directory is exist or not , now I sure the directory /abc NOT exist , but when run the script , it still pop the result is "the directory exist" , could suggest what is wrong ? thx
ll -d /abc > /dev/null 2>&1
if
then
echo "the directory exist !!"
... (7 Replies)
Discussion started by: ust
7 Replies
5. Solaris
How to troubleshoot autofs /mnt/sum: does not exist in one of the sun server?
This was working previously. No issue on NFS mounting.
root@devapp # cat /etc/dfs/dfstab
share -F nfs -o rw /linxnet/server2
# Master map for automounter
#
+auto_master
/net -hosts ... (7 Replies)
Discussion started by: KhawHL
7 Replies
6. UNIX for Dummies Questions & Answers
Hi,
I know how to use the test command ( ...) to find a single given name file.
However, I have a case in which I have a directory with one file and one sub-directory. I know that the file starts with "fub".
The command doesn't work if i call the file "fub*" as it doesn't understand I meant a... (2 Replies)
Discussion started by: buj
2 Replies
7. Shell Programming and Scripting
HI folks,
can any one tell me how to check whether the file is existed in a directory or not .
let me tell you my requirement : if the file is existed i should display a one message or else i have to send a mail ..
i have the mail logic .. but I'm failed to check file existence .. please... (5 Replies)
Discussion started by: sravan008
5 Replies
8. Shell Programming and Scripting
Hi,
Im trying to add some validation into my shell script code that basically checks whether a directory exists before SFTP'ing a file to it. If the directory exists then it will add the file, if not then it should return some kind of message. This is the code I have written so far but with no... (1 Reply)
Discussion started by: Jack_Maloney
1 Replies
9. Solaris
Hii all,
i create the user
useradd -d /home/kk kk
passwd kk
when i tried to login to kk
i get a error user directory doesn't exist
then i tried
useradd kkk
passwd kkkwhen i tried to login to kkk
i get the same error user directory doesn't exist. (4 Replies)
Discussion started by: vipinkumarr89
4 Replies
10. UNIX for Beginners Questions & Answers
I'm brand new to AIX and I looked up how to print this file and it was working but now I'm not able to do it all of a sudden. the file name is rom1.txt so this is what i wrote in the command line and I know I'm in the right directory. In bold is what I seem to be messing up with.
prod @ root... (3 Replies)
Discussion started by: Dark0Prince
3 Replies
LEARN ABOUT CENTOS
checkrad
CHECKRAD(5) File Formats Manual CHECKRAD(5)
NAME
checkrad -- See if a user is (still) logged in on a certain port.
SYNOPSIS
checkrad [-d] nas-type nas-ip nas-port login session-id
DESCRIPTION
Checkrad is used by the radius server to check if its idea of a user logged in on a certain port/NAS is correct if a double login is
detected.
Returns: 0 = no duplicate, 1 = duplicate, >1 = error.
OPTIONS
-d Enable printing of debugging informations.
nas-type
Type of port/NAS. Can be one of:
o ascend
o bay
o cisco
o cisco_l2tp
o computone
o cvx
o digitro
o dot1x
o livingston
o max40xx
o mikrotik
o mikrotik_snmp
o multitech
o netserver
o other
o pathras
o patton
o portslave
o pr3000
o pr4000
o redback
o tc
o usrhiper
o versanet
The "other" type cause checkrad to skip any check and always returns 1.
nas-ip IP address of the NAS to check.
nas-port
The NAS port to check (may be ignored by some nas-type).
login The login name to check.
session-id
Session to check. (actually ignored by all nas-type)
SEE ALSO
radiusd(8)
AUTHOR
Written by Miquel van Smoorenburg, miquels@cistron.nl.
This manual page was written by Marco Nenciarini <mnencia@debian.org> for the Debian project (but may be used by others).
13 January 2006 CHECKRAD(5)