Linux實用命令

linux 刪除所有文件夾下指定文件名的文件

# find / -name this.html~ |xargs rm -rf

修改Ubuntu MAC地址
臨時:(只修改一次,重啓後設置消失)
1)sudo ifconfig eth0 down
    # 先關閉網卡(eth0爲要修改MAC地址的網卡的標識符)是零不是O
2)sudo ifconfig eth0 hw ether AA:BB:CC:DD:EE:FF
    # 將eth0的MAC地址改成AA:BB:CC:DD:EE:FF
    # ubuntu下MAC地址都是兩位兩位以:隔開的只是一種格式而已,但是所有的地址符號都要打上
3)sudo ifconfig eth0 up
    # 修改完成,重新啓用網卡

永久
sudo gedit /etc/resolv.conf
name server **************
name server ************** 這裏填寫首選DNS,備用DNS
sudo gedit /etc/network/interfaces
輸入以下內容:
auto eth0
iface eth0 inet static
pre -up ifconfig eth0 hw ether **:**:**:**:'''''''''''''
address ***************   IP地址
netmask ***************   子網掩碼255:255:255:0
getway ****************   網關
exit 0 karlyan
打下列命令
sudo /etc/init.d/networking restart 重啓網絡
Comet Interactive Job submit

https://portal.xsede.org/sdsc-trestles

Trestles provides the parallel debugger DDT. To use the program, log into trestles with X11 tunneling enabled:

ssh -X [email protected]
Compile your code with the option -g to enable debugging. After, start a interactive session with the number of processors desired (max of 64):

qsub -I -X -l nodes=2:ppn=16,walltime=1:00:00 -q shared
Once on the compute node, load the ddt module via:

module load ddt
If you use mvapich2, be sure to start the message passing daemons (if using OpenMPI you can skip this step):

mpdboot -n 2 -f $PBS_NODEFILE
Start ddt by running:

ddt ./<program.exe>
In the GUI, select the number of processors to run with and start the program. More specifics on using DDT can be found in the DDT user guide at http://www.allinea.com/downloads/userguide.pdf.
下一個
這裏寫代碼片
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章