In *nix shells it sometimes useful to create aliases that receive parameters.
This can be done using functions:
Now you can type just something like: kssh 192.168.1.1 or pssh 192.168.1.2
Showing posts with label unix. Show all posts
Showing posts with label unix. Show all posts
Monday, November 23, 2015
Wednesday, May 14, 2014
Monitor Java on Unix/Linux/Solaris
Just a short memo of useful commands that can help to troubleshoot Java on *nix:
(Btw, most of them will also work on Windows, but who runs Java on Windows? Just kidding...)
jps -m - show running Java processes and their pids.
jstack <pid> - print thread dump
jmap -dump:format=b,file=<path to file> <pid> - save heap dump to file
(Btw, most of them will also work on Windows, but who runs Java on Windows? Just kidding...)
jps -m - show running Java processes and their pids.
jstack <pid> - print thread dump
jmap -dump:format=b,file=<path to file> <pid> - save heap dump to file
Tuesday, September 27, 2011
Mount external path using cifs
How to mount Windows server from Unix using Cifs:
Don't forget to replace host, port, path, mnt, username and password.
mount -t cifs //host:port/path /mnt -o user=username,pass=password
Don't forget to replace host, port, path, mnt, username and password.
Subscribe to:
Posts (Atom)