zoukankan      html  css  js  c++  java
  • Linux与DOS的常用命令比较

    命令类型          DOS          Linux        DOS示例                    Linux示例

    复制文件            copy          cp         copy c: eacher1file1 d: mp      cp /home/teacher1/file1 /tmp

    转移文件          move          mv           move file1.doc c: eacher1         mv file1.doc  /home/teacher

    删除文件          del           rm          del c: eacher1example.doc       rm /home/teacher1/example.doc

    编译文件          edit            gedit            edit c:example.doc              gedit /home/example.doc

    比较文件内容        fc             diff           fc  file1 file2               diff file1  file2

    在文件中查找字符串       find             grep         find "username"  file1.doc             grep 'passwd' file1.doc

    格式化软盘          format a:          mkfs         format a:                     mkfs /dev/sda 或 mkfs /dev/fd0

    列举文件          dir           ls            dir                     ls

    清除屏幕          cls           clear         cls                     clear

    退出shell             exit            exit          exit                     exit

    显示或设置日期       date             date         date                   date

    显示命令帮助        /?                 man         command1  /?              man command1

    创建目录          mkdir 或 md      mkdir         mkdir directory1             mkdir directory1

    查看文件          more          less          more file1.txt               less file1.txt

    显示时间          time            date          time                   date

    显示内存情况        mem             free          mem                   free

    重新命名文件        ren             mv          ren file1.txt  file2.txt             mv file1.txt file2.txt

    显示当前位置            chdir            pwd         chdir                     pwd

    Microsoft Windows [版本 6.1.7601]
    版权所有 (c) 2009 Microsoft Corporation。保留所有权利。

    C:UsersAdministrator>chdir
    C:UsersAdministrator

    C:UsersAdministrator>

  • 相关阅读:
    GPUImage滤镜效果翻译
    c3p0配置
    Android webview Mixed Content无法显示图片解决
    java连接jdbc Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by defa
    Castle DynamicProxy creation出现COMException(0x800703fa)错误的解决方案
    magent实现memcached集群的一个问题
    近期Windows 10 RedStone 2 Insider版本安装进度停留在百分之23、24解决方案
    XPS 15 9530使用Windows10频繁发生Intel HD Graphics 4600驱动奔溃的一种解决方法
    Visual Studio 2015开发Android App启动调试始终无法完成应用部署的解决方案
    Visual Studio 2015中创建C#的Android项目提示"Value cannot be null"的解决方法
  • 原文地址:https://www.cnblogs.com/zlslch/p/5982474.html
Copyright © 2011-2022 走看看