03-27-2009
Recently I used the rm -Rf command and omitted a xter which accidentally removed my whole usr under /.
Now can I bring back the server?
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
Am trying for a script which should delete more than 15 days older files in my current directory.Am using the below piece of code:
"find /tmp -type f -name "pattern" -mtime +15 -exec /usr/bin/ls -altr {} \;"
"find /tmp -type f -name "pattern" -mtime +15 -exec /usr/bin/rm -f {} \;"
... (9 Replies)
Discussion started by: puppala
9 Replies
2. Programming
I want to copy a directory recursively ( it again has directories) and the directory is on windows and is nfsmounted in vxWorks, i am using unix to develop the code for this, can any one suggest me how to copy the directories recursively. (7 Replies)
Discussion started by: deepthi.s
7 Replies
3. UNIX for Dummies Questions & Answers
i'm playing around with "ls" and "find" and am trying to get a print out of directories, with full path, (recursive) and their ownership.... without files or package contents (Mac .pkg or .mpkg files). I'd like it simply displayed without much/any extraneous info.
everything i've tried, and... (5 Replies)
Discussion started by: alternapop
5 Replies
4. UNIX for Dummies Questions & Answers
Hi all,
I need to count the number of lines in all the files under a directory (several levels deep). I am feeling extremely dumb, but I don't know how to do that. Needless to say, I am not a shell script wiz... Any advice?
thanks in advance! (13 Replies)
Discussion started by: bimba17
13 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I want to remove a directory recursively except the inside directories calles .SYNC (designsync dirs) I am looking for something like:
\rm -rf < find . * | grep -v .SYNC
The find works ok but I do not know how to redirect it.
Please help.
Regards,
Ziv (1 Reply)
Discussion started by: zivsegal
1 Replies
6. UNIX for Advanced & Expert Users
I was working on a shell script and found that the find command took too long, especially when I had to execute it multiple times. After some thought and research I came up with two functions.
fileScan()
filescan will cd into a directory and perform any operations you would like from within... (8 Replies)
Discussion started by: newreverie
8 Replies
7. UNIX for Dummies Questions & Answers
I want to copy a file from the top directory into all the sub-folders and all of the sub-folders of those sub-folder etc. Does anyone have any idea how to do this?
Thanks in advance of any help you can give. (3 Replies)
Discussion started by: EinsteinMcfly
3 Replies
8. UNIX for Beginners Questions & Answers
Hi folks,
I have several directories with multiple files of all kinds in them. For example
directory ###### contains:
######B1.TIF
######B2.TIF
...........
######B8.TIF
######.tar
######.txt
######.jpg
######r
######r.hdr
######rSVD
######rSVD.hdr
######t
######t.hdr
How do I... (8 Replies)
Discussion started by: spirospap
8 Replies
9. UNIX for Beginners Questions & Answers
Attempting to recursive chattr directories while excluding a directory, however the command which works with chown does not seem to with chattr
find /mysite/public_html ! -wholename '/mysite/public_html/images' -type d -exec chattr -R +i {} \;
find /mysite/public_html -not -path "*/images*"... (2 Replies)
Discussion started by: carnagel
2 Replies
LEARN ABOUT OPENSOLARIS
cachefsd
cachefsd(1M) System Administration Commands cachefsd(1M)
NAME
cachefsd - CacheFS daemon
SYNOPSIS
/usr/lib/fs/cachefs/cachefsd
DESCRIPTION
The cachefsd server implements features of the cache filesystem (CacheFS). It is invoked at boot time and run if the / (root) and /usr
filesystems are being cached. If /usr is being cached, cachefsd is invoked by inetd(1M) from inetd.conf(4). At run time, cachefsd is
invoked by the inetd mechanism in response to an RPC request from a user command such as mount_cachefs(1M).
The cachefsd server supports the "disconnected mode" of CacheFS. In this mode, a user can continue to read and, depending on the option
selected, write to files in a cached filesystem when the NFS server for the cached files is not available.
The cachefsd daemon performs the following functions in support of the CacheFS:
o Implements the connection policy. The daemon determines whether the NFS server backing the cache is connected or disconnected
from the cache, or is in transition from the connected or disconnected states.
o Implements "log rolling," wherein the daemon monitors a disconnected NFS server for reconnection. After such a server returns to
a connected state, cachefsd rolls any local changes to cached files (kept in a log) back to the server.
o Manages "packing," wherein cachefsd makes a best effort to ensure that files in a user-specified list are available in the cache
in disconnected mode.
o Supports user interfaces by supplying statistics, reporting conflicts between the cache and the back filesystem, and supporting
a list of files for packing.
The running of cachefsd is required for the disconnected mode of CacheFS.
OPTIONS
The following options are supported:
-r Used for invoking cachefsd for the / filesystem.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
SEE ALSO
cachefspack(1M), cfsadmin(1M), mount_cachefs(1M), inetd.conf(4), attributes(5)
SunOS 5.11 2 October 2000 cachefsd(1M)