Wednesday, August 6, 2008

commands

who > filename command who will give results and (>) will redirect the standar output to "filename"
wc -l filename (wc) wordcount will count how many lines in the file
sort < filename will sort the contain of a filename and display them on screen
sort < filename1 > filename2 will sort the contain of a filename1 and store them in filename2

set -o vi to use the vi editor temporarily
set +o vi to turn off the vi editing mode
vi filename start using vi in a file
history -3 to display the last 3 command

echo "Hai" will display 'Hai'
nama1="yudhi" assigning 'yudhi' into variabel 'nama1'
nama1=${nama2} the contain of nama1 will be assigned to variabel nama2
echo $nama1 will display the contain of variabel nama1
expr 1+2 the output will be 3
expr $angka1 + 3 will added the contain of variabel 'angka1' to 3

UNIX SCRIPT ON CA DAILY ACTIVITY

ftp [servername] file transfer protocol , to GET [filename] or MGET [files] from other server to local server. End session with BYE
file [filename] to know the specification of current file
ln to make a link from a file in other directory so it can be executed from current directory (SEE MANUAL)
remsh to access other server (remote access) and do specific action in the target server (SEE MANUAL)
rcp to run 'cp' from remote server of a file in other server (SEE MANUAL)
cmviewcl -v to display the status of nodes and package (SEE MANUAL)
bdf to display the space status of current server
cmmodpkg -d/-e -n [node] -v [package] to disable/enable the status of current node (SEE MANUAL) Run the command in current server !
cmrunpkg to run/down the status of current package (SEE MANUAL)
cmhaltpkg to halt/stop the status of current package (SEE MANUAL)
haltapp to reset/stop all the running application on CA server. Run the command from /etc in ivMAC
startapp to run all the stopping application on CA server. Run the command from /etc in ivMAC
at -f [file] -t [yymmddhhmm] to schedule files to be executed on specific time
sed -e 's/[char1]/[char2]/g' [file1] stream editor : replace every 'char1' with 'char2' in 'file1'

No comments:

Search

My Blog List