I am doing "ps -f" to see my process.
but I get lines that one of it represents the ps command itself.
I want to grep it out using -v flag, but than I get another process that belongs to the GREP itself :
I would like to exclude
# ps -f
UID PID PPID C STIME TTY TIME CMD... (2 Replies)
I often find myself grepping source code for a variable name and many times the name would be present in comment lines that I 'd prefer not to see. Do you guys know any tricks to filter out comments?
Example:
snippet of the source code
/***
* type comment 1
***/
void ... (7 Replies)
Hi,
I have a log file which has number of lines from that i have to grep a string like this
03:22:19,287
while greping this string i have to grep next lines to the maximum of finding the word (MORE...)
the stack is like this
*************
22/11/2011 03:22:19,287 232290646 ERROR... (2 Replies)
Hi,
Below is the command to grep for a string under
grep -r "redeem" /home/tom
Need to make it case insensitive and exclude logs & tmp folders under /home/tom directory in my Search.
Need this in Linux. (1 Reply)
Hi,
I must be overlooking something, but I don't understand why this doesn't work. I'm trying to grep on a date, excluding all the lines starting with a dash:
testfile:
#2013-12-31
2013-12-31code:
grep '^2013-12-31' testfileI'm expecting to see just the second line '2013-12-31' but I don't... (3 Replies)
I have been asked to see if we can restrict SFTP access to authorised users only. There will be business users who will log on with SSH, but they are locked into a menu. They will have write access to the production data to do their job, but we don't want them to have access to read/write the... (8 Replies)
Hello.
I consider myself a journeyman Unix user. I can handle most day to day tasks and have created some fairly complicated command queries, but this problem has defeated me so far. Any help would be greatly appreciated!
We keep an archive in the file system with a directory structure in... (5 Replies)
HI all,
I have data in a file that looks like this:
1 HOW _ NNP NNP _ 3 nn _ _
2 DRUGS _ NNP NNP _ 3 nn _ _
3 ACT _ NNP NNP _ 0 null _ _
4 : _ ... (3 Replies)
hi
I have a few folders and a few files , for example
Directory A B C D E
Files 1 2 3 4 5
I want B directory and "2" File that does not sync
But other directories and file sync
What is the solution ?
Is there a way to sync time is under one minute?
os centos 6.8
thanks... (5 Replies)
Hi,
I'm working on a shell script that reports service status on a database server.
There are some services that are in disabled status that the script should ignore and only check the services that are in Enabled status.
I output the service configuration to a file and use that information to... (5 Replies)
Discussion started by: senthil3d
5 Replies
LEARN ABOUT CENTOS
cachefslog
cachefslog(1M) System Administration Commands cachefslog(1M)NAME
cachefslog - Cache File System logging
SYNOPSIS
cachefslog [-f logfile | -h] cachefs_mount_point
DESCRIPTION
The cachefslog command displays where CacheFS statistics are being logged. Optionally, it sets where CacheFS statistics are being logged,
or it halts logging for a cache specified by cachefs_mount_point. The cachefs_mount_point argument is a mount point of a cache file system.
All file systems cached under the same cache as cachefs_mount_point will be logged.
OPTIONS
The following options are supported. You must be super-user to use the -f and -h options.
-f logfile Specify the log file to be used.
-h Halt logging.
OPERANDS
cachefs_mount_point A mount point of a cache file system.
USAGE
See largefile(5) for the description of the behavior of cachefslog when encountering files greater than or equal to 2 Gbyte ( 2**31 bytes).
EXAMPLES
Example 1: Checking the Logging of a directory.
The example below checks if the directory /home/sam is being logged:
example% cachefslog /home/sam
not logged: /home/sam
Example 2: Changing the logfile.
The example below changes the logfile of /home/sam to /var/tmp/samlog:
example# cachefslog -f /var/tmp/samlog /home/sam
/var/tmp/samlog: /home/sam
Example 3: Verifying the change of a logfile.
The example below verifies the change of the previous example:
example% cachefslog /home/sam
/var/tmp/samlog: /home/sam
Example 4: Halting the logging of a directory.
The example below halts logging for the /home/sam directory:
example# cachefslog -h /home/sam
not logged: /home/sam
EXIT STATUS
The following exit values are returned:
0 success
non-zero an error has occurred.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
SEE ALSO cachefsstat(1M), cachefswssize(1M), cfsadmin(1M), attributes(5), largefile(5)DIAGNOSTICS
Invalid path It is illegal to specify a path within a cache file system.
SunOS 5.10 7 Feb 1997 cachefslog(1M)