随笔分类 -  Linux

摘要:运行命令: ssh-keygen -t rsa -P "" ssh-copy-id server 修改~/.ssh/config Host 123HostName 192.168.1.123User rootPort 22 阅读全文
posted @ 2018-12-17 16:22 当自强 阅读(121) 评论(0) 推荐(0)
摘要:查看目录及其包含的文件的大小du -ch directory查看当前目录下文件的个数 ls -l | grep "^-" | wc -l查看当前目录下以.jpg为后缀文件的个数 ls -l | grep ".jpg" | wc -l查看当前目录下文件的个数(包括子目录)ls -lR| grep "^ 阅读全文
posted @ 2017-03-22 16:53 当自强 阅读(91) 评论(0) 推荐(0)
摘要:1.编辑配置文件 sudocrontab -e */1 * * * * python /home/hello.py >> /home/hello.log */1 * * * * date >> /home/hello.log 2.hello.py内容 3.保存,重启服务: /etc/init.d/c 阅读全文
posted @ 2016-11-02 17:22 当自强 阅读(98) 评论(0) 推荐(0)