Searching for Links


 
Thread Tools Search this Thread
Operating Systems AIX Searching for Links
# 1  
Old 05-25-2007
Searching for Links

Hi there,

I have a small problem, i need to delete a folder/file system but whenever I try I get an error telling me the resource is busy or the folder is not empty. I've checked the folder and it is very empty.

I'm thinking that there is a link somewhere to the folder that I don't know about, is there any way you can search for links at all?? I've tried searching for the folder name but this only brings up two folders that don't have any links to it in.

PLEASE HELP Smilie
# 2  
Old 05-25-2007
Code:
man find # very handy
find / -type l -print # will find any links from root
find . # will list everything starting from current dir

# 3  
Old 05-25-2007
Cheers Andy, I tried that but just got a massive list of files in /usr & /var ? Smilie
# 4  
Old 05-25-2007
Quote:
i need to delete a folder/file system
What folder/file system? Give the full path.
What OS and version?
If you are trying to unmount a file system, make sure you are not in it (that could give you the resource busy error)

Quote:
I've checked the folder and it is very empty.
Post the output of the command 'ls -la' from the folder
# 5  
Old 05-25-2007
The folder is /tempdisk

I get an error saying it's not empty from the following commands
rm -r /tempdisk
rm -r -f /tempdisk
rmdir /tempdisk

The file system is also /tempdisk
Through smitty or via command line I get an error saying the resource is busy.
I thought I might be in it but it's not that, and no one else is as I killed every connection to the lpar bar mine.

ls -la gives back . & .. that's it.

I'm on AIX 5.3 ML03
Login or Register to Ask a Question

Previous Thread | Next Thread

5 More Discussions You Might Find Interesting

1. AIX

List all the soft links and hard links

Hi I'm logged in as root in an aix box Which command will list all the soft links and hard links present in the server ? (2 Replies)
Discussion started by: newtoaixos
2 Replies

2. Solaris

Hard Links and Soft or Sym links

When loooking at files in a directory using ls, how can I tell if I have a hard link or soft link? (11 Replies)
Discussion started by: Harleyrci
11 Replies

3. Shell Programming and Scripting

searching a file with a specified text without using conventional file searching commands

without using conventional file searching commands like find etc, is it possible to locate a file if i just know that the file that i'm searching for contains a particular text like "Hello world" or something? (5 Replies)
Discussion started by: arindamlive
5 Replies

4. Shell Programming and Scripting

recursive searching for files in directory that matches a particular name - taking care of links

Hi, I am writing a shell script that finds all files named <myFile> in a directory <dir> or any of its subdirectories, recursively. I also need to take care of symbolic links that may form cycles, to avoid infinite loops. I started writing the code but got stuck. I thought using recursion... (7 Replies)
Discussion started by: vickylife
7 Replies

5. UNIX for Advanced & Expert Users

About links

why directory has two links as default. what's the purpose? (1 Reply)
Discussion started by: nagalenoj
1 Replies
Login or Register to Ask a Question