This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
linux-commandline-tips [2018/12/11 05:00] serbizadmin |
linux-commandline-tips [2019/02/19 02:26] serbizadmin |
||
---|---|---|---|
Line 14: | Line 14: | ||
* between files, showing side by side | * between files, showing side by side | ||
< | < | ||
- | diff -y config.inc.php config.old.php | + | diff -y file1 file2 | less |
+ | </ | ||
+ | * differences of files between directories | ||
+ | < | ||
+ | diff <(ls -a /dir1/) <(ls -a /dir 2/) | ||
+ | </ | ||
+ | or compare | ||
+ | < | ||
+ | comm <(ls -a /dir/) <(ls -a /dir2/) | ||
</ | </ | ||
\\ | \\ | ||
Line 25: | Line 33: | ||
cat /dev/null > modsec_audit.log</ | cat /dev/null > modsec_audit.log</ | ||
See also "log rotate" | See also "log rotate" | ||
+ | \\ | ||
+ | ====== PHP====== | ||
+ | * View php config | ||
+ | php -r "print phpinfo();" |