03-04-2003
It is not clear what you're asking for. Filesystems are mounted. Directories are simply created. When a filesystem is mounted, it is mounted on a directory and that directory is then called a mountpoint.
My guess is that you're confusing the issue by using the term "mount". If you want to get a list of the directories in a directory, try either:
cd /
ls -l | grep "^d"
or
cd /
find . -type d -print \( -name \* -prune \)
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
how does the Unix File System perform with large directories (containing ~30.000 files)?
What kind of structure is used for the organization of a directory's content, linear lists, (binary) trees?
I hope the description 'Unix File System' is exact enough, I don't know more about the file... (3 Replies)
Discussion started by: dive
3 Replies
2. Shell Programming and Scripting
Hi, i was looking at a unix paper i found and one of the tasks was to create a file called 'usernames' that contains a list of all directories in /home. This file should be located in the /home/userinfo directory.
How would i go about doing this without changing directories from the home... (2 Replies)
Discussion started by: warlock129
2 Replies
3. Shell Programming and Scripting
Hi ,
I am very new to unix as well as shell scripting. I have to write a script for the following requirement.
In a particular mount, have to list all the directories and sub directories along with size of the directory and sub directory in ascending order.
Please help me in this regard and many... (4 Replies)
Discussion started by: nmakkena
4 Replies
4. UNIX for Dummies Questions & Answers
Hi,
Please help me, how to get all the direcotries, its sub directories and its sub directories recursively, need to exclude all the files in the process.
I wanted to disply using a unix command all the directories recursively excluding files.
I tried 'ls -FR' but that display files as... (3 Replies)
Discussion started by: pointers
3 Replies
5. Shell Programming and Scripting
Hi
Can someone assist in writing a script.
I have a filesystem named /sybase in my aix lpar.
When this filesystem becomes 94% full all the files and directories under /sybase/logs should be deleted immediately. :confused: (7 Replies)
Discussion started by: newtoaixos
7 Replies
6. Shell Programming and Scripting
Can anyone come up with a unix command that lists
all the files, directories and sub-directories in the current directory
except a folder called log.?
Thank you in advance. (7 Replies)
Discussion started by: Manjunath B
7 Replies
7. Shell Programming and Scripting
Hi All,
Please help.
I have got a file which contains a listing of a file and some directories after it, one by one. I am calling this file xyz.txt here
file1
dir1
dir2
dir3
dir4
file2
dir5
dir6
dir7
dir8
file3
dir9
dir10
dir11
dir12 (6 Replies)
Discussion started by: Piyush Jakra
6 Replies
8. Shell Programming and Scripting
Hi,
I have a command in my bash script, searchDirectoryName.sh:
DIR_NAME=$(find . -type d)
echo "${DIR_NAME}"
.
./Dir1
./Dir1/1.0.2.1
./Dir2
./Dir2/1.1
./Dir3
./Dir3/2.2.1
How can I select only following directory names with second subdirectoies and without first ./ in the... (3 Replies)
Discussion started by: hce
3 Replies
9. UNIX for Dummies Questions & Answers
It is for HP-Unix B.11.31.
Requirement:
1. List the directories, having given pattern in the directories name, sorted by creation date.
Example: Directories with name "pkg32*" or "pkg33*"
2. On the output of 1. list the directories by creation date as sort order, with creation date... (2 Replies)
Discussion started by: Siva SQL
2 Replies
10. Solaris
Hi All,
we are having a file system error in one of our servers. The server failed to boot in usual user mode. Instead boot with single user mode and requesting to run a FSCK manually to repair the corrupted. see the below output.
Netra T2000, No Keyboard
Copyright 2008 Sun Microsystems,... (5 Replies)
Discussion started by: Buddhike G
5 Replies
LEARN ABOUT DEBIAN
mounted
mounted(7) Miscellaneous Information Manual mounted(7)
NAME
mounted - event signalling that a filesystem has been mounted
SYNOPSIS
mounted DEVICE=DEVICE MOUNTPOINT=MOUNTPOINT TYPE=TYPE OPTIONS=OPTIONS [ENV]...
DESCRIPTION
The mounted event is generated by the mountall(8) daemon after it has mounted a filesystem. mountall(8) will wait for all services started
by this event to be running, all tasks started by this event to have finished and all jobs stopped by this event to be stopped before emit-
ting any other events related to this filesystem or continuing with other filesystems depending on this one.
The DEVICE, MOUNTPOINT, TYPE and OPTIONS environment variables contain the values of the fstab(5) fields for this mountpoint.
EXAMPLE
A tool that should be run after mounting the /tmp filesystem might use:
start on mounted MOUNTPOINT=/tmp
task
SEE ALSO
mounting(7) virtual-filesystems(7) local-filesystems(7) remote-filesystems(7) all-swaps(7) filesystem(7)
mountall 2009-12-21 mounted(7)