Search for notes by fellow students, in your own course and all over the country.
Browse our notes for titles which look like what you need, you can preview any of the notes via a sample of the contents. After you're happy these are the notes you're after simply pop them into your shopping cart.
Document Preview
Extracts from the notes are below, to see the PDF you'll receive please use the links above
nCode IT services
Unix Commands for WebLogic Admins
Weblogic Admin 10g/11g
Training Program
-
www
...
in
nCode IT services
Unix Commands For Weblogic Admins
...
( double dot)
current directory
parent directory
cd
pwd
ls –ltr
KNOW THE ENV
hostname
logname
change the direcectory to required location
uname –a
who
who am i
FILES/DIRECTROIES
cat
touch
mkdir
cp
mv
ln
rm
chmod
less
head
tail
PRACTICAL THINGS
file redirection
' ( single quotes)
" " ( double quotes)
` ` ( back quotes)
| ( pipe )
sleep n
& ( at the end of command)
present working directory
list ( long (l) , time sorted (t), reverse timesort )
name of the server that you are working on
username that you have used to login to the system
server inforamtion ( OS, kernal version, Hardware
type etc
...
ncodeit
...
ncodeit
...
(dot) current directory
...
/
cd /tmp
cd /home/durgasoft/unix
cd
pwd
present working directory
ls –ltr list ( long (l) , time sorted (t), reverse timesort )
hostname
name of the server that you are working on
logname
username that you have used to login to the system
uname –a
server inforamtion ( OS, kernal version, Hardware type etc
...
ncodeit
...
ncodeit
...
ncodeit
...
168
...
10
scp
secure copy ( copy files from BOX1 to BOX2)
scp file1
nCode IT services (www
...
in) – 80199 65 1 45
Page 7
nCode IT services
Unix Commands For Weblogic Admins
copy one file to box2
scp file1 durgasoft@192
...
128
...
168
...
9:”/home/durgasoft”
copy a file from BOX2 to BOX1
scp durgasoft@192
...
128
...
txt” /home/box1
ftp
file transfer from BOX1 to BOX2 or vicecersa
ftp IP-OF-BOX2
there are two modes of transfer BINARY & ASCII
...
profile
nCode IT services (www
...
in) – 80199 65 1 45
Page 8
nCode IT services
Unix Commands For Weblogic Admins
su
switch user ( change from user1 to user2)
su
su
su -
sudo
restricted access to list of commands
less
view the file in a browsable window
less f1
head
display first 10 lines of a file
tail
head f1
display LAST 10 lines of a file
tail f1
tail –f f1
tar
unix archive command
CREATE A tar file
tar -cvf
tar -cvf mytarfile
...
tar d1
EXTRACT A tar file
tar -xvf mytarfile
...
tar
jar
java based archive command( used to make war/ear/jar)
same as tar commands
...
ncodeit
...
gz
zip/unzip
unix+windows based compress/uncompress utility
zip
zip f1
...
zip d1
export
export command is used to pass a variable from a PARENT SHELL to CHILD
SHELL
a=5 ( variable declaration)
echo $a ( to retrieve the variable)
export a
export JAVA_HOME
alias
used for creating shortcuts for commands
...
An alias can be created for executing ls –ltr command
alias ll=‟ls –ltr”
vi
unix editor
nCode IT services (www
...
in) – 80199 65 1 45
Page 10
nCode IT services
Unix Commands For Weblogic Admins
VI Editor :
Basics of the
vi editor
Opening a file
vi filename
There are 3 modes:
Insert Mode
Command Mode
Ex mode
The default mode is Command Mode
...
Everything
typed will be treated as a command
...
Your
arrow keys should also work if
if your keyboard mappings are anywhere near
sane
...
ncodeit
...
i/I
Insert before current cursor position/Or
beginning of line
a/A
Insert (append) after current cursor
position/Or End of Line
r
Replace 1 character
Insert Mode
Command Mode
Ex Mode
Deletion of text
x
Delete single character
dd
Delete current line and put in buffer
ndd
Delete n lines (n is a number) and put them in
buffer
J
Attaches the next line to the end of the
current line (deletes carriage return)
...
ncodeit
...
If g is
included,only the first instance per matching
substituted
...
If
of
not
line is
^ matches start of line
$ matches end of line
These and other "special characters" (like the
forward slash) can be "escaped" with \
i
...
ncodeit
...
Only the first instance
on each line is
substituted
...
They are called "ex"
commands
vi
...
:w
Write the current file
...
file
Write the file to the name
'new
...
:w! existing
...
:wq
Write the file and quit
...
:q!
Quit with no changes
...
Open the file 'filename' for
:set number
:set nonumber
Turns on line numbering
Turns off line numbering
Note: There is a beautiful video tutorial for vi editor available in the lab
...
nCode IT services (www
...
in) – 80199 65 1 45
Page 14