Difference between revisions of "Linux"
From ACL@NCU
(→tcsh) |
|||
Line 19: | Line 19: | ||
</pre> | </pre> | ||
</font size> | </font size> | ||
= file system = | |||
*Determine file creating and modification times | |||
http://manpages.ubuntu.com/manpages/hardy/man2/stat.2.html | |||
<pre> | |||
stat * | |||
</pre> | |||
= Network Connection = | = Network Connection = |
Revision as of 06:11, 26 April 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.*`
file system
- Determine file creating and modification times
http://manpages.ubuntu.com/manpages/hardy/man2/stat.2.html
stat *
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
- restart network GUI (allow the top-left icon of network to show up)
sudo service network-manager restart