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.
下一个
这里写代码片
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章