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:20] serbizadmin [Differences] |
linux-commandline-tips [2019/03/13 00:14] serbizadmin [Find Stuff] |
||
---|---|---|---|
Line 11: | Line 11: | ||
find / -type s | find / -type s | ||
</ | </ | ||
+ | * find the latest file in a folder/ | ||
+ | find . -type f -printf '%T@ %P\n' | sort -n | awk ' | ||
====== Differences====== | ====== Differences====== | ||
* between files, showing side by side | * between files, showing side by side | ||
Line 20: | Line 22: | ||
diff <(ls -a /dir1/) <(ls -a /dir 2/) | diff <(ls -a /dir1/) <(ls -a /dir 2/) | ||
</ | </ | ||
- | or com | + | or compare |
< | < | ||
comm <(ls -a /dir/) <(ls -a /dir2/) | comm <(ls -a /dir/) <(ls -a /dir2/) | ||
Line 33: | Line 35: | ||
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();" | ||
+ | </ | ||
+ | or | ||
+ | < | ||
+ | php -i | grep in | ||
+ | </ |