A couple of things that might bug you: find won't follow symbolic links by default; find will drill into filesystems you might wish it hadn't (such as a network filesystem or other, in-memory or special, filesystems). You can control all of that from options you will find in your findman page.
Hi,
I am issuing find command below mentioned ways but it givs different count. I don't understand the behaviour. Could any one have any clue?
$ find . -mtime -5 -maxdepth 1 -exec ls -lrt {} \; | wc -l
169
$ find . -mtime -5 -maxdepth 1 | wc -l
47
$ find . -mtime -5 -maxdepth 1 | wc -l... (2 Replies)
Hi,
I am looking to extract linux version from /etc/*-release file.
I am specifically tring to avoid use of awk command here. would be great if can do done via sed or grep command.
Red Hat Enterprise Linux Server release 6.5 (Tikanga)
output must be 6
regards,
Litu (7 Replies)
Under one of my directories on server I have more than 500 files with different type and name. When I run the find command to list the files with 'ABC_DEFGH' in the begining of its name and older than 20 days, nothing is return as result. Though I know there are more than 400 files which their name... (10 Replies)
Hello.
From a script, a command for a test is use :
find /home/user_install -maxdepth 1 -type f -newer /tmp/000_skel_file_deb ! -newer /tmp/000_skel_file_end -name '.bashrc' -o -name '.profile' -o -name '.gtkrc-2.0' -o -name '.i18n' -o -name '.inputrc'
Tha command... (3 Replies)
Hello.
I need to find all files but excluding some because
I need to exclude some sub-folders
I need to exclude some filenames
Files must be within two dates.
The result is sent to a function
I cannot achieved to put together the date conditions, the folder conditions and the... (4 Replies)
Discussion started by: jcdole
4 Replies
LEARN ABOUT OPENDARWIN
umount
UMOUNT(8) BSD System Manager's Manual UMOUNT(8)NAME
umount -- unmount filesystems
SYNOPSIS
umount [-fv] special | node
umount -a | -A [-fv] [-h host] [-t type]
DESCRIPTION
The umount command calls the unmount(2) system call to remove a special device or the remote node (rhost:path) from the filesystem tree at
the point node. If either special or node are not provided, the appropriate information is taken from the fstab(5) file.
The options are as follows:
-a All the filesystems described in fstab(5) are unmounted.
-A All the currently mounted filesystems except the root are unmounted.
-f The filesystem is forcibly unmounted. Active special devices continue to work, but all other files return errors if further accesses
are attempted. The root filesystem cannot be forcibly unmounted.
-h host
Only filesystems mounted from the specified host will be unmounted. This option is implies the -A option and, unless otherwise spec-
ified with the -t option, will only unmount NFS filesystems.
-t type
Is used to indicate the actions should only be taken on filesystems of the specified type. More than one type may be specified in a
comma separated list. The list of filesystem types can be prefixed with ``no'' to specify the filesystem types for which action
should not be taken. For example, the umount command:
umount -a -t nfs,hfs
umounts all filesystems of the type NFS and HFS.
-v Verbose, additional information is printed out as each filesystem is unmounted.
FILES
/etc/fstab filesystem table
SEE ALSO unmount(2), fstab(5), mount(8)HISTORY
A umount command appeared in Version 6 AT&T UNIX.
4th Berkeley Distribution May 8, 1995 4th Berkeley Distribution