It can be:
/tmp or /var is full
or wtmp is corrupt:
1.Boot the server in single user mode
2.Delete /var/adm/wtmp
3.touch /var/adm/wtmp
4.Boot the server using init 3
...yes we can!
This blog is pirated,dilluted,contaminated & most of all no originality
It can be:
/tmp or /var is full
or wtmp is corrupt:
1.Boot the server in single user mode
2.Delete /var/adm/wtmp
3.touch /var/adm/wtmp
4.Boot the server using init 3
...yes we can!
1) Find big files in a directory:
# find /dir_path -xdev -size +10000 -exec ll {} \; > /tmp/bigfiles
2) Find new files in a directory:
# find /dir_path -xdev -type f -mtime -2 -exec ll {} \; /tmp/newfiles
3) copy entire file system / directory to new location:
# find /source_dir_path -depth | cpio -pdlmuva /dest_path
..:-)
EXAMPLES (HP-UX man pages)More on man pages from HP-UX...kampai!
Search the two directories /example and /new/example for files
containing the string Where are you and print the names of the files:
find /example /new/example -exec grep -l 'Where are you' {} \;
Remove all files named a.out or *.o that have not been accessed for a
week:
find / \( -name a.out -o -name '*.o' \) -atime +7 -exec rm {} \;
Note that the spaces delimiting the escaped parentheses are
required.
Print the names of all files in /bin that are context-dependent; that
is, hidden directories:
find /bin -type H -print
Print the names of all files on this machine. Avoid walking nfs
directories while still printing the nfs mount points:
find / -fsonly hfs -print
Copy the entire file system to a disk mounted on /Disk, avoiding the
recursive copy problem. Both commands are equivalent (note the use of
-path instead of -name):
cd /; find . ! -path ./Disk -only -print | cpio -pdxm /Disk
cd /; find . -path ./Disk -prune -o -print | cpio -pdxm /Disk
Copy the root disk to a disk mounted on /Disk, skipping all mounted
file systems below /. Note that -xdev does not cause / to be skipped,
even though it is a mount point. This is because / is the starting
point and -xdev only affects entries below starting points.
The Chinese calendar is based on solar and lunar cycles and thus the new year falls on a different day of the Western solar calendar each year.
Year Ahead:
The OX year is a conservative year, one of traditions and values. This is not a year to be outrageous. A slow but steady year.
This OX year will bring stability and growth where patience and diligence pays off.
This is a year of Harvest - when we reap what we have sown. Take care of business this year, do not let things slide.