Actions

Difference between revisions of "Linux"

From ACL@NCU

Line 25: Line 25:
sudo ufw deny 80
sudo ufw deny 80
</pre>
</pre>
other ufw usage [http://wiki.ubuntu.org.cn/index.php?title=UFW%E9%98%B2%E7%81%AB%E5%A2%99%E7%AE%80%E5%8D%95%E8%AE%BE%E7%BD%AE&variant=zh-hant]


*Scanning available ports
*Scanning available ports

Revision as of 06:24, 20 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.*`

Network Connection

  • Blocking a port [1]
sudo ufw deny 80

other ufw usage [2]

  • Scanning available ports
nmap -PS <IP address>
  • Scanning all available IPs in subnet
nmap -sP 192.168.1.0/24