上一页 1 2 3 4 5 6 7 8 ··· 25 下一页

2014年1月14日

fdisk mkfs blkid fstab

摘要: fdisk -l 查看系统分区信息mkfs 制作文件系统mke2fs 制作ext型文件系统mkntfs 制作ntfs型文件系统e2label 更改ext型文件系统卷标ntfslabel 更改ntfs型文件系统卷标参考:http://www.cnblogs.com/dkblog/archive/201... 阅读全文

posted @ 2014-01-14 15:56 阿加 阅读(604) 评论(0) 推荐(0) 编辑

join

摘要: the data from these two files using employee-id as shown below.$ cat employee.txt100200300400Jason SmithJohn DoeSanjay GuptaAshok Sharma$ cat bonus.tx... 阅读全文

posted @ 2014-01-14 15:51 阿加 阅读(123) 评论(0) 推荐(0) 编辑

PS1-4

摘要: export PS2="continue->"cat ps4.shexport PS4='$0.$LINENO+ 'set -xecho "PS4 demo script"ls -l /etc/ | wc -ldu -sh ~ramesh@dev-db ~> ./ps4.sh../ps4.sh.3+... 阅读全文

posted @ 2014-01-14 15:50 阿加 阅读(150) 评论(0) 推荐(0) 编辑

tftp + bras

摘要: Ubuntu 12.04 网卡设置开发板ip时192.168.0.2,设置的服务ip是192.168.0.1因此在主机上/etc/network/interfaces添加如下内容auto eth1iface eth1 inet staticaddress 192.168.0.1netmask 255... 阅读全文

posted @ 2014-01-14 15:41 阿加 阅读(146) 评论(0) 推荐(0) 编辑

awk调用shell

摘要: 为什么会有这份记录:在帮同学传文件至服务器时,使用了scp,因此链接属性没有建立好,所以向通过awk完成。(更好的是通过tar传递)附:awk中调用shell的方法。参考:http://hi.baidu.com/leejun_2005/item/7e75be108091f2fd9d778a51一。使... 阅读全文

posted @ 2014-01-14 15:07 阿加 阅读(1454) 评论(0) 推荐(0) 编辑

curl

摘要: 检查gmail未读邮件;curl -u username –silent “https://mail.google.com/mail/feed/atom” | perl -ne ‘print “\t” if //; print “$2\n” if /(.*)/;’curl -u username@g... 阅读全文

posted @ 2014-01-14 15:00 阿加 阅读(264) 评论(0) 推荐(0) 编辑

ssh

摘要: ssh设置ssh-keygen -t rsa将生成的.ssh/下的公钥id_rsa.pub复制到所在服务器的用户的家目录下的.ssh/下的authorized_keysssh user@ip ‘bash’ /dev/null 2>&1 << eeooffcd /hometouch abcdefg.... 阅读全文

posted @ 2014-01-14 14:55 阿加 阅读(216) 评论(0) 推荐(0) 编辑

查看cp进度,使用watch

摘要: watch -n 1 -d du -sh dir 每隔1s查看当前目录所占空间大小 阅读全文

posted @ 2014-01-14 14:47 阿加 阅读(892) 评论(0) 推荐(0) 编辑

tftp

摘要: Ubuntu 12.04 tftp 设置1、sudo apt-get install tftp-hpa tftpd-hpa2、修改/etc/default/tftpd-hpaTFTP_USERNAME="tftp" #指定tftp服务的共享目录TFTP_DIRECTORY="/tftpboot"TF... 阅读全文

posted @ 2014-01-14 14:32 阿加 阅读(646) 评论(0) 推荐(0) 编辑

2014年1月10日

scp 链接文件的问题 + tar

摘要: 将本地的文件上传到服务器上,希望保持相对链接关系。(链接文件和被链接文件都在同一的目录下)使用scp进行传输时,链接关系不会保存,所以需要解决下。(当然可以使用rsync或tar解决,但是rsync命令不熟;)我的笨方法:1、通过scp将目录文件传输到服务器上;2、在本地所在目录上执行:find .... 阅读全文

posted @ 2014-01-10 17:56 阿加 阅读(1028) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 8 ··· 25 下一页

导航