Sponsored Content
Top Forums Shell Programming and Scripting find command exclude nfs mounts Post 302632585 by Peasant on Monday 30th of April 2012 11:18:31 AM
Old 04-30-2012
Try
Code:
find / -type d -name freetds ! -fstype nfs

If you want to find a directory named freetds on everything but nfs.

In your find statment your are trying the find everything but a directory named freetds on nfs filesystem.

Hope that helps

Regards
Peasant.

---------- Post updated at 10:18 AM ---------- Previous update was at 10:17 AM ----------

Try
Code:
find / -type d -name freetds ! -fstype nfs

If you want to find a directory named freetds on everything but nfs.

In your find statment your are trying the find everything except a directory named freetds on nfs filesystem.

Hope that helps

Regards
Peasant.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

find command to exclude directories

Howdy I have this directory structure ... eep eepaptest eepfatest eepgltest eep.old eeppoptest ehf ehfaptest ehfgltest ehp ehpgltest I want to find files in these directories, but I want to exclude eep, ehf & ehp. Cany anyone help with the correct command ?? (1 Reply)
Discussion started by: SmurfGGM
1 Replies

2. AIX

NFS mounts and user permissions

We need to allow ordinary users to preform NFS mounts on a AIX server without giving them root access to the server. Is there a way to give an ordinary users root access on a tem basis or a script to allow them to preform NFS mounts? (4 Replies)
Discussion started by: daveisme
4 Replies

3. Shell Programming and Scripting

Help - Find command to exclude sub-directories

Hi Forum. I'm trying to write a script that finds and deletes files that are older than 300 days. The script will read a table that contains the following 3 columns: 1st col: “Y” means sub-directory scan; "N" means no subdirectory scan 2nd col: sub-directory location 3rd col: File prefix... (7 Replies)
Discussion started by: pchang
7 Replies

4. Solaris

Max. number of NFS mounts

Hi, I was wondering, whether there is a limit regarding the max number of nfs mounts in Oracle Solaris 10 (newest update). The data center plans to migrate from a fibre channel based storage environment (hitachi) to a nfs based storage environment (netapp). Regarding the Solaris 10 database... (1 Reply)
Discussion started by: schms
1 Replies

5. Shell Programming and Scripting

Find command with exclude

I had a Shell script that removes the files that are in a directory older than the specified days. find /test/files -mtime +10 I would like to add another condition to the find command above that is to exclude any file starting with ‘CGU' Thanks (1 Reply)
Discussion started by: db2dbac
1 Replies

6. Red Hat

NFS mounts query

We have 2 servers in cluster. Node1 has an ext3 mount for backups and the other connects using NFS to this node1. I believe the reason it is configured in this manner is to not duplicate backups since this is a Database server. Not sure this was the reason though. Right now if node1 goes down all... (5 Replies)
Discussion started by: ikn3
5 Replies

7. Solaris

NFS mounts not automounting on boot

I have several Solaris 11.2 zones. when I reboot them I have to go in and do mountall to mount the NFS mounts. any ideas where to troubleshoot why they are not automounting? (2 Replies)
Discussion started by: os2mac
2 Replies

8. Shell Programming and Scripting

How-To Exclude Directory in find command

How can i tweak the below find command to exclude directory/s -> "/tmp/logs" find . -type f \( ! -name "*.log*" ! -name "*.jar*" \) -printNote: -path option/argument does not work with the version of find that i have. bash-3.2$ uname -a SunOS mymac 5.10 Generic_150400-26 sun4v sparc sun4v (7 Replies)
Discussion started by: mohtashims
7 Replies

9. Shell Programming and Scripting

Exclude directories in FIND command

Can you please help tweak the below command to exclude all directories with the name "logs" and "tmp" find . -type f \( ! -name "*.tar*" ! -name "*.bkp*" \) -exec /usr/xpg4/bin/grep -i "user_1" /dev/null {} + >result.out bash-3.2$ uname -a SunOS mymac 5.10 Generic_150400-26 sun4v sparc sun4v... (9 Replies)
Discussion started by: mohtashims
9 Replies

10. AIX

Sysmirror 7.1.3 Resource Group NFS mounts

Hello all, I'm working to fix a two-node SysMirror cluster that uses NFS mounts from a NetApp appliance as the data repository. Currently all the NFS mounts/unmounts are called from the application controller scripts, and since file collection isn't currently working, (One fight at at time... (3 Replies)
Discussion started by: ZekesGarage
3 Replies
MOUNTD(8)						    BSD System Manager's Manual 						 MOUNTD(8)

NAME
mountd -- service remote NFS mount requests SYNOPSIS
Obsolete. See nfsd(8). DESCRIPTION
The mountd daemon was formerly the server for NFS mount requests from NFS clients. This functionality has been moved into the NFS server daemon nfsd(8). Please refer to nfsd(8) for NFS server documenation. The following is a list of former mountd options that are now available as nfsd(8) options: mountd option nfsd option Description -n -N allow non-root mounts -r -R allow regular file mounts exportsfile -F exportsfile alternate exports file However, such configuration options are normally specified via nfs.conf(5). When the NFS server is started, it loads the export host addresses and options into the kernel using the nfssvc(2) system call. After chang- ing the list of exports (either directly or indirectly via a change in netgroup membership), the administrator should send a hangup signal to the nfsd daemon to get it to reload the export information: kill -s HUP `cat /var/run/nfsd.pid` For backwards compatibility, the following should also work: kill -s HUP `cat /var/run/mountd.pid` Any errors encountered while processing the export entries will be logged via syslog(3). FILES
/etc/exports the list of exported filesystems /var/run/mountd.pid the pid of the currently running mountd /var/run/mountdtab the current list of outstanding mounts served /var/run/mountdexptab information about exported file systems and directories (UUIDs, handles, ...) SEE ALSO
nfsd(8), exports(5), nfs.conf(5), nfsstat(1), portmap(8), showmount(8) HISTORY
The mountd utility first appeared in 4.4BSD. It's functionality was merged into nfsd(8) in Darwin 9. BSD
November 10, 2006 BSD
All times are GMT -4. The time now is 12:41 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy