12.wget报错
后面加上 --no-check-certificate
试试
11.PATH、PYTHONPAT、sys.path小结和添加.pth
Linux中PATH、PYTHONPAT、sys.path小结
Linux如何在python.sys中永久添加路径
10.raise ImportError('This package should not be accessible on Python 3. ’ ImportError 报错解决
这是因为环境变量中包含PYTHONPATH=/usr/local/lib/python2.7/site-packages,而这条不适用于python3
unset PYTHONPATH #在shell下执行这个,就好了
9.对每个文件夹下的.fastq.gz文件检查md5
## 不知道为什么突然不行了
nohup find *fastq.gz -type f -print0 | xargs -0 md5sum > sjy.check.md5 &
## 换一个吧:
nohup find / -type f -print0 | xargs -0 md5sum > sjy.check.md5 &
md5sum -c sjy.check.md5 > complete.log
8.tar 批量解压多层目录文件
其他解压:
*.tar tar -xvf
*.gz gzip -d 或gunzip
*.tar.gz和*.tgz tar-zxvf
*.bz2 bzip2 -d 或者bunzip2
*.tar.bz2 tar -xjf
*.Z uncompress
*.tar.Z tar -xZf
*.rar unrar e
*.zip unzip
7.查看当前目录下每个子目录的文件数量
find . -maxdepth 1 -type d | while read dir; do count=$(find "$dir" -type f | wc -l); echo "$dir : $count"; done
6.查找文件夹所在位置
find . -name java -type d
批量删除符合条件的文件
find ./ -name 'LCC10_351*' |xargs rm -f
5.查看某个进程所用的线程数
top # 获取PID
ps -Lf 3496|wc -l # 3496为PID
4.查看linux核心
cat /etc/redhat-release
#CentOS Linux release 7.4.1708 (Core)
3.比较两个文件夹下的内容是否一致
diff -ruNa dir1 dir2 >s12.diff
2.“bash: ls: command not found”,解决:
export PATH=/bin:/usr/bin:$PATH
1.安装软件
wget xxx.zip
unzip xxx.zip
echo 'export PATH= 路径' >> ~/.bashrc
# 注意这一步的路径只需要精确到biosoft下该软件所在的文件夹即可
source ~/.bashrc