前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >Day2-学习Linux

Day2-学习Linux

原创
作者头像
用户11039713
发布2024-03-23 19:37:36
2640
发布2024-03-23 19:37:36

接触Linux的途径

1.使用U盘在闲置电脑安装Linux:CentOS或Ubuntu

2.使用win10内置Linux

3.win7:git bash

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


Linux常用命令


Linux练习

代码语言:linux
复制
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 删除。

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 接触Linux的途径
  • Linux常用命令
  • Linux练习
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档