Archive for the ‘Linux’ Category

2 11 2017

查找并删除

bigCat Posted in Linux - 0 Comment
find . -type f -mtime -180| xargs ls –l

find . -type f -mtime -180| xargs rm -rf
17 12 2013

.htaccess fancyindexing

bigCat Posted in Linux - 0 Comment

Options +Indexes\nIndexOptions +FancyIndexing +FoldersFirst +NameWidth=* Charset=UTF-8

\n\n

http://httpd.apache.org/docs/2.2/mod/mod_autoindex.html

\n

17 10 2013

SSH 自动登陆输入密码脚本

bigCat Posted in Linux - 0 Comment
#!/usr/bin/expect -f\n\nset port 22\nset user bigcat\nset host 10.20.30.40\nset password helloworld\nset timeout -1\n\nspawn ssh -p $port $user@$host\nexpect "*assword"\n\nsend "$password\r"\n\ninteract\n

\n

3 10 2013

ubuntu 安装 node.js

bigCat Posted in Linux - 0 Comment
sudo apt-get install python-software-properties python g++ make\r\nsudo add-apt-repository ppa:chris-lea/node.js\r\nsudo apt-get update\r\nsudo apt-get install nodejs
3 10 2013

vmware windows与ubuntu共享文件 hgfs下为空和启动自动挂载hgfs的方法

bigCat Posted in Linux - 0 Comment

sudo apt-get install open-vm-dkms\r\nsudo mount -t vmhgfs .host:/ /mnt/hgfs\r\n\r\n \r\n\r\n编辑 /etc/init.d/rc.local\r\n\r\ndo_start() {\r\n\r\n后增加\r\n\r\nsudo mount -t vmhgfs .host:/ /mnt/hgfs\r\n\r\n \r\n\r\n编辑 /etc/init.d/open-vm-tools\r\n\r\n最后增加\r\n\r\nsudo mount -t vmhgfs .host:/ /mnt/hgfs

Host: (miao) | Word: Press | Code: HTML5