It looks to me as though your find command won't work. The -name primary only handles basenames. There will never be a forward slash in a basename so ! -name '/export/zones/*' will always evaluate true.
The following should do it (untested):
Regards,
Alister
---------- Post updated at 02:12 PM ---------- Previous update was at 02:07 PM ----------
Quote:
Originally Posted by bitlord
Thanks for the info.
I tried the command you gave me and it worked great. Is there a way though to exclude a directory, like for example /export/zones?
To exclude N directories (untested):
Regards,
Alister
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)
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)
In shell we can find the status of last executed command by $?
In perl what is the command to find the status of last executed command...
Can any one please say???????????????
Thanks,
Prabhu (1 Reply)
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)
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)
/usr/bin/find $SEARCH_DIR -daystart \( \( -name 'KI*' -a -name '*.csv' \) -o -name '*_xyz_*' \) -mtime $DAYS_AGO -printf %f -printf "\n" | sort -r > $FILES
The above command gives different results when run on a cron job. When run manually the result is accurate. (2 Replies)
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)
Hi. Can somebody tell me if there's a way of creating a symbolic link from a directory on one filesystem to that on another that will allow a find command that doesn't use the -L param to locate a particular file under that new 'linked' dir. With a normal sym link the find command on that... (6 Replies)
Discussion started by: user052009
6 Replies
LEARN ABOUT CENTOS
trace-cmd-list
TRACE-CMD-LIST(1)TRACE-CMD-LIST(1)NAME
trace-cmd-list - list available plugins, events or options for Ftrace.
SYNOPSIS
trace-cmd list [OPTIONS]
DESCRIPTION
The trace-cmd(1) list displays the available plugins, events or Ftrace options that are configured on the current machine. If no option is
given, then it lists all plugins, events and Ftrace options to standard output.
OPTIONS -e
This option will list the available events that are enabled on the local system.
-t
This option will list the available tracers that are enabled on the local system.
-p
Same as -t and only for legacy purposes.
-o
This option will list the available Ftrace options that are configured on the local system.
-f [regex]
This option will list the available filter functions. These are the list of functions on the system that you can trace, or filter on.
It takes an optional argument that uses regcomp(3) expressions to seach.
trace-cmd list -f '^sched.*'
-P
List the plugin files that get loaded on trace-cmd report.
-O
List plugin options that can be used by trace-cmd report -O option.
SEE ALSO trace-cmd(1), trace-cmd-record(1), trace-cmd-report(1), trace-cmd-start(1), trace-cmd-stop(1), trace-cmd-extract(1), trace-cmd-reset(1),
trace-cmd-split(1), trace-cmd-listen(1)AUTHOR
Written by Steven Rostedt, <rostedt@goodmis.org[1]>
RESOURCES
git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/trace-cmd.git
COPYING
Copyright (C) 2010 Red Hat, Inc. Free use of this software is granted under the terms of the GNU Public License (GPL).
NOTES
1. rostedt@goodmis.org
mailto:rostedt@goodmis.org
06/11/2014 TRACE-CMD-LIST(1)