Difference between revisions of "Linux"
From ACL@NCU
(→tcsh) |
|||
Line 21: | Line 21: | ||
= python = | = python = | ||
= Firewall = | |||
*Blocking a port [https://help.ubuntu.com/10.04/serverguide/firewall.html] | |||
sudo ufw deny 80 | |||
</font size> | </font size> |
Revision as of 09:26, 19 January 2013
Useful tcsh and python commands
tcsh
- Find files
with defined stem pattern under multiple different folder
find */*/*anat+tlrc.*
find files with a suffix recursively under subdirectories
find . -name \*.mgz -print
delete or copy filenames from a "pattern" search
rm `find */*/*anat+tlrc.*`
python
Firewall
- Blocking a port [1]
sudo ufw deny 80