2022-04-23

day2 xshell学习笔记——罗wb

知识点

xshell.png

代码练习

bio06@VM-0-6-ubuntu:~$ pwd
/home/bio06
bio06@VM-0-6-ubuntu:~$ mkdir -p biosoft/r.studio
bio06@VM-0-6-ubuntu:~$ mkdir ai
bio06@VM-0-6-ubuntu:~$ mkdir other
bio06@VM-0-6-ubuntu:~$ mkdir score
bio06@VM-0-6-ubuntu:~$ vi sore.excel
bio06@VM-0-6-ubuntu:~$ ls
3.xlsx  ai  biosoft  other  ps  r.studio  score  sore.excel
bio06@VM-0-6-ubuntu:~$ cd 
bio06@VM-0-6-ubuntu:~$
bio06@VM-0-6-ubuntu:~$ cd biosoft
bio06@VM-0-6-ubuntu:~/biosoft$ ls
r.studio
bio06@VM-0-6-ubuntu:~/biosoft$ cd
bio06@VM-0-6-ubuntu:~$ rmdir ai
bio06@VM-0-6-ubuntu:~$ ls
3.xlsx  biosoft  other  ps  r.studio  score  sore.excel
bio06@VM-0-6-ubuntu:~$ cat sore.excel
name    score   grade
a   90  A
b   85  A
c   94  A
d   76  B
e   62  C
f   69  C
g   82  A
bio06@VM-0-6-ubuntu:~$ head -5 sore.excel
name    score   grade
a   90  A
b   85  A
c   94  A
d   76  B
bio06@VM-0-6-ubuntu:~$ mv sore.excel score
bio06@VM-0-6-ubuntu:~$ cd score
bio06@VM-0-6-ubuntu:~/score$ ls
sore.excel
bio06@VM-0-6-ubuntu:~/score$ touch haha.txt
bio06@VM-0-6-ubuntu:~/score$ ls
haha.txt  sore.excel
bio06@VM-0-6-ubuntu:~/score$ cd
bio06@VM-0-6-ubuntu:~$ ls
3.xlsx  biosoft  other  ps  r.studio  score
bio06@VM-0-6-ubuntu:~/score$ rm haha.txt
bio06@VM-0-6-ubuntu:~/score$ ls
sore.excel
bio06@VM-0-6-ubuntu:~/score$ cp sore.excel grade.excel
bio06@VM-0-6-ubuntu:~/score$ ls
grade.excel  sore.excel
bio06@VM-0-6-ubuntu:~/score$ mv grade.excel ~
bio06@VM-0-6-ubuntu:~/score$ cd
bio06@VM-0-6-ubuntu:~$ ls
3.xlsx  biosoft  grade.excel  other  ps  r.studio  score
bio06@VM-0-6-ubuntu:~$ mv grade.excel class.excel
bio06@VM-0-6-ubuntu:~$ ls
3.xlsx  biosoft  class.excel  other  ps  r.studio  score
bio06@VM-0-6-ubuntu:~$ rm -r score
bio06@VM-0-6-ubuntu:~$ ls
3.xlsx  biosoft  class.excel  other  ps  r.studio

注意事项

1.不能跨目录对文件进行操作
2.-n 前后均要有空格

待解决问题

1.层级目录的建立与删除
2.学习linux自动补全
3.学习怎么删除和修改前面的命令

你可能感兴趣的:(2022-04-23)