首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

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$ ```

02
  • 您找到你想要的搜索结果了吗?
    是的
    没有找到

    14.块设备驱动

    1、字符设备驱动:   当我们的应用层读写(read()/write())字符设备驱动时,是按字节/字符来读写数据的,期间没有任何缓存区,因为数据量小,不能随机读取数据,例如:按键、LED、鼠标、键盘等 2、块设备:   块设备是i/o设备中的一类, 当我们的应用层对该设备读写时,是按扇区大小来读写数据的,若读写的数据小于扇区的大小,就会需要缓存区, 可以随机读写设备的任意位置处的数据,例如 普通文件(.txt,.c等),硬盘,U盘,SD卡。 3、块设备结构: 段(Segments):由若干个块组成。是Linux内存管理机制中一个内存页或者内存页的一部分。 块 (Blocks): 由Linux制定对内核或文件系统等数据处理的基本单位。通常由1个或多个扇区组成。(对Linux操作系统而言) 扇区(Sectors):块设备的基本单位。通常在512字节到32768字节之间,默认512字节 应用程序进行文件的读写,通过文件系统将文件的读写转换为块设备驱动操作硬件。

    03

    一些免费的学习资源 原

    HTML5 Canvas编程:http://blog.csdn.net/column/details/canvas-programming.html GTK编程基础学习:http://blog.csdn.net/column/details/sjin-gtk.html Git学习系列:http://blog.csdn.net/column/details/git-lover.html git学习笔记:http://blog.csdn.net/column/details/gitnote.html Git深入体验:http://blog.csdn.net/column/details/gitexperience.html Git菜鸟变大神:http://blog.csdn.net/column/details/lilongsheng-git.html GitHub 漫游指南:http://github.phodal.com/ 全栈增长工程师指南:http://growth.phodal.com/ 全栈增长工程师实战:http://growth-in-action.phodal.com/ Phodal’s Idea实战指南:http://ideabook.phodal.com/ JavaScript 闯关记:https://github.com/stone0090/javascript-lessons css知多少:http://www.cnblogs.com/wangfupeng1988/p/4325007.html Docker入门教程:http://dockone.io/article/111 HTTP cookies 详解:http://bubkoo.com/2014/04/21/http-cookies-explained/ HTTP 接口设计指北:https://github.com/bolasblack/http-api-guide http2讲解:https://bagder.gitbooks.io/http2-explained/content/zh/ innodb源码分析:http://blog.csdn.net/column/details/innodb-zerok.html JavaScript Promise迷你书(中文版):http://liubin.org/promises-book/ JavaScript:http://blog.csdn.net/column/details/js-lyg.html JavaScript权威指南:http://blog.csdn.net/column/details/webcode.html JavaScript设计模式:http://blog.csdn.net/column/details/design-pattern-of-js.html JavaScript设计模式浅谈:http://blog.csdn.net/column/details/js-patterns.html LGCB:http://happypeter.github.io/LGCB/ linux基础与shell编程:http://blog.csdn.net/column/details/linux-world.html Linux内核读书笔记:http://blog.csdn.net/column/details/linuxnotes.html Linux入门及进阶:http://blog.csdn.net/column/details/dxmy-linux.html Nginx开发:http://blog.csdn.net/column/details/sknginx.html PHP程序员技术精粹:http://blog.csdn.net/column/details/phpjingcui.html PHP入门到精通:http://blog.csdn.net/column/details/phpspecialcolumn.html python3入门学习:http://blog.csdn.net/column/details/python-spider.html Python大法好:http://blog.csdn.net/column/details/python-master.html Python入门学习:http://blog.csdn.net/column/details/enjoypython.html Python学习笔记:http://blog.csdn.net/column/details/python-notes.html scala 从入门到入门+:https://segmentfault.com

    04
    领券