Find files in solaris 10




















For example, to see which files within the current directory and its subdirectories end in s , type the following command. Selects files with a rightmost component that matches filename. Surround filename with single quotes if it includes filename substitution patterns. Selects files that are owned by userid. Within escaped parentheses, you can use the -o flag between options to indicate that find should select files that qualify under either category, rather than just those files that qualify under both categories.

In the previous example, the find command searches in the. You can invert the sense of an option by including an escaped exclamation point before the option. Run the sleep seconds command in background and then run pfiles command on the PID of the sleep command. As you can see from the output, 3 files are opened by the commands sleep. For just checking the number of open files of a process, the following command sequence can be used:.

Checking the Size of Directories. Scheduling System Tasks Tasks. Managing System Crash Information Tasks. Managing Core Files Tasks. Troubleshooting System and Software Problems Tasks. Part of the job of cleaning up heavily loaded file systems involves locating and removing files that have not been used recently.

You can locate unused files by using the ls or find commands. For more information, see the ls 1 and find 1 man pages. The sulog file was created or edited most recently. Finds files that have not been accessed within the number of days nnn that you specify. Finds files that have not been modified within the number of days nnn that you specify. This file contains the list of inactive files. The rm command removes these inactive files.

Community Bot 1 1 1 silver badge. HirofumiTamori HirofumiTamori 1 1 gold badge 10 10 silver badges 24 24 bronze badges. Andrew Henle Andrew Henle Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog.



0コメント

  • 1000 / 1000