- To build C/C++ codes including zlib.h, gcc flag "-lz" must be added, such as
gcc -o kseq -lz kseq.h kseq_test.c
- To check if some file/dir is affected by SELinux, use command "
ls -Z xxx
". - To change the security context in Linux, run command like "
chcon -R -h -t httpd_sys_content_t /var/www/html/wordpress
". - To start/stop/restart Apache, execute "
apachectl start/stop/restart
". - To admin MySQL, use "
mysqladmin -u <user> -p <cmd>
", such as "mysqladmin -uroot -p ping
". - To start MySQL as root, you can "
mysql -uroot -p
". - To detect memory leakage of C/C++, using tool Valgrind and execute “
valgrind --leak-check=yes myprog arg1 arg2
“.
- To include AMS Math package in your LaTeX file, include the following in the preamble of your document:
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsthm}