Joinc

导航

2018年1月20日 #

CentOS 查看文件大小 du -hs filename

摘要: du -hs [filename] 查看目录大小 df -hv 查看整个磁盘使用状况 介绍:du命令用于显示指定文件(夹)在磁盘中所占的空间信息。假如指定的文件参数实际上是一个目录,就要计算该目录下的所有文件。假如 没有提供文件参数,执行du命令,显示当前目录内的文件占用空间信息。 语法: du [ 阅读全文

posted @ 2018-01-20 17:25 Joinc 阅读(6031) 评论(1) 推荐(1) 编辑

2018年1月3日 #

Linux(centos) 下curl模拟Http get / post请求 [ curl ]

摘要: 一、get请求 curl "http://www.baidu.com" 如果这里的URL指向的是一个文件或者一幅图都可以直接下载到本地 curl -i "http://www.baidu.com" 显示全部信息 curl -l "http://www.baidu.com" 只显示头部信息 curl 阅读全文

posted @ 2018-01-03 09:56 Joinc 阅读(10741) 评论(0) 推荐(1) 编辑

2018年1月2日 #

Intellij IDEA生成foreach或者loop 快捷键

摘要: 快捷键:ctrl+J 在弹出框会有更多选择。 阅读全文

posted @ 2018-01-02 11:19 Joinc 阅读(9040) 评论(0) 推荐(1) 编辑

2017年12月29日 #

java8 字符串转换 list long Integer

摘要: //You can use the Lambda functions of Java 8 to achieve this without looping //来自:http://stackoverflow.com/questions/19946980/convert-string-to-listlo 阅读全文

posted @ 2017-12-29 11:10 Joinc 阅读(15939) 评论(0) 推荐(0) 编辑

2017年12月22日 #

windows 切换host 清理dns

摘要: ipconfig/flushdns 阅读全文

posted @ 2017-12-22 13:30 Joinc 阅读(236) 评论(0) 推荐(0) 编辑

chmod +x 和 chmod u+x的区别

摘要: 常用: u 代表用户. g 代表用户组. o 代表其他. a 代表所有. 这意味着chmod u+x somefile 只授予这个文件的所属者执行的权限 而 chmod +x somefile 和 chmod a+x somefile 是一样的 Just doing +x will apply it 阅读全文

posted @ 2017-12-22 13:20 Joinc 阅读(10057) 评论(0) 推荐(0) 编辑

.tar.gz 和.tgz 解压

摘要: wget {url} 下载 eg: wget http://mirrors.tuna.tsinghua.edu.cn/apache/tomcat/tomcat-8/v8.5.24/bin/apache-tomcat-8.5.24.tar.gz *.tar.gz和*.tgz 用 tar –xzf 解压 阅读全文

posted @ 2017-12-22 13:16 Joinc 阅读(565) 评论(0) 推荐(0) 编辑

linux 常用重启

摘要: sudo reboot 为最常用重启 Linux centos关机与重启命令详解与实战 Linux centos重启命令: 1、reboot 普通重启 2、shutdown -r now 立刻重启(root用户使用) 3、shutdown -r 10 过10分钟自动重启(root用户使用) 4、sh 阅读全文

posted @ 2017-12-22 13:06 Joinc 阅读(270) 评论(0) 推荐(0) 编辑

2017年12月21日 #

centos7 安装jdk8 bash脚本 并配置环境变量

摘要: #!/bin/bash #安装java脚本 if type -p java; then echo 'java已安装.' exit 0 else echo '开始安装java...' wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.... 阅读全文

posted @ 2017-12-21 10:53 Joinc 阅读(1103) 评论(0) 推荐(0) 编辑

2017年12月20日 #

linux Bash 常用

摘要: linux 帮助文档 man + [命令] eg: man ls[命令] + --help eg:ls --helphelp +[命令] eg:help ceinfo + [命令] eg:info ls echo -e 输出转义后的文字 shell 文件头一定写#!/bin/bash执行shell脚 阅读全文

posted @ 2017-12-20 11:40 Joinc 阅读(186) 评论(0) 推荐(0) 编辑