观前提醒:这一次的笔记就像是流水账,什么都写进去了,复习的时候可以直接看思维导图,简洁而详细
本课思维导图
- 下载安装 xshell 7 和 xftp 免费版都超级顺利,登录也超级顺利,没有遇到任何问题(就让人怪不放心的,总觉得该出现点什么 bug 才行)
- 登录之后熟悉基本命令,操作如下:
/usr/bin/xauth: file /home/bio04/.Xauthority does not exist
bio04@VM-0-6-ubuntu:~$ pwd
/home/bio04
bio04@VM-0-6-ubuntu:~$ mkdir qingnan
bio04@VM-0-6-ubuntu:~$ cd qingnan
bio04@VM-0-6-ubuntu:~/qingnan$ cd ..
bio04@VM-0-6-ubuntu:~$ mkdir biosoft
bio04@VM-0-6-ubuntu:~$ mkdir project
bio04@VM-0-6-ubuntu:~$ mkdir tmp
bio04@VM-0-6-ubuntu:~$ mkdir src #源代码
bio04@VM-0-6-ubuntu:~$ ls
biosoft project qingnan src tmp
bio04@VM-0-6-ubuntu:~$ rmdir qingnan
bio04@VM-0-6-ubuntu:~$ ls
biosoft project src tmp
bio04@VM-0-6-ubuntu:~$ mkdir qingnan
bio04@VM-0-6-ubuntu:~$ cd qingnan
bio04@VM-0-6-ubuntu:~/qingnan$ mkdir shanshan
bio04@VM-0-6-ubuntu:~/qingnan$ cd ..
bio04@VM-0-6-ubuntu:~$ rmdir qingnan
rmdir: failed to remove 'qingnan': Directory not empty
bio04@VM-0-6-ubuntu:~$ rm -r qingnan
bio04@VM-0-6-ubuntu:~$ ls
biosoft project src tmp
bio04@VM-0-6-ubuntu:~$ cd tmp
bio04@VM-0-6-ubuntu:~/tmp$ pwd
/home/bio04/tmp
bio04@VM-0-6-ubuntu:~/tmp$ cd
bio04@VM-0-6-ubuntu:~$
bio04@VM-0-6-ubuntu:~$ mkdir rm test
bio04@VM-0-6-ubuntu:~$ cd rm test
-bash: cd: too many arguments
bio04@VM-0-6-ubuntu:~$ ls
biosoft project rm src test tmp
bio04@VM-0-6-ubuntu:~$ #刚刚一次新建了两个文件夹!
bio04@VM-0-6-ubuntu:~$ rmdir rm test
bio04@VM-0-6-ubuntu:~$ ls
biosoft project src tmp
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$ cd ..
bio04@VM-0-6-ubuntu:~/rm_test$ rm doodle.txt
bio04@VM-0-6-ubuntu:~/rm_test$ ls
huahua
bio04@VM-0-6-ubuntu:~/rm_test$ rm -r huahua
bio04@VM-0-6-ubuntu:~/rm_test$ ls
bio04@VM-0-6-ubuntu:~/rm_test$ cd ..
bio04@VM-0-6-ubuntu:~$ ls
biosoft project rm_test src tmp
bio04@VM-0-6-ubuntu:~$ rmdir rm_test
bio04@VM-0-6-ubuntu:~$ ls
biosoft project src tmp
- 学习 vi & cat、cp、mv
bio04@VM-0-6-ubuntu:~/tmp$ vi xingqiushang.txt
bio04@VM-0-6-ubuntu:~/tmp$ cat xingqiushang.txt
second day at shengxin planet
everything goes well
keep learning & keep moving with huahua and everyone in our group
fighting!
bio04@VM-0-6-ubuntu:~/tmp$ head -n 2 xingqiushang.txt
second day at shengxin planet
everything goes well
bio04@VM-0-6-ubuntu:~/tmp$ cp xingqiushang.txt new_file.txt
bio04@VM-0-6-ubuntu:~/tmp$ ls
new_file.txt xingqiushang.txt
bio04@VM-0-6-ubuntu:~/tmp$ mv new_file.txt xingqiushang2.txt
bio04@VM-0-6-ubuntu:~/tmp$ ls
xingqiushang2.txt xingqiushang.txt
- 关于自动补全:输入字符后,按Tab 键,如果只有一个命令匹配到,按一次 Tab 键就自动将这个命令补全。
如果输入的字符匹配多个命令则会列出所有可用的命令。
网友评论