2014年1月14日

man 转 pdf _____ jpg 转 pdf

摘要: man -t bash | ps2pdf - bash.pdf将jpeg转成pdf convert *.jpeg images.pdf ... 阅读全文

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

here文档

摘要: u-boot下的mkconfig中使用了cat > config.hhere文档的作用是:把一系列需要从键盘输入的内容,模拟人工输入,一行一行的交给命令处理。例如:cat >> config.h #include #include #include EOF注意两者的区别cat >> config.h... 阅读全文

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

lsof fuser

摘要: 使用fuser 或 lsof在一个挂载点中查找已打开的文件 fuser -mv /usr查看有哪些进程在运行/usr中资源sync fuser -km /media/usbdisk U盘无法卸载 阅读全文

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

date

摘要: To change the system date use:# date {mmddhhmiyyyy.ss}mm – Monthdd – Datehh – 24 hour formatmi – Minutesyyyy – Yearss – secondsFor example, to set sys... 阅读全文

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

wget

摘要: 参考:http://apple.stackexchange.com/questions/100570/getting-files-all-at-once-from-a-web-page-using-curl一份份的下载文件有点麻烦,所以wget -r -np docs.linuxtone.org/e... 阅读全文

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

useradd groupadd passwd usermod userdel chfn id

摘要: chfn 修改用户信息id 显示当前用户和用户组的id 阅读全文

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

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) 编辑

QT

摘要: 安装Qt环境:sudo apt-get install libqt4-gui libqt4-sqlsudo apt-get install libqt4-dbgsudo apt-get install libqt4-devsudo apt-get install qt4-doc qt4-qtconf... 阅读全文

posted @ 2014-01-14 15:25 阿加 阅读(117) 评论(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 阿加 阅读(893) 评论(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 阿加 阅读(647) 评论(0) 推荐(0) 编辑

导航