随笔分类 -  binary utility

上一页 1 2 3 4 下一页

重定向
摘要:COMMAND_OUTPUT ># 重定向 stdout 到一个文件.# 如果没有这个文件就创建, 否则就覆盖.1>filename# 重定向 stdout 到文件"filename".1>>filename# 重定向并追加 stdout 到文件"filename".2>filename# 重定向 ... 阅读全文

posted @ 2014-01-24 14:48 阿加

last
摘要:last reboot 显示系统最后重启的历史记录 las... 阅读全文

posted @ 2014-01-22 11:49 阿加 阅读(152) 评论(0) 推荐(0)

文件解压缩 tar zip
摘要:zip -e var-log-protected.zip /var/log/*Enter password:Verify password:updating: var/log/acpid (deflated 81%)updating: var/log/anaconda.log (deflated 7... 阅读全文

posted @ 2014-01-22 11:29 阿加 阅读(309) 评论(0) 推荐(0)

硬件信息 dmidecode dmesg lsdev lshw haparm lsusb
摘要:dmidecode 显示从BIOS中获取的硬件信息 ... 阅读全文

posted @ 2014-01-22 11:21 阿加 阅读(583) 评论(0) 推荐(0)

文件加密 解密 pdftk openssl gpg vim
摘要:openssl加密和解密 1、 ... 阅读全文

posted @ 2014-01-22 11:17 阿加

screen nohup disown
摘要:引述自:http://www.gnu.org/software/screen/manual/screen.htmlhttp://www.ibm.com/developerworks/cn/linux/l-cn-screen/http://www.ibm.com/developerworks/cn/a... 阅读全文

posted @ 2014-01-18 14:43 阿加

LD_PRELOAD & LD_LIBRARY_PATH 动态库路径
摘要:参考:http://www.cnblogs.com/waterlin/archive/2011/07/14/2106056.html143上的glibc较低,同学又不能进行升级(造成全局影响),所以使用了LD_LIBRARY_PATH,将179上的/lib,然后在.bashrc中添加export L... 阅读全文

posted @ 2014-01-15 17:02 阿加

libc.so.6 误删后修复
摘要:在服务器上操作的时候,突然不能正常使用了,同学把libc.so文件替换了,所以……引述自:http://blog.chinaunix.net/uid-26527046-id-3936069.html1、经过测试#cd /lib/i386-linux-gnu#LD_PRELOAD=/lib/i386-... 阅读全文

posted @ 2014-01-15 16:01 阿加 阅读(762) 评论(0) 推荐(0)

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

posted @ 2014-01-14 22:33 阿加 阅读(225) 评论(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 阿加 阅读(358) 评论(0) 推荐(0)

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

posted @ 2014-01-14 16:07 阿加 阅读(164) 评论(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 阿加 阅读(158) 评论(0) 推荐(0)

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

posted @ 2014-01-14 15:58 阿加

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 阿加 阅读(627) 评论(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 阿加 阅读(133) 评论(0) 推荐(0)

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

posted @ 2014-01-14 15:07 阿加

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 阿加

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

posted @ 2014-01-14 14:47 阿加

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

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

flex中的注释
摘要:flex 2.5.35论文写到此处,遇到点麻烦,随手翻了本书,说下flex中的注释问题。中文版的35页有点问题,所以纠正下。下面是p31示例 fb2_2.l 1 /* 读取多个文件 */ 2 %option noyywrap 3 4 %{ 5 int chars = 0; 6 int words ... 阅读全文

posted @ 2014-01-08 19:51 阿加 阅读(1886) 评论(0) 推荐(0)

上一页 1 2 3 4 下一页

导航