随笔分类 - linux shell
摘要:-s选项; 01、文件不存在; 为假 02、文件存在,但是大小为空; 为假 03、文件存在,且大小不为空; 为真 001、 [ -s file ]:文件存在且不为0是为真。 (base) root@PC1:/home/test2# ls a.txt b.txt (base) root@PC1:/ho
阅读全文
摘要:001、 (base) root@PC1:/home/test2# ls a.txt (base) root@PC1:/home/test2# cat a.txt 1 2 8 10 (base) root@PC1:/home/test2# cat -s a.txt ## 将多个连续的空行压缩为一个空
阅读全文
摘要:001、 = 判断字符串是否相同 (base) root@PC1:/home/test2# a=abcd (base) root@PC1:/home/test2# b=opqr (base) root@PC1:/home/test2# c=abcd ## 测试字符串 (base) root@PC1:
阅读全文
摘要:001、 (base) root@PC1:/home/test2# ls a.fasta (base) root@PC1:/home/test2# cat a.fasta ## 测试fasta文件 >scaffold_1 CCCGGGTAAAACGGGTCTTCAAGAAAACGCTCCTCCGTT
阅读全文
摘要:001、 (base) root@PC1:/home/test2# ls a.fasta (base) root@PC1:/home/test2# cat a.fasta ## 测试fasta文件 >scaffold_1 CCCGGGTAAAACGGGTCTTCAAGAAAACGCTCCTCCGTT
阅读全文
摘要:001、 (base) root@ubuntu01pc1:~# conda --version ## conda版本 conda 4.12.0 002、在终端执行如何命令 conda config --add channels https://mirrors.tuna.tsinghua.edu.cn
阅读全文
摘要:001、 回退:u 前进:ctrl + r
阅读全文
摘要:001、 liujiaxin01@ubuntu01pc1:~/Desktop$ whoami liujiaxin01 liujiaxin01@ubuntu01pc1:~/Desktop$ sudo passwd root ## 创建root账户 [sudo] password for liujiax
阅读全文
摘要:001、 [root@PC1 test4]# ls a.txt [root@PC1 test4]# shasum a.txt 8b945928bcfa1a6018f3e65d83ad27c6879bd6c8 a.txt [root@PC1 test4]# shasum --algorithm 256
阅读全文
摘要:001、 ctrl + a:回到行首 ctrl + e:回到行末 ctrl + u:剪切行首到光标处的位置 ctrl + k:剪切光标所在位置到末尾的内容 ctrl + y:粘贴最近剪切的内容
阅读全文
摘要:001、shell实现 root@PC1:/home/test2# ls test.txt root@PC1:/home/test2# cat test.txt 3 a 8 a y a a a f y a a a a a e a a a r k root@PC1:/home/test2# awk '
阅读全文
摘要:001、shell实现 root@PC1:/home/test2# ls test.txt root@PC1:/home/test2# cat test.txt ## 测试数据, 删除第一次匹配xpehh以外的所有匹配xpehh的行 01 ee ff 02 ee de 03 dd ee 04 jj
阅读全文
摘要:001、 root@PC1:/home/test2# ls test.map root@PC1:/home/test2# cat test.map ## 用一个map文件进行测试,按照染色体打乱顺序 6 snp16 0 312984 1 snp2 0 85204 5 snp15 0 204629 6
阅读全文
摘要:001、压缩保留源文件 root@PC1:/home/test2# ls outcome.map root@PC1:/home/test2# gzip -c outcome.map > new.map.gz ## 压缩为gz文件,并保留源文件 root@PC1:/home/test2# ls new
阅读全文
摘要:001、 root@PC1:/home/test2# ls a.txt root@PC1:/home/test2# cat a.txt aa dd ss dd ff xv ef 33 cc xx ee ww df ff zc xx xx ff er ed ww xx xx ee er uy vv r
阅读全文
摘要:001、 root@PC1:/home/test2# ls a.txt root@PC1:/home/test2# cat a.txt aa dd ss dd ff xv ef 33 cc xx ee ww df ff zc xx xx ff er ed ww xx xx ee er uy vv r
阅读全文
摘要:001、解压 .tar.lzma文件 root@PC1:/home/test2/test# ls test_chr22.tar.lzma ## 增加 -k 参数 保留源文件 unlzma -k test_chr22.tar.lzma root@PC1:/home/test2/test# unlzma
阅读全文
摘要:001、\S:大写S root@PC1:/home/test2# ls a.txt root@PC1:/home/test2# cat a.txt 33-16 CC CC GG TT GG TT GG TT CC 38-11 CC GG GG TT GG TT CC TT CC 4226 CC CC
阅读全文
摘要:001、问题 root@PC1:/home/software# bash TASSEL_5_unix.sh Starting Installer ... Gtk-Message: 14:04:38.467: Failed to load module "canberra-gtk-module" 00
阅读全文
摘要:001、 root@PC1:/home/test3# ls a.txt root@PC1:/home/test3# cat a.txt e_r:e_y k:e_g_x_3 1_3:e:g:e root@PC1:/home/test3# awk -F "[_:]" '{print $2}' a.txt
阅读全文

浙公网安备 33010602011771号