Giter Club home page Giter Club logo

linux's Introduction

linux

linux learning

Lunix基本命令

基本功能

  1. pwd [^ print working directory,展现你目前在哪里]

  2. / [^ 根目录]

  3. ls[^ list,将当前环境的文件像列表一样列出来]

​ linux里面,所有皆为文件

  1. cd [^ change directory,改变目录,将自己改变到想去往的路径]

example:cd home [^ 进入根目录]

此时写入pwd,结果是/home

  1. cd ..[^朓回到上一级目录]

拓展功能

  1. ls / [^ls命令后加一个空格,加上你想查询的路径,直接列出所需路径里的文件,自己却保持在目录里]
*目前处于根目录
cd ..
ls
cd home 

*利用ls/
ls /
  1. cd/[^ 直接进入目录中的目录]

     *目前处于home目录下
       cd ..      *回到根目录
       cd user   *进入user目录
       cd bin    *进入到user目录里的bin目录
    
     *利用cd /
       cd /user/bin  绝对路径的写法
       cd ./../user/bin 相对路径的写法 .是当前目录 ..是上一级目录
       cd ../user/bin  这样写也可以,系统自动识别了你在当前目录,故./可以不写
    

ls的进阶

  1. ls -l / [^ -l指long,以长列表的形式展示信息,,以字节的方式展现]

  2. ls -h /[^ -h指human,以人类可读的形式展示]

如何自学命令

  1. 命令 --help [^ 看命令有啥用]

  2. man 命令 [^ man手册,看命令有啥用,按Q退出,enter翻页]

192.168.1.109

linux's People

Contributors

dengyij avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.