General Commands:
cp <src> <dest>
cp -p <src> <dest> -> to change without need to change datestamp
scp <src> <dest>
scp <src> username@servername:/path <desk>
ls -> dir ( ls -ltr orderof time and owner)
rm -> delete file
rm -r -> recursive remove
cp -> copy
mv -> move
JVM Server commands:
<Profile>/bin$ stopserver
startserver
OS Commands:
lsps -s ( to check swap space)
uname -a ( to check version)
disk usage in kb or mb
du -sk
du -sm
prtconf - for ram and other details in linux
topas for Aix list of process taking max % of processor
top for solaris
chmod -> to change access prvilege for user/ primary group / secondary group
chown -> change owner
chown primarygroup:secgroup filename
chown -R pg:sg foldername
Vi Editor:
Vi <Filename>
i-> insert mode
<escape> : wq (save & exist)
:q (exist without save)
:q! (force exist without save)
:wq! (force save and exist)
: \ <text> / search a text 'N' to go next
View <filename>
cat <filename>
Network Commands:
netstat -an -> for all ports and process information
Process Commands:
ps -ef | grep java -> to find whether a java proces is running or not and it will return pid
lsof -> list of open files
kill -9 <pid> - force kill a process
kill -3 <pid> - thread dump
Zip tools:
gzip abac.gz
tar abc.gz
FTP Commands:
$ftp <SiteName>
username:
Password:
$ navigate to corresponding drive
cd /doviswa/etc
Get/put Plugin file:
put plugin-cfg.xml
get plugin-cfg.xml
No comments:
Post a Comment