Difference between revisions of "Linux"
From ACL@NCU
Line 51: | Line 51: | ||
= Install new packages = | = Install new packages = | ||
* pip | * pip [http://www.saltycrane.com/blog/2010/02/how-install-pip-ubuntu/] | ||
<pre> | <pre> | ||
sudo apt-get install python-pip python-dev build-essential | sudo apt-get install python-pip python-dev build-essential | ||
Line 57: | Line 57: | ||
sudo pip install --upgrade virtualenv | sudo pip install --upgrade virtualenv | ||
</pre> | </pre> | ||
</font size> | </font size> |
Revision as of 09:47, 29 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 [1]
stat *
Network Connection
- Blocking a port [2]
sudo ufw deny 80
other ufw usage [3]
- 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
Install new packages
- pip [4]
sudo apt-get install python-pip python-dev build-essential sudo pip install --upgrade pip sudo pip install --upgrade virtualenv