最近遇到的小问题总结-2018522
Excel将两列合并成一列:
=CONCATENATE()linux统计文件,原文链接:
1 | 统计某文件夹下文件的个数 |
- linux sort的一些用法:
1 | 去除重复行 |
什么是linux vip:https://www.zhihu.com/question/67682565,https://www.novell.com/documentation/bcc/bcc11_admin_nw/data/bq7ucwl.html。
Linux scp命令,上传或下载文件
复制本地文件到远程服务器:scp local_file remote_username@remote_ip:remote_folder;
例如:scp /home/chen/file.md chen@192.168.1.1:/home/chen/test.md
复制远程文件到本地:scp remote_username@remote_ip:remote_folder local_file
例如:scp chen@192.168.1.1:/home/chen/test.md /home/chen/file.md
- 修改文件所属用户和组信息
chown username:usergroup /path/to/file
- 修改文件权限: ugo,a
user,group,other,all
chmod a+x /path/to/file
chmod u+w /path/to/file
- linux 查看ip:
1 | ip addr |
- 解压缩文件:
1 | 解压文件:tar -zvxf xxx.tar.gz |
- vim 一些操作
1 |
|
- docker 删除容器状态为exited的容器:
docker rm -v $(docker ps -aq -f status=exited)
- 删除所有none的tag的镜像
docker images |grep none |awk '{print $3}'|xargs -i docker rmi {}
- idea重置配置文件。
D:\Users\chenzj001.IntelliJIdea2018.1 删除这个文件就好了,全部重置。也可以只删除config。
windows找到用户–>.i
也就是在用户目录下,删除.IntelliJIdea2018
- windows 查找端口占用进程
1 | netstat -aon|findstr "端口号" |