Sponsored Content
Top Forums UNIX for Dummies Questions & Answers list directories on a file system Post 34650 by yls177 on Tuesday 4th of March 2003 01:34:59 AM
Old 03-04-2003
mount will only show those file systems that are mounted over..., right?

find / -type d -print , yes, it will give all the directories that are mounted over /. But that is far too expressive. i wanted to have the parent directory only....

will go and find out more based on find / -type d -print...
even this method is not a direct command or function. are there such functionality around?

thanks
yls177
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Unix File System performance with large directories

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

List /home directories in a file

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

How to list all the directories, sub directories in a mount along with size in ascending order?

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

List directories and sub directories recursively excluding files

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

Script for deleting files and directories when the file system reaches the threshold

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

How to list all the files, directories and sub-directories in the current path except one directory?

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

Looping inside directories based on a file which contains file directory list

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

Chose list of sub directories in a bash script file

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

List the directories, having given pattern in the directories name, sorted by creation date

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

File System Error: BAD SUPERBLOCK AT BLOCK 16: NUMBER OF DIRECTORIES OUT OF RANGE

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
mount_lofs(1M)															    mount_lofs(1M)

NAME
mount_lofs: mount, umount - mount and unmount LOFS file systems SYNOPSIS
specific_options] {special_directory|directory} specific_options] special_directory directory {special_directory|directory} DESCRIPTION
The command mounts LOFS file systems. Only superuser can mount LOFS file systems. Other users can use to list mounted file systems. attaches special_directory, a directory from one of the mounted file systems, to directory, an another directory in one of the mounted file systems. This enables new file systems to be created, which provide access to existing directories or file systems using alternate path names. Both special_directory and directory should already exist. directory will become the root of the newly mounted LOFS file system, containing the file system hierarchy under special_directory. special_directory and directory must be specified as absolute path names. If either special_directory or directory is omitted, attempts to determine the missing value from an entry in the file. can be invoked on any removable file system, except If is invoked without any arguments, it lists all the mounted file systems from the file system mount table, The command unmounts mounted file systems. Only a superuser can unmount file systems. Options (mount) recognizes the following options: Attempt to mount all file systems described in All optional fields in must be included and supported. If is specified, all LOFS file systems in are mounted. If is specified in an entry's option list, this entry is skipped. File systems are not necessarily mounted in the order listed in Verbose mode. Write a message to standard output indicating which file system is being mounted. Specify the LOFS file system type (see fstyp(1M)). Limit actions to local file systems only. LOFS is a local file system. Specify options specific to the LOFS file system type. specific_options is a list of comma separated suboptions and/or keyword/attribute pairs intended for the LOFS spe- cific module of the command. The following specific_options are valid on an LOFS file system: Use all default options. When used, this must be the only option specified. Read-only (see below). Report the list of mounted file systems in the format. Prevent display of error messages resulting from an attempt to mount already mounted file systems. Mount the specified file system as read-only (see below). Report the output in a new style. The new style has the file system type and flags displayed in addition to the old output. The directory and spe- cial_directory fields are reversed. Echo the completed command line, but perform no other action. The command line is generated by incorporating the user-specified options and other information derived from This option allows the user to verify the command line. Options (umount) The command recognizes the following options: Attempt to unmount all file systems described in All optional fields in must be included and supported. If file system type is specified, all the LOFS file systems in are unmounted. File systems are not necessarily unmounted in the order listed in Specify the LOFS file system type (see fstyp(1M)). Verbose mode. Write a message to standard output indicating which file system is being unmounted. Echo the completed command line, but perform no other action. The command line is generated by incorporating the user-specified options and other information derived from This option allows the user to verify the command line. EXAMPLES
Mount an LOFS file system: Mount another LOFS file system: WARNINGS
LOFS file systems provide the user with numerous applications; however, they may be potentially confusing. LOFS file systems should gener- ally be created by an experienced user. For LOFS file systems which are mounted read-only, if the underlying file system is mounted writable, certain write operations on the LOFS will succeed. Thus LOFS should not be relied upon to provide a strictly write-only alternative image of a read-write file system. AUTHOR
was developed by HP, AT&T, the University of California, Berkeley, and Sun Microsystems. FILES
Static information about the file systems Mounted file system table SEE ALSO
mount(1M), mount(2), fstab(4), mnttab(4). STANDARDS CONFORMANCE
mount_lofs(1M)
All times are GMT -4. The time now is 07:59 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy