Run job in batch now:
at -s now < thejob.sh
Show current process active
ps -efa
Show process information
psrinfo -v
Show version of unix
uname -a
Display System Configuration
sysdef
or
prtconf
Print VTOC
prtvtoc /dev/dsk/c0t0d0s0
Query Disk space
df -k disk space in kilobytes
du -sk disk space summary in kilobytes
How To Configure Sun 450 Hot swap disk drives
1. drvconfig
2. disks
Remove all files and sub-directories
rm -r *
Move all files from one directory to another using tar pipe
from directory /var
mkdir /var1
cd /var
tar cf - . | (cd /var1 && tar xBf -)
Directory compare (don't show files that are the same)
dircmp -s /var /var1
Give User execute permission on a file
chomod u+x filename gives execute permission to the owner.
Find command to find in current directory and subdirectory
find . -name "dbmslogmnr.sql" -print
Find Command for certain size files
find . -size +10000c
This example say find all the file > 10000 bytes.
Find command to find a word in the directory and subdirectory
find . -exec grep -ls pkzip {} \;
find . | xargs grep ""
No comments:
Post a Comment