Loading [MathJax]/jax/output/CommonHTML/config.js
首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >专栏 >Day2-学习Linux

Day2-学习Linux

原创
作者头像
用户11039713
发布于 2024-03-23 11:37:36
发布于 2024-03-23 11:37:36
2970
举报

接触Linux的途径

1.使用U盘在闲置电脑安装LinuxCentOS或Ubuntu

2.使用win10内置Linux

3.win7:git bash

4.云服务器上的linux:腾讯云/阿里云


Linux常用命令


Linux练习

代码语言:linux
AI代码解释
复制
bio04@ecm-cefa:~$ pwd
/home/bio04
bio04@ecm-cefa:~$ mkdir biosoft
bio04@ecm-cefa:~$ mkdir project
bio04@ecm-cefa:~$ mkdir tmp
bio04@ecm-cefa:~$ mkdir src
bio04@ecm-cefa:~$ ls
biosoft  project  src  tmp
bio04@ecm-cefa:~$ cd tmp
bio04@ecm-cefa:~/tmp$ pwd
/home/bio04/tmp
bio04@ecm-cefa:~/tmp$ cd -
/home/bio04
bio04@ecm-cefa:~$ mkdir rm_test
bio04@ecm-cefa:~$ cd rm_test
bio04@ecm-cefa:~/rm_test$ touch doodle.txt
bio04@ecm-cefa:~/rm_test$ mkdir huahua
bio04@ecm-cefa:~/rm_test$ cd huahua
bio04@ecm-cefa:~/rm_test/huahua$ touch haha.txt
bio04@ecm-cefa:~/rm_test/huahua$ cd -
/home/bio04/rm_test
bio04@ecm-cefa:~/rm_test$ rm doodle.txt
bio04@ecm-cefa:~/rm_test$ rm -r huahua
bio04@ecm-cefa:~/rm_test$ cd -
-bash: cd: /home/bio04/rm_test/huahua: No such file or directory
bio04@ecm-cefa:~/rm_test$ rmdir rm_test
rmdir: failed to remove 'rm_test': No such file or directory
bio04@ecm-cefa:~/rm_test$ pwd
/home/bio04/rm_test
bio04@ecm-cefa:~/rm_test$ cd
bio04@ecm-cefa:~$ cd bio04
-bash: cd: bio04: No such file or directory
bio04@ecm-cefa:~$ pwd
/home/bio04
bio04@ecm-cefa:~$ rmdir rm_test
bio04@ecm-cefa:~$ ls
biosoft  project  src  tmp
bio04@ecm-cefa:~$ cd tmp
bio04@ecm-cefa:~/tmp$ vi chenxing.txt
bio04@ecm-cefa:~/tmp$ cat chenxing.txt 
this class is very useful, i acquire a lot knowledge about linux
I will insist on learning.
bio04@ecm-cefa:~/tmp$ q

Command 'q' not found, but can be installed with:

snap install q                       # version 1.6.3-1, or
apt  install python-q-text-as-data 
apt  install python3-q-text-as-data

See 'snap info q' for additional versions.

bio04@ecm-cefa:~/tmp$ cp chenxing.txt new_file.txt
bio04@ecm-cefa:~/tmp$ ls
chenxing.txt  new_file.txt
bio04@ecm-cefa:~/tmp$ pwd
/home/bio04/tmp
bio04@ecm-cefa:~/tmp$ mv new_file.txt home.txt
bio04@ecm-cefa:~/tmp$ mv home.txt ~
bio04@ecm-cefa:~/tmp$ 

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

评论
登录后参与评论
暂无评论
推荐阅读
编辑精选文章
换一批
Day-2 香波🐟
今天是加入生信星球学习的第2天,昨天晚上开组会给我开崩溃了,真的设计不出实验方案啊啊啊,但不管怎么样,今天要元气满满地学好今天的内容
波小囡
2023/11/28
2860
DAY2-Linux入门
用户11039705
2024/03/23
1430
Day2-李泽平-Linux初学
按照学习要求练习了几个基本命令:pwd、mkdir、ls、rm、cd、vi、cat、cp、mv。
用户11040033
2024/03/24
1340
linux学习-Day2
https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/
用户11074272
2024/04/15
1040
linux系统基础学习
用户11074272
2024/04/14
1960
Day2—生信星球小组学习-LuKa
bio01@VM-0-6-ubuntu:~/rm_test$ rm doodle.txt
用户10775902
2023/10/04
1610
Day2召唤Linux—小王—急急如律令 Linux赐予我力量
用户11008555
2024/03/05
1290
学习小组day2笔记-linux基础+常用命令
1.下载安装 xshell 7 和 xftp 免费版都超级顺利,登录也超级顺利,没有遇到任何问题(就让人怪不放心的,总觉得该出现点什么 bug 才行)
清南
2023/04/13
2550
Day2 Linux登录和操作(个人理解简易版)
``` R pwd #显示当前路径 bio02@ecm-cefa:~$ pwd /home/bio02 mkdir #创建目录 bio02@ecm-cefa:~$ mkdir hello ls #显示列表 bio02@ecm-cefa:~$ ls biosoft hello project src tmp #除了四个已有目录,新增一个hello目录 rm #删文件 rmdir #删空目录 rm -r #删非空目录(删除统一展示了,如下,因为不会随意切换目录,导致删除要挨个进入目录删) bio02@ecm-cefa:~$ rm -r tmp bio02@ecm-cefa:~$ mkdir tmp bio02@ecm-cefa:~$ cd tmp bio02@ecm-cefa:~/tmp$ mkdir rm_test bio02@ecm-cefa:~/tmp$ cd rm_test bio02@ecm-cefa:~/tmp/rm_test$ mkdir huahua bio02@ecm-cefa:~/tmp/rm_test$ cd huahua bio02@ecm-cefa:~/tmp/rm_test/huahua$ touch doodle.txt bio02@ecm-cefa:~/tmp/rm_test/huahua$ rm doodle.txt bio02@ecm-cefa:~/tmp/rm_test/huahua$ cd bio02@ecm-cefa:~$ cd tmp bio02@ecm-cefa:~/tmp$ cd rm_test bio02@ecm-cefa:~/tmp/rm_test$ rmdir huahua bio02@ecm-cefa:~/tmp/rm_test$ cd bio02@ecm-cefa:~$ cd tmp bio02@ecm-cefa:~/tmp$ rmdir rm_test bio02@ecm-cefa:~/tmp$ cd #进入目录 bio02@ecm-cefa:~$ cd tmp vi #建脚本或文档 bio02@ecm-cefa:~/tmp/new$ vi hello_world.txt cat #查看文档并展示到屏幕 bio02@ecm-cefa:~/tmp/new$ cat hello_world.txt i today is a good day,i meet my boyfriend,he is older than me,he finished his work then meet me.we have a good time. head #输出前十行(然而我只发挥了一行) bio02@ecm-cefa:~/tmp/new$ head hello_world.txt i today is a good day,i meet my boyfriend,he is older than me,he finished his work then meet me.we have a good time. tail #输出后十行(如上括号所言) bio02@ecm-cefa:~/tmp/new$ tail hello_world.txt i today is a good day,i meet my boyfriend,he is older than me,he finished his work then meet me.we have a good time. head -n #数字 自定义输出几行 bio02@ecm-cefa:~/tmp/new$ head -n 2 hello_world.txt i today is a good day,i meet my boyfriend,he is older than me,he finished his work then meet me.we have a good time. cp #复制 bio02@ecm-cefa:~/tmp/new$ cp hello_world.txt hello_boy mv #移动 bio02@ecm-cefa:~/tmp/new$ mv hello_world.txt tmp bio02@ecm-cefa:~/tmp/new$ ```
海雀
2024/03/05
2590
Day2-橙子
linux是操作系统(OS),类似于Windows和mac,吉祥物是一只叫Tux的小企鹅
用户11110663
2024/05/11
1960
Day2-橙子
宏宏的学习笔记Day2 Linux基础
练习:将新文件new_file.txt,重命名为home.txt,移动到主目录下(路径是~)
咕咚咕叽
2024/04/14
1490
生信星球学习小组Day2-召唤linux Jerry
今天是学习小组学习的第一天,主要是学习了解linux的基本概念、如何使用以及基本操作
jerry早点睡
2023/08/08
3780
Day2-Linux学习
用户11039783
2024/03/24
2160
生信星球--生信学习DAY2:适应Linux
用户10920326
2024/01/18
1930
day2-白雪
4,Linux不分各种磁盘,文件系统呈现树状,系统目录无法使用,主要可用的是home文件夹
用户10300557
2023/01/11
2.1K1
生信入门DAY2--向逸一
删除的操作对象分为三类:普通文件、空目录、有内容的目录。他们的对应的命令是略有不同的。
向11
2023/02/08
3130
学习小组Day2笔记--刘
目录相当于windows的文件夹,linux系统没有C/D/E/F盘,文件系统呈树状。由于用户不唯一,像类似“我的电脑”这种级别的文件,用户是无法访问的,每个用户能到达的最高级目录“宿主目录”,即用户登录时所在的目录,宿主目录放在home目录下。
用户10340221
2023/02/07
4480
第二天生信学习内容笔记-微信公众号生信星球
## 不需要安装任何东西,自带terminal,直接使用;或者使用界面更好看的iterms
用户10986402
2024/02/20
1920
学习小组Day2笔记-毽子
2.流程参考(https://www.jianshu.com/p/8a340b103a41)
用户10300841
2023/01/11
4520
生信小组打卡D5-张三
用户10664162
2023/07/22
1750
相关推荐
Day-2 香波🐟
更多 >
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档