Linux Getting Started Basics command (v

Source: Internet
Author: User


lsblock: View hard disk partition status
After creating a hard drive, you can use echo '---' >/sys/class/scsi_host/host2/scan if you want to display it in addition to rebooting
cat/usr/share/dict/words: Dictionary (can be used as a script to crack the password)
Netstat-ntu: See who is connecting to a remote host
Two applications communicate on the same machine (two applications can be connected with just one socket file)
To create a socket file:

650) this.width=650; "Src=" http://upload-images.jianshu.io/upload_images/6144185-0fa2457472f6d5ff?imageMogr2/ auto-orient/strip%7cimageview2/2/w/1240 "style=" Border:0px;vertical-align:middle;height:auto; "alt=" 1240 "/>


Open a new window to see if there is a haha in/tmp and if it is successful

650) this.width=650; "Src=" http://upload-images.jianshu.io/upload_images/6144185-d641dfc7feaf9fec?imageMogr2/ auto-orient/strip%7cimageview2/2/w/1240 "style=" Border:0px;vertical-align:middle;height:auto; "alt=" 1240 "/>


Enter a white command to join the connection

650) this.width=650; "Src=" http://upload-images.jianshu.io/upload_images/6144185-1bad2c3dede58d94?imageMogr2/ auto-orient/strip%7cimageview2/2/w/1240 "style=" Border:0px;vertical-align:middle;height:auto; "alt=" 1240 "/>


Input information Enter both sides of the sync

650) this.width=650; "Src=" http://upload-images.jianshu.io/upload_images/6144185-6a1de2465bbce7fd?imageMogr2/ auto-orient/strip%7cimageview2/2/w/1240 "style=" Border:0px;vertical-align:middle;height:auto; "alt=" 1240 "/>

Picture description

Picture description

CD: Change Directory

650) this.width=650; "Src=" http://upload-images.jianshu.io/upload_images/6144185-af98e175f79d388b?imageMogr2/ auto-orient/strip%7cimageview2/2/w/1240 "style=" Border:0px;vertical-align:middle;height:auto; "alt=" 1240 "/>


DirName can take out the directory name:

650) this.width=650; "Src=" http://upload-images.jianshu.io/upload_images/6144185-1abadd573b14437b?imageMogr2/ auto-orient/strip%7cimageview2/2/w/1240 "style=" Border:0px;vertical-align:middle;height:auto; "alt=" 1240 "/>


BaseName can take the base name out:

650) this.width=650; "Src=" http://upload-images.jianshu.io/upload_images/6144185-e15d10c401ccb416?imageMogr2/ auto-orient/strip%7cimageview2/2/w/1240 "style=" Border:0px;vertical-align:middle;height:auto; "alt=" 1240 "/>

Picture description

Picture description

CD: The parent directory of the current directory
CD.: Current directory
CD ~: Return to your home directory
CD-: Return to the folder you just left
Variable oldpwd can remember the folder you just left:

650) this.width=650; "Src=" http://upload-images.jianshu.io/upload_images/6144185-a3b400470998228c?imageMogr2/ auto-orient/strip%7cimageview2/2/w/1240 "style=" Border:0px;vertical-align:middle;height:auto; "alt=" 1240 "/>


Back to Mage's home directory:

650) this.width=650; "Src=" http://upload-images.jianshu.io/upload_images/6144185-ecd24c5b50b6cc6f?imageMogr2/ auto-orient/strip%7cimageview2/2/w/1240 "style=" Border:0px;vertical-align:middle;height:auto; "alt=" 1240 "/>


ls command
Usage: LS [options] [File_or_dirs]
ls-a: contains hidden files
ls-a: not listed. and.
ls-l: Show additional information
ls-r: directory recursion passed
ls-ld: directory and Symbolic link information
ls-d: List The current directory, no meaning; Ls-l: Lists each property under the directory; LS-LD: Lists the details of the current directory < examples are as follows >

650) this.width=650; "Src=" http://upload-images.jianshu.io/upload_images/6144185-b5c66c58180bd282?imageMogr2/ auto-orient/strip%7cimageview2/2/w/1240 "style=" Border:0px;vertical-align:middle;height:auto; "alt=" 1240 "/>


ls-1: File Branch Display

650) this.width=650; "Src=" http://upload-images.jianshu.io/upload_images/6144185-b11388c76673390b?imageMogr2/ auto-orient/strip%7cimageview2/2/w/1240 "style=" Border:0px;vertical-align:middle;height:auto; "alt=" 1240 "/>


ls-s: sort from large to small
ls-r: reverse order
Span style= "font-weight:700;" >ls-t: Sort by Mtime (modified)
ls-u: with-t option to show incorporated Atime sort from new to old
ls-u: Display in directory order
access: Access Time
modify: Changes in file content time changed
change: Modifying metadata time changes the
file wildcard:

  • : Match another or more characters
    ? : Matches any single character
    ~: Current User home Directory
    ~WJ: User WJ Home Directory
    ~+: Current Working directory
    ~-: Previous working directory
    "0-9": Match number Range
    "A-Z]: Letters
    "A-Z": Letters
    "Wang": matches any one of the characters in the list
    "^wang" matches all unexpected characters in the list
    Show hidden files only:

    650) this.width=650; "Src=" http://upload-images.jianshu.io/upload_images/6144185-3247c9e900a3067d?imageMogr2/ auto-orient/strip%7cimageview2/2/w/1240 "style=" Border:0px;vertical-align:middle;height:auto; "alt=" 1240 "/>


    Or:

    650) this.width=650; "Src=" http://upload-images.jianshu.io/upload_images/6144185-02041bce14e729b0?imageMogr2/ auto-orient/strip%7cimageview2/2/w/1240 "style=" Border:0px;vertical-align:middle;height:auto; "alt=" 1240 "/>


    Again or:

    650) this.width=650; "Src=" http://upload-images.jianshu.io/upload_images/6144185-107d69713bc4a520?imageMogr2/ auto-orient/strip%7cimageview2/2/w/1240 "style=" Border:0px;vertical-align:middle;height:auto; "alt=" 1240 "/>

    Picture description

    Picture description

Again or:

650) this.width=650; "Src=" http://upload-images.jianshu.io/upload_images/6144185-4395304b9cb33be5?imageMogr2/ auto-orient/strip%7cimageview2/2/w/1240 "style=" Border:0px;vertical-align:middle;height:auto; "alt=" 1240 "/>


Again or:

650) this.width=650; "Src=" http://upload-images.jianshu.io/upload_images/6144185-07d17d6613e261f1?imageMogr2/ auto-orient/strip%7cimageview2/2/w/1240 "style=" Border:0px;vertical-align:middle;height:auto; "alt=" 1240 "/>

650) this.width=650; "Src=" http://upload-images.jianshu.io/upload_images/6144185-13b5d966f3fd8648?imageMogr2/ auto-orient/strip%7cimageview2/2/w/1240 "style=" Border:0px;vertical-align:middle;height:auto; "alt=" 1240 "/>


This article is from the "12922045" blog, please be sure to keep this source http://12932045.blog.51cto.com/12922045/1930725

Linux Getting Started Basics command (v

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.