生信星球 DAY 2 Linux 入门 姚学成

DAY2 Linux入门.png

为什么用Linux

  • 开源、免费。
  • 不需要图形界面,节约资源。
  • 大部分生物信息软件基于Linux系统开发。

基础命令

  • 见思维导图

拓展学习

马哥教育2021-Linux云计算小白入门专业版教程
Linux命令大全(手册)
生信初学者入门Linux最少必要的知识点

今日练习(基于 Windows的Xshell)

Xshell 7 (Build 0076)
Copyright (c) 2020 NetSarang Computer, Inc. All rights reserved.

Type `help' to learn how to use Xshell prompt.
[C:\~]$ 

Connecting to 42.192.49.166:22...
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'.

Welcome to Ubuntu 18.04.4 LTS (GNU/Linux 4.15.0-118-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

  System information as of Sat Aug 28 17:28:51 CST 2021

  System load:  0.1                Processes:           134
  Usage of /:   13.8% of 49.15GB   Users logged in:     3
  Memory usage: 17%                IP address for eth0: 172.17.0.6
  Swap usage:   0%

 * Super-optimized for small spaces - read how we shrank the memory
   footprint of MicroK8s to make it the smallest full K8s around.

   https://ubuntu.com/blog/microk8s-memory-optimisation

 * Canonical Livepatch is available for installation.
   - Reduce system reboots and improve kernel security. Activate at:
     https://ubuntu.com/livepatch
New release '20.04.3 LTS' available.
Run 'do-release-upgrade' to upgrade to it.


Last login: Sat Aug 28 17:09:22 2021 from 222.205.124.170

#显示当前路径
bio04@VM-0-6-ubuntu:~$ pwd
/home/bio04

#显示当前列表
bio04@VM-0-6-ubuntu:~$ ls
bioproject  biosoft  other  src

#移接,建立,删除文件及文件夹
bio04@VM-0-6-ubuntu:~$ cd other
bio04@VM-0-6-ubuntu:~/other$ pwd
/home/bio04/other
bio04@VM-0-6-ubuntu:~/other$ cd
bio04@VM-0-6-ubuntu:~$ mkdir rm_test
bio04@VM-0-6-ubuntu:~$ cd rm_test
bio04@VM-0-6-ubuntu:~/rm_test$ touch doodle.txt
bio04@VM-0-6-ubuntu:~/rm_test$ mkdir huahua
bio04@VM-0-6-ubuntu:~/rm_test$ cd huahua
bio04@VM-0-6-ubuntu:~/rm_test/huahua$ touch haha.txt
bio04@VM-0-6-ubuntu:~/rm_test/huahua$ rm haha.txt
bio04@VM-0-6-ubuntu:~/rm_test/huahua$ cd -
/home/bio04/rm_test
bio04@VM-0-6-ubuntu:~/rm_test$ rmdir huahua
bio04@VM-0-6-ubuntu:~/rm_test$ rm doodle.txt
bio04@VM-0-6-ubuntu:~/rm_test$ cd
bio04@VM-0-6-ubuntu:~$ rmdir rm_test
bio04@VM-0-6-ubuntu:~$ ls
bioproject  biosoft  other  src

#编辑文档
bio04@VM-0-6-ubuntu:~$ cd other
bio04@VM-0-6-ubuntu:~/other$ vi hello_world.txt
bio04@VM-0-6-ubuntu:~/other$ cat hello_world.txt
hello world


goodby world
#
bio04@VM-0-6-ubuntu:~/other$ head -n 3 hello_world.txt
hello world

#复制,重命名,移动文件
bio04@VM-0-6-ubuntu:~/other$ cp hello_world.txt new_file.txt
bio04@VM-0-6-ubuntu:~/other$ mv new_file.txt home.txt
bio04@VM-0-6-ubuntu:~/other$ mv home.txt ~
bio04@VM-0-6-ubuntu:~/other$ cd
bio04@VM-0-6-ubuntu:~$ ls
bioproject  biosoft  home.txt  other  src
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容