[20171120] About find soft connection question. txt, 20171120.txt

Source: Internet
Author: User

[20171120] About find soft connection question. txt, 20171120.txt

[20171120] find soft connection question .txt

-- // In order to test the oracle parameter filesystemio_options, the database was moved once last week. However, when I used find to query the soft link directory
-- // Make a record for some problems

1. Create a soft link:
$ Cp-a/mnt/ramdisk/book/home/oracle/backup/
$ Cd/mnt/ramdisk
$ Mv book book_00001117
$ Ln-s/home/oracle/backup/book

-- // In this way, a soft link is established to access the file in/mnt/ramdisk/book to actually access the file in the/home/oracle/backup/book directory.

$ Ls-l
Total 0
Lrwxrwxrwx 1 oracle oinstall 24 15:07:33 book->/home/oracle/backup/book
Drwxr-xr-x 2 oracle oinstall 360 11:42:51 book_20171117


2. Use find.

$ Find/mnt/ramdisk/book-name "*. *"-print
-- // No output.

$ Find/mnt/ramdisk/book_00001117-name "*. *"-print | head-2
/Mnt/ramdisk/book_20171117/sysaux01.dbf
/Mnt/ramdisk/book_20171117/tea01.dbf
-- // Directly query the/mnt/ramdisk/book_20171117 directory and the output is normal.

-- // The difference is only one directory, and one is soft link. Information is displayed for the same query I made earlier. Why not? I only use soft links to modify the book directory.
-- // The modification is as follows, and the result is normal. Add a slash (/) to the end of the book, and the execution is normal.

$ Find/mnt/ramdisk/book/-name "*. *"-print | head-2
/Mnt/ramdisk/book/redo03.log
/Mnt/ramdisk/book/system01.dbf

-- // This is an episode that wastes a little time and makes a record. Pay attention to the soft link access problem of the find command in the next work.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.