2018-08-28

作者: liulu8887 | 来源:发表于2018-08-28 23:36 被阅读168次

Day 2 召唤linux

1、为啥又是思维导图,我没有做公众号运营商的潜质呀

2、还是想说下学习的感受,这次在登录服务器那一步浪费太多时间了,主要是自己意会错了登陆方式,应该是ssh root@IP地址,我一直用的是ssh “ID名称”@IP,还好后来的一瞬间反应过来了,所以改了很多次密码以及重启,耽误时间。以下是命令,中间有些是打错字的。
Last login: Tue Aug 28 23:03:01 on ttys000
liuludeMacBook-Pro:~ liuluroot@47.93.194.58 -bash: root@47.93.194.58: command not found liuludeMacBook-Pro:~ liulu ssh root@47.93.194.58
root@47.93.194.58's password:

Welcome to Alibaba Cloud Elastic Compute Service !

[root@liulu8887 ~]# pwd
/root
[root@liulu8887 ~]# mkdir rm_test
[root@liulu8887 ~]# cd rm_test
[root@liulu8887 rm_test]# touch doodle.txt
[root@liulu8887 rm_test]# mkdie huahua
-bash: mkdie: 未找到命令
[root@liulu8887 rm_test]# cd huahua
-bash: cd: huahua: 没有那个文件或目录
[root@liulu8887 rm_test]# mkdir huahua
[root@liulu8887 rm_test]# cd huahua
[root@liulu8887 huahua]# touch haha.txt
[root@liulu8887 huahua]# which doodle.txt
/usr/bin/which: no doodle.txt in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin)
[root@liulu8887 huahua]# pwd
/root/rm_test/huahua
[root@liulu8887 huahua]# cd ../
[root@liulu8887 rm_test]# cd ../
[root@liulu8887 ~]# pwd
/root
[root@liulu8887 ~]# cd rm_test
[root@liulu8887 rm_test]# rm doodle.txt
rm:是否删除普通空文件 "doodle.txt"?y
[root@liulu8887 rm_test]# ls
huahua
[root@liulu8887 rm_test]# rm -rf huahu
[root@liulu8887 rm_test]# ls
huahua
[root@liulu8887 rm_test]# rm -rf huahua
[root@liulu8887 rm_test]# ls
[root@liulu8887 rm_test]# cd ../
[root@liulu8887 ~]# rm rm_test
rm: 无法删除"rm_test": 是一个目录
[root@liulu8887 ~]# rm -rf rm_tesr
[root@liulu8887 ~]# ls
rm_test
[root@liulu8887 ~]# rm -rf rm_test
[root@liulu8887 ~]# ls
[root@liulu8887 ~]# mkdir test
[root@liulu8887 ~]# cd test
[root@liulu8887 test]# cd ../
[root@liulu8887 ~]# mkdir tmp
[root@liulu8887 ~]# cd tmp
[root@liulu8887 tmp]# cd ../
[root@liulu8887 ~]# rm -rf tmp
[root@liulu8887 ~]# ls
test
[root@liulu8887 ~]# rm -rf test
[root@liulu8887 ~]# ls
[root@liulu8887 ~]# touch me.txt
[root@liulu8887 ~]# ls
me.txt
[root@liulu8887 ~]# rm me.txt
rm:是否删除普通空文件 "me.txt"?y
[root@liulu8887 ~]# ls
[root@liulu8887 ~]# mkdir tmp
[root@liulu8887 ~]# cd tmp
[root@liulu8887 tmp]# vi hello_world.txt
[root@liulu8887 tmp]# cat hello_world.txt
I think practice is very important.
The 10 lines are too much.
[root@liulu8887 tmp]# head
^C
[root@liulu8887 tmp]# head hello_world.txt
I think practice is very important.
The 10 lines are too much.
[root@liulu8887 tmp]# head -1 hello_world.txt
I think practice is very important.
[root@liulu8887 tmp]# tail hello_world.txt
I think practice is very important.
The 10 lines are too much.
[root@liulu8887 tmp]# tail -1 hello_world.txt
The 10 lines are too much.
[root@liulu8887 tmp]# cp hello_world.txt new_file.txt
[root@liulu8887 tmp]# ls
hello_world.txt new_file.txt
[root@liulu8887 tmp]# mv new_file.txt ~
[root@liulu8887 tmp]# ls
hello_world.txt
[root@liulu8887 tmp]#

相关文章

  • 新故事

    2018-08-28

  • 晨雨随笔

    2018-08-28 下墨 2018-08-28 05:05 · 字数 183 · 阅读 0 · 日记本 昨天出去...

  • 2018-08-29

    2018-08-28 魏春香 2018-08-28 06:27 · 字数 386 · 阅读 0 · 日记本 201...

  • 2018-08-28

    戴师傅 2018-08-28 2018-08-28 20:32 打开App (稻盛哲学学习会)打卡第124天 姓名...

  • 【置顶】技术研发视频分享汇总

    Android 2018-08-29更新 Android架构技术 2018-08-28 更新 Android核心技...

  • 2018-08-29

    2018-08-28 张shilian 2018-08-29 22:28 · 字数 388 · 阅读 1 · 日记...

  • 2018-08-29

    2018-08-29 万千工品金秀 2018-08-28 22:22 · 字数 376 · 阅读 4 · 日记本 ...

  • 2018-08-28

    2018-08-28 万千工品金秀 2018-08-27 23:24 · 字数 286 · 阅读 8 · 日记本 ...

  • 建立家规的几个原则

    夕玹 2018-08-28 14:44 · 字数 1114 · 阅读 0 · 日记本 制定家规是进行家规教育...

  • 懂你 L4-U1-3-Listening-Harry's

    流利说 D62 2018-08-28 一、复习 Level4-Unit1-Part2*Learning- Voca...

网友评论

  • 小洁忘了怎么分身:你这个登录过程的代码应该放进代码框,第一天的格式要求里面就有。查一下代码框的语法哦。
  • 小洁忘了怎么分身:不明白,思维导图和公众号有什么关系????
  • 刘小泽:下次的作业把题目改过来,我们的教程中都有说明
    liulu8887:好的,这次修改了
  • 刘小泽:内容很充实,另外建议使用代码块写linux命令行的内容,这样你自己以后复习也很方便,思维导图可不是为了公众号运营学的哦,它可以帮助你快速整理知识点,掌握知识体系,幕布很简单上手的,可以再试试:fist:继续加油

本文标题:2018-08-28

本文链接:https://www.haomeiwen.com/subject/uzmcwftx.html