05-08-2017
Sure that works across file systems?
Quote:
Originally Posted by
general_franco
. . . from a directory on one filesystem to that on another . . .
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Would I be correct in assuming that find doesn't bother recursivley searching down sim links. (It doesn't seem to so I guess it doesn't!!!) Is there anyway to make it do so? (3 Replies)
Discussion started by: peter.herlihy
3 Replies
2. Shell Programming and Scripting
Hi,
i wan to search the file starting with Admin into the directory Output. I am running below command:
find /appl/Output -name "Admin*" -prune
but this command is going into the sub directories present under output. I do not want to search under sub directories. Any help will be highly... (6 Replies)
Discussion started by: Vishal123
6 Replies
3. Shell Programming and Scripting
i have a list of files below:
rwxrwxrwx 1 pipe pipe 180 Mar 4 22:47 del_0n_Date
-rwxrwxrwx 1 pipe pipe 472 Mar 4 22:58 mail_Check
-rw-r--r-- 1 pipe pipe 92 Mar 4 22:58 minfo.txt
-rwxrwxrwx 1 pipe pipe 609 Mar 5 05:12... (6 Replies)
Discussion started by: ali560045
6 Replies
4. Shell Programming and Scripting
I am trying to copy 2 types of files so I can archive them. I tested with a set of commands:
touch -t $(date -d "-60 day" +%Y%m%d) WORKDIR/REF
find TARGETDIR/ -type f -maxdepth 1 -iname \*.out\* -or -iname \*.log\* ! -newer WORKDIR/REF -exec ls -l {} \;
This correctly lists any files in the... (2 Replies)
Discussion started by: prismtx
2 Replies
5. Shell Programming and Scripting
Hi
for today i have 10 files, in that i need search some values how can i write a find cmd with
perticular date
thanks
SAIC (4 Replies)
Discussion started by: saic
4 Replies
6. Shell Programming and Scripting
Hi All,
My target is to find the biggest files opened by any process and from that i have to find process id and the corresponding file also to avoid file system being hung-up.
Finding the process id: is to kill the process
Finding the biggest file: is to remove the file
To get the process... (0 Replies)
Discussion started by: Arunprasad
0 Replies
7. Shell Programming and Scripting
Hi gurus, greetings.
Objective: find in a path directories that are named Logs. In each found Logs dir search for files with .log extension and remove -atime +6. (Note for test/example, rm and -atime is not used).
Issue: If I execute the script without redirecting output to a file, on... (8 Replies)
Discussion started by: rsheikh
8 Replies
8. Solaris
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
9. UNIX for Dummies Questions & Answers
Hello,
I'm having a trouble with the find cmd.
I would like to find all the java versions on my systems.
I have solaris 9 & 10 RHEL and SUSIE.
java -version
doesn't give all the versions on the server.
So I am trying to use the find command to find them all
find / -name java
I would... (7 Replies)
Discussion started by: bitlord
7 Replies
10. UNIX for Dummies Questions & Answers
Hello,
I would like to create symbolic links for a series of files in my cwd (after confirming that the links don't already exist). The above files all have a similar prefix, but different extensions.
I created a shell script like shown below and I get an error message "No such file or... (4 Replies)
Discussion started by: Gussifinknottle
4 Replies
LEARN ABOUT DEBIAN
symlinks
SYMLINKS(1) General Commands Manual SYMLINKS(1)
NAME
symlinks - symbolic link maintenance utility
SYNOPSIS
symlinks [ -cdorstv ] dirlist
DESCRIPTION
symlinks is a useful utility for maintainers of FTP sites, CDROMs, and Linux software distributions. It scans directories for symbolic
links and lists them on stdout, often revealing flaws in the filesystem tree.
Each link is output with a classification of relative, absolute, dangling, messy, lengthy, or other_fs.
relative links are those expressed as paths relative to the directory in which the links reside, usually independent of the mount point of
the filesystem.
absolute links are those given as an absolute path from the root directory as indicated by a leading slash (/).
dangling links are those for which the target of the link does not currently exist. This commonly occurs for absolute links when a
filesystem is mounted at other than its customary mount point (such as when the normal root filesystem is mounted at /mnt after booting
from alternative media).
messy links are links which contain unnecessary slashes or dots in the path. These are cleaned up as well when -c is specified.
lengthy links are links which use "../" more than necessary in the path (eg. /bin/vi -> ../bin/vim) These are only detected when -s is
specified, and are only cleaned up when -c is also specified.
other_fs are those links whose target currently resides on a different filesystem from where symlinks was run (most useful with -r ).
OPTIONS
-c convert absolute links (within the same filesystem) to relative links. This permits links to maintain their validity regardless of
the mount point used for the filesystem -- a desirable setup in most cases. This option also causes any messy links to be cleaned
up, and, if -s was also specified, then lengthy links are also shortened. Links affected by -c are prefixed with changed in the
output.
-d causes dangling links to be removed.
-o fix links on other filesystems encountered while recursing. Normally, other filesystems encountered are not modified by symlinks.
-r recursively operate on subdirectories within the same filesystem.
-s causes lengthy links to be detected.
-t is used to test for what symlinks would do if -c were specified, but without really changing anything.
-v show all symbolic links. By default, relative links are not shown unless -v is specified.
BUGS
symlinks does not recurse or change links across filesystems.
AUTHOR
symlinks has been written by Mark Lord <mlord@pobox.com>, the original developer and maintainer of the IDE Performance Package for linux,
the Linux IDE Driver subsystem, hdparm, and a current day libata hacker.
SEE ALSO
symlink(2)
Version 1.4 October 2008 SYMLINKS(1)