{"id":162129,"date":"2019-11-03T12:00:49","date_gmt":"2019-11-03T04:00:49","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=162129"},"modified":"2019-10-22T09:26:33","modified_gmt":"2019-10-22T01:26:33","slug":"linux-learning-where","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/linux-learning-where.html","title":{"rendered":"Linux\u5b66\u4e60\u6559\u7a0b-\u6211\u7684\u7535\u8111\u5728\u54ea\uff1f"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u6253\u5f00Windows\uff0c\u9996\u5148\u770b\u5230\u7684\u662f\u684c\u9762\uff1b\u4e0d\u7231\u6574\u7406\u6587\u4ef6\u7684\u6211\uff0c\u684c\u9762\u7684\u4e1c\u897f\u5df2\u7ecf\u591a\u5230\u9700\u89812\u4e2a\u5c4f\u5e55\u624d\u80fd\u663e\u793a\u7684\u5b8c\u3002\u53e6\u5916\u4e00\u4e2a\u5e38\u7528\u7684\u5c31\u662f\u6211\u7684\u7535\u8111\uff0c\u7136\u540e\u6253\u5f00D\u76d8\uff0c\u4f9d\u6b21\u70b9\u5f00\u5bf9\u5e94\u7684\u6587\u4ef6\u5939\uff0c\u7136\u540e\u70b9\u5f00\u6587\u4ef6\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

Linux\u7684\u6587\u4ef6\u7cfb\u7edf\u7ec4\u7ec7\u65b9\u5f0f\u4e0eWindows\u7565\u6709\u4e0d\u540c\uff0c\u767b\u5f55\u8fdb\u53bb\u5c31\u662f\u5bb6\u76ee\u5f55\uff0c\u53ef\u89c6\u4e3aWindows\u4e0b\u7684\u684c\u9762\u3002\u5728\u8fd9\u4e2a\u76ee\u5f55\u4e0b\uff0c\u6211\u4eec\u53ef\u4ee5\u65b0\u5efa\u6587\u4ef6\u3001\u65b0\u5efa\u6587\u4ef6\u5939\uff0c\u5c31\u50cf\u5728\u684c\u9762\u4e0a\u7684\u64cd\u4f5c\u4e00\u6837\u3002
\n\u6ce8\uff1a
\n\u8fd9\u91cc\u6211\u4eec\u5047\u8bbe\u6240\u6709\u7528\u5230\u7684\u6587\u4ef6\u548c\u6587\u4ef6\u5939\u90fd\u653e\u7f6e\u4e8e\u5bb6\u76ee\u5f55\u4e0b
\nLinux\u7684\u5bb6\u76ee\u5f55\u4e25\u683c\u6765\u8bf4\u53ef\u80fd\u7c7b\u4f3c\u4e8eWindows\u4e0b\u7684C:\\Users\\ct
\n\u5982\u679c\u60f3\u67e5\u770b\u5f53\u524d\u76ee\u5f55\u4e0b\u90fd\u6709\u4ec0\u4e48\u5185\u5bb9\uff0c\u8f93\u5165\u547d\u4ee4 ls\uff0c\u56de\u8f66\u5373\u53ef (ls\u53ef\u4ee5\u7406\u89e3\u4e3a\u5355\u8bcdlist\u7684\u7f29\u5199)\u3002\u5f53\u524d\u76ee\u5f55\u4e0b\u4ec0\u4e48\u4e5f\u6ca1\u6709\uff0c\u6240\u4ee5\u6ca1\u6709\u4efb\u4f55\u8f93\u51fa\u3002
\n\"\"<\/p>\n

ct@ehbio:~$ ls<\/pre>\n

\u5982\u679c\u9519\u628al\u770b\u6210\u4e86i\uff0c\u8f93\u5165\u4e86is\uff0c\u5219\u4f1a\u51fa\u73b0\u4e0b\u9762\u7684\u63d0\u793a\u672a\u627e\u5230\u547d\u4ee4\u3002\u5982\u679c\u8f93\u5165\u7684\u662fLinux\u57fa\u672c\u547d\u4ee4\uff0c\u51fa\u73b0\u8fd9\u4e2a\u63d0\u793a\uff0c\u57fa\u672c\u53ef\u4ee5\u5224\u5b9a\u662f\u547d\u4ee4\u8f93\u5165\u9519\u4e86\uff0c\u77aa\u5927\u773c\u775b\u4ed4\u7ec6\u770b\u5c31\u662f\u4e86\u3002 \u5728\u6572\u5b8c\u547d\u4ee4\u56de\u8f66\u540e\uff0c\u6ce8\u610f\u67e5\u770b\u7ec8\u7aef\u7684\u8f93\u51fa\uff0c\u4ee5\u5224\u65ad\u662f\u5426\u6709\u95ee\u9898\u3002<\/p>\n

ct@ehbio:~$ is\r\n-bash: is: \u672a\u627e\u5230\u547d\u4ee4\r\n# \u5927\u5c0f\u5199\u654f\u611f\r\nct@ehbio:~$ lS\r\n-bash: lS: \u672a\u627e\u5230\u547d\u4ee4<\/pre>\n

\u5f53\u524d\u76ee\u5f55\u4e0b\u53ea\u6709\u4e00\u4e2a\u6587\u4ef6\uff0c\u770b\u4e0d\u51fa\u6548\u679c\uff0c\u6211\u4eec\u53ef\u4ee5\u65b0\u5efa\u51e0\u4e2a\u6587\u4ef6\u548c\u6587\u4ef6\u5939\uff0c\u6765\u67e5\u770b\u4e0b\u3002
\nmkdir\u662f\u65b0\u5efa\u4e00\u4e2a\u76ee\u5f55 (make a directory)\uff1bdata\u662f\u76ee\u5f55\u7684\u540d\u5b57\u3002 \u5982\u679c\u76ee\u5f55\u5b58\u5728\uff0c\u5219\u4f1a\u51fa\u73b0\u63d0\u793a\uff0c\u201d\u65e0\u6cd5\u521b\u5efa\u5df2\u5b58\u5728\u7684\u76ee\u5f55\u201d\u3002\u8fd9\u65f6\u53ef\u4ee5\u4f7f\u7528\u53c2\u6570-p\u5ffd\u7565\u8fd9\u4e2a\u9519\u8bef\u3002<\/p>\n

ct@ehbio:~$ mkdir data\r\nct@ehbio:~$ mkdir ls\r\ndata\r\nct@ehbio:~$ mkdir data\r\nmkdir: \u65e0\u6cd5\u521b\u5efa\u76ee\u5f55\"data\" : \u6587\u4ef6\u5df2\u5b58\u5728\r\nct@ehbio:~$ mkdir -p data<\/pre>\n

cat\u662f\u4e00\u4e2a\u547d\u4ee4\uff0c\u4e3b\u8981\u7528\u6765\u67e5\u770b\u6587\u4ef6\uff1b\u5728\u8fd9\u4e0e< ct@ehbio:~$ mkdir data\r\nct@ehbio:~$ cat < a\r\n> bc\r\n> END\r\na\r\nbc\r\n\r\n`>`\u662f\u4e00\u4e2a\u91cd\u5b9a\u5411\u7b26\u53f7\uff0c\u5373\u628a\u524d\u9762\u547d\u4ee4\u7684\u8f93\u51fa\u5199\u5165\u5230`>`\u540e\u9762\u7684\u6587\u4ef6\u4e2d\u3002\u5982\u4e0b\u6240\u793a\uff0c\u65b0\u5efa\u4e86\u4e00\u4e2a`Fasta`\u683c\u5f0f\u7684\u6587\u4ef6\u3002\r\n`ls -l`\u5217\u51fa\u6587\u4ef6\u7684\u8be6\u7ec6\u4fe1\u606f\uff1b`-l`\u8868\u793a\u547d\u4ee4\u884c\u53c2\u6570\uff0c\u662f\u7a0b\u5e8f\u9884\u7559\u7684\u4e00\u4e9b\u9009\u9879\uff0c\u4fdd\u8bc1\u5728\u4e0d\u66f4\u6539\u7a0b\u5e8f\u7684\u60c5\u51b5\u4e0b\u83b7\u5f97\u66f4\u7075\u6d3b\u7684\u64cd\u4f5c\u3002\u53ef\u4f7f\u7528`man ls`\u67e5\u770b`ls`\u6240\u6709\u7684\u547d\u4ee4\u884c\u53c2\u6570, \u4e0a\u4e0b\u7bad\u5934\u7ffb\u9875\uff0c\u6309`q`\u9000\u51fa\u67e5\u770b\u3002(man: manual, \u624b\u518c)\r\n\r\n

```bash\r\nct@ehbio:~$ cat < data\/test.fa\r\n> >SOX2\r\n> ACGTCGGCGGAGGGTGGSCGGGGGGGGAGAGGT\r\n> ACGATGAGGAGTAGGAGAGAGGAGG\r\n> >OCT4\r\n> ACGTAGGATGGAGGAGAGGGAGGGGGGAGGAGAGGAA\r\n> AGAGTAGAGAGA\r\n> >NANOG\r\n> ACGATGCGATGCAGCGTTTTTTTTTGGTTGGATCT\r\n> CAGGTAGGAGCGAGGAGGCAGCGGCGGATGCAGGCA\r\n> ACGGTAGCGAGTC\r\n> >mYC HAHA\r\n> ACGGAGCGAGCTAGTGCAGCGAGGAGCTGAGTCGAGC\r\n> CAGGACAGGAGCTA\r\n> end\r\n> END\r\n## \u6ce8\u610f\u547d\u4ee4\u548c\u53c2\u6570\u4e4b\u95f4\u7684\u7a7a\u683c\r\nct@ehbio:~\/data$ ls-l\r\n-bash: ls-l: \u672a\u627e\u5230\u547d\u4ee4\r\nct@ehbio:~$ ls -l\r\n\u603b\u7528\u91cf 4\r\n## d: dir; \u8868\u793adata\u662f\u4e2a\u76ee\u5f55\r\n## rwx\uff1a\u8868\u793a\u76ee\u5f55\u7684\u6743\u9650\uff0c\u6682\u65f6\u5ffd\u7565\uff0c\u6216\u81ea\u5df1\u5728\u7ebf\u641c\u7d22\r\ndrwxrwxr-x 2 ct ct 4096 6\u6708   8 14:52 data\r\nct@ehbio:~$ ls -l data\r\n\u603b\u7528\u91cf 4\r\n## \u5f00\u5934\u7684`-`\u8868\u793atest.fa\u662f\u4e2a\u6587\u4ef6\r\n-rw-rw-r-- 1 ct ct 284 6\u6708   8 14:48 test.fa<\/pre>\n

\u67e5\u770b\u5199\u5165\u7684\u6587\u4ef6\u7684\u5185\u5bb9\uff0ccat \u6587\u4ef6\u540d\uff1b\u9700\u8981\u6ce8\u610f\u7684\u662f\u6587\u4ef6\u6240\u5728\u7684\u76ee\u5f55\uff0c\u9ed8\u8ba4\u662f\u5f53\u524d\u76ee\u5f55\uff1b\u5982\u4e0b\u9762\u7b2c\u4e00\u4e2a\u547d\u4ee4\uff0c\u4f1a\u63d0\u793acat: test.fa: \u6ca1\u6709\u90a3\u4e2a\u6587\u4ef6\u6216\u76ee\u5f55\uff0c\u662f\u56e0\u4e3a\u5f53\u524d\u76ee\u5f55\u4e0b\u4e0d\u5b58\u5728\u6587\u4ef6test.fa\u3002(\u6ce8\u610f\u6587\u4ef6\u672b\u5c3e\u7684end)<\/p>\n

ct@ehbio:~$ cat test.fa\r\ncat: test.fa: \u6ca1\u6709\u90a3\u4e2a\u6587\u4ef6\u6216\u76ee\u5f55\r\nct@ehbio:~$ cat data\/test.fa \r\n>SOX2\r\nACGTCGGCGGAGGGTGGSCGGGGGGGGAGAGGT\r\nACGATGAGGAGTAGGAGAGAGGAGG\r\n>OCT4\r\nACGTAGGATGGAGGAGAGGGAGGGGGGAGGAGAGGAA\r\nAGAGTAGAGAGA\r\n>NANOG\r\nACGATGCGATGCAGCGTTTTTTTTTGGTTGGATCT\r\nCAGGTAGGAGCGAGGAGGCAGCGGCGGATGCAGGCA\r\nACGGTAGCGAGTC\r\n>mYC HAHA\r\nACGGAGCGAGCTAGTGCAGCGAGGAGCTGAGTCGAGC\r\nCAGGACAGGAGCTA\r\nend<\/pre>\n

test.fa\u5728\u76ee\u5f55data\u4e0b\uff0c\u53ef\u4ee5\u5148\u8fdb\u5165data\u76ee\u5f55\uff0c\u7136\u540e\u518d\u67e5\u770b\u6587\u4ef6\u3002\u7c7b\u6bd4\u4e8eWindows\u4e0b\u5148\u70b9\u5f00\u4e00\u4e2a\u6587\u4ef6\u5939\uff0c\u518d\u70b9\u5f00\u4e0b\u9762\u7684\u6587\u4ef6\u3002<\/p>\n

cd (change dir)\u5207\u6362\u76ee\u5f55\u3002<\/p>\n

head\u67e5\u770b\u6587\u4ef6\u6700\u5f00\u59cb\u7684\u51e0\u884c\uff0c\u9ed8\u8ba4\u4e3a10\u884c\uff0c\u53ef\u4f7f\u7528-n 6\u6307\u5b9a\u67e5\u770b\u524d6\u884c\u3002<\/p>\n

ct@ehbio:~$ cd data\r\nct@ehbio:~\/data$ head -n 6 test.fa \r\n>SOX2\r\nACGTCGGCGGAGGGTGGSCGGGGGGGGAGAGGT\r\nACGATGAGGAGTAGGAGAGAGGAGG\r\n>OCT4\r\nACGTAGGATGGAGGAGAGGGAGGGGGGAGGAGAGGAA\r\nAGAGTAGAGAGA<\/pre>\n

\u53e6\u5916less\u548cmore\u4e5f\u53ef\u4ee5\u7528\u6765\u67e5\u770b\u6587\u4ef6\uff0c\u5c24\u5176\u662f\u6587\u4ef6\u5185\u5bb9\u7279\u522b\u591a\u7684\u65f6\u5019\u3002<\/p>\n

ct@ehbio:~\/data$ less test.fa \r\n# q: \u9000\u51fa\r\n# \u4e0a\u4e0b\u7bad\u5934\u3001\u7a7a\u683c\u7ffb\u9875<\/pre>\n","protected":false},"excerpt":{"rendered":"

Linux\u7684\u6587\u4ef6\u7cfb\u7edf\u7ec4\u7ec7\u65b9\u5f0f\u4e0eWindows\u7565\u6709\u4e0d\u540c\uff0c\u767b\u5f55\u8fdb\u53bb\u5c31\u662f\u5bb6\u76ee\u5f55\uff0c\u53ef\u89c6\u4e3aWindows\u4e0b\u7684\u684c\u9762\u3002\u5728\u8fd9\u4e2a […]<\/p>\n","protected":false},"author":1893,"featured_media":162132,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-162129","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/162129","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1893"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=162129"}],"version-history":[{"count":2,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/162129\/revisions"}],"predecessor-version":[{"id":162133,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/162129\/revisions\/162133"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/162132"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=162129"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=162129"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=162129"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}