Sunteți pe pagina 1din 2

https://www.offidocs.com/jor1k/demos/main.

html
https://www.ssh.com/ssh/command/

df -h (show partition/directory)

service <servicename> status (show status)

sudo su - (switch to super user)

ll
ls/ls -lh (show file/dir)

tar cvfz filename.tar.gz filename (zip file)

tar xvf filename.tar.gz (unzip file)

rm -r filename (remove file)

rm -rf foldername (remove dir)

cd (goto dir)

cd ~ (root dir)

cd .. (moveback dir)

mkdir foldername (create dir)

vi filename :wq(close) (create file/edit)

*.file_type (select all .file)

cp file/dir (copy file/dir)

mv oldfile new file (rename if same location)

mv -t dir file1 file2 (move file)

head /head -$ (display 10 line or $ of file)

find . -name filename\* (find)

nano filename (file editor)

ps vivek (show list of processes)


top
htop command : Interactive process viewer.
pgrep command : Look up or signal processes based on name and other attributes.
pstree command : Display a tree of processes.
-ps -ejH
-ps axjf

_______________________________________________
HOW TO RESTART SAMETIME ADVANCED SERVER

sudo su -
check if services are running
ps -ef | grep java
service sametime-adv status
service sametime-nodeagent status

stop services
service sametime-adv stop
service sametime-nodeagent stop

zip files to backup files


cd /opt/IBM/WebSphere/AppServer/profiles/fr
ll
tar cvfz STADV_14nx_logs_$NOW.tar.gz logs/ javacore.* Snap*

remove/delete logs java or snap


rm javacore.*
rm Snap*
ll
cd logs
ll
rm -r *
ll

start services
ps -ef | grep java
service sametime-nodeagent start
service sametime-adv start

S-ar putea să vă placă și