Running Commands on a Remote Linux Server over SSH
http://www.shellhacks.com/en/Running-Commands-on-a-Remote-Linux-Server-over-SSH
what shell I am in
echo $0
How to find which process is holding certain port #
netstat -ap | grep <port #>
list open files
lsof
How to find the size of files and directories on linux
du -sh name where name could be the name of a file or the name of a directory
zip and unzip
archive files or update files in an archive file: zip zipfile file1 file2 ... extract a file in an archive file: unzip zipfile fileToExtract eg. unzip wmserve...
how to look at the locales and charset in linux
locale -a locale -m echo $Lang temporarily set Lang: LANG='zh_CN.GBK'; export LANG/etc/sysconfig/i18n records the system default locale ....