Directories converted into files with the same size
Hi Gurus,
I know this sounds weird, We have encountered many incidents where some directories on several Solaris 10 boxes, will be converted to files with the same size. for example the file below :
This was a directory created few months back, now We see it as a file created on Apr 15 with the same size of that directory!!
We have the below cron in place, which zip and move files into that direcotry :
Also, When I check the file type I see :
Im suspecting the mv command in the above cronjob, to be replacing the file sometimes with the directory, instead of moving it there.
:D mount -t vfat /dev/hda1 /mnt
my dillemma is simple i have psion 5 mx wich is an epoc type machine not only does it only work on windows as far as I know but I have to convert the files (the usual stuff!) sometimes a humen error happens and the files that I want to transfer to the linux drive... (7 Replies)
Hi All
I want to plan my backups, but 1st i would like to know what is the size of each directory. Is there any command which can show me the size of directories?
Regards (2 Replies)
$ls -lrt mydir
total 12
drwxrwxrwx 2 nobody nobody 512 Aug 8 11:51 tmp
drwxrwxrwx 2 nobody nobody 4608 Jan 19 12:20 web.cache
$ ls -lrt mydir/web.cache/
total 0
$ ls -lrt mydir/tmp/
total 0
Can anyone explain me the above results? I know the o/p of ls, but this... (3 Replies)
Hi,
I have one file stat.
Stat file contents are as follows: for example.
H50768020040913,00260100,507680,13,0000000643,0000000643,00000,0000
H50769520040808,00260100,507695,13,0000000000,0000000000,00000,0000 H50770620040611,00260100,507706,13,0000000000,0000000000,00000,0000
Now i... (1 Reply)
hai,
i am new to unix scripting & learning unix scripting and doing some assignments....
i have an assignment as follows,
i want to check the size of the text file and .ext files in all directories,
if any one of them is greater than 100mb , i have to display those files..
... (2 Replies)
Hi ,
I am very new to unix as well as shell scripting. I have to write a script for the following requirement.
In a particular mount, have to list all the directories and sub directories along with size of the directory and sub directory in ascending order.
Please help me in this regard and many... (4 Replies)
Alright so I've tried a couple different things that at first glance, looked like they worked.
find . -maxdepth 5 -type d -daystart -mtime 1 | xargs du -h Which seems to ignore the previous commands such as depth and modified time.
find .. -maxdepth 2 -type d -daystart -ctime 1 | xargs... (8 Replies)
Hi guys,
i'm searching for a command, which gives me back all the directories which are greater than a particular size?
thx for helping so far :b:
guti (2 Replies)
Can anyone come up with a unix command that lists
all the files, directories and sub-directories in the current directory
except a folder called log.?
Thank you in advance. (7 Replies)
Discussion started by: Manjunath B
7 Replies
LEARN ABOUT OPENSOLARIS
ypmap2src
ypmap2src(1M) System Administration Commands ypmap2src(1M)NAME
ypmap2src - convert NIS maps to NIS source files
SYNOPSIS
/usr/lib/netsvc/yp/ypmap2src [-t]
[ [-c custom-map-name]]... [-d domain] -o output-directory
[ [ source-file]]...
DESCRIPTION
Use the ypmap2src utility to convert standard NIS maps to approximations of the equivalent NIS source files. This utility functions like
the reverse of ypmake(1M).
The primary use for ypmap2src is to convert from a NIS server that uses the NIS to LDAP(N2L) transition mechanism, which does not use NIS
source files, to traditional NIS, where source files are required. The ypmap2src utility is also used by NIS administrators who wish to
discover the contents of NIS maps for which the sources are not available.
Generally, this operation is not necessary. More often, administrators will switch from traditional NIS to N2L in anticipation of the even-
tual transition to LDAP naming. When this switch is made, authoritative information is moved into the LDAP DIT, and the NIS sources have no
further role. N2L supports NIS clients until such time as they can be converted to LDAP, and the NIS service suspended.
The ypmap2src utility does not guarantee that the files that are generated are identical to the original NIS source files. Some information
might have been thrown away by ypmake and cannot be recovered. N2L also might have updated the maps to reflect changes made by LDAP
clients. It is essential that the sources generated are checked to confirm no problems have occurred.
Per entry comment fields, from existing source files, are not merged into source files generated by ypmap2src. If a user wishes N2L to
maintain comment information, then the NISLDAPmapping configuration file should be modified so that the comment fields are mapped into
LDAP. This will ensure that the comments are visible to native LDAP clients and present in the N2L map files.
When ypmap2src is run, it will take up-to-date comments from the map file and insert them into the NIS source file generated.
Handling Custom Maps
ypmap2src only knows about the standard NIS maps and standard source to map conversion. If an advanced user has changed these, that is, the
user has modified the NIS makefile, the equivalent changes must also be made to the ypmap2src script.
OPTIONS
ypmap2src supports the following options:
-c Specifies that custom-map-name should be converted to a source file by running makedbm -u on it. This is a short
cut so that simple custom maps can be handled without editing ypmap2src.
-d domain-name Specifies the domain to convert. The domain-name can be a fully qualified file path, such as /var/yp/a.b.c, or just a
domain name, a.b.c. In the latter case, ypmaptosrc looks in /var/yp for the domain directory.
-o dest Specifies the destination directory for the converted files. A directory other than /etc should be specified. The maps
generated are copied to the correct location, /etc, /etc/security or other source directory, as appropriate.
-t Specifies that traditional NIS maps, without N2L's LDAP_ prefix, should be converted. By default, maps with the LDAP_
prefix are converted.
OPERANDS
ypmap2src supports the following operands:
source-file Lists the standard source files to convert. If this option is not given, then all the standard source files, plus any custom
files pecified by the -c option, are converted.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWypu |
+-----------------------------+-----------------------------+
|Interface Stability |Obsolete |
+-----------------------------+-----------------------------+
SEE ALSO ypmake(1M), ypserv(1M), NISLDAPmapping(4), attributes(5)SunOS 5.11 10 Apr 2003 ypmap2src(1M)