linux--Common Command Usage Introduction

Source: Internet
Author: User


1, LS/: This command is to view the root directory of Linux, which have all the files of Linux. --liunx Concept: All documents

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/82/1B/wKioL1dL5vmgp1UbAAAuHRKMTs0252.jpg-wh_500x0-wm_3 -wmp_4-s_2408072558.jpg "title=" qq20160530150342.jpg "width=" height= "0" border= "0" hspace= "0" vspace= "WIDTH:500PX;HEIGHT:53PX;" alt= "Wkiol1dl5vmgp1ubaaauhrkmts0252.jpg-wh_50"/>

These are the "ls/" out of the directory below will be introduced

/dev: This is all the hardware device files. ① block device: means random access, does not matter successively, such as hard disk. ② character devices: Linear access, such as keyboards.

/lost+found: This directory is usually the computer suddenly power down or suddenly crash, the computer back to temporarily save the unsaved files under this directory.

/bin: executable file, all commands of the user.

/sbin: executables, administration commands

Both/bin and/sbin are commands before the computer starts.

/sys: pseudo-system files, mapping of hardware device-related properties.

/boot: launches the related file.

/etc: the configuration file storage location.

/opt: where the third-party software or program is stored.

/tmp: the location of the temporary file store, each user can store files, create files, but can only delete files created by this user,

/ Home directory. Each user has their own home directory. Generally, the name of the user name as the home directory.

/lib:library files and kernel files. ① library files are divided into static libraries and dynamic libraries, static libraries: The program and library files are together, and when the migration is gone, the program depends on the library file or can run. ② Dynamic Library: Shared libraries, many programs common one library file, libraries and programs are not together, when the program is migrated, the program cannot run alone.

/misc: Miscellaneous

2. View commands

Linux is divided into internal commands and external commands.

    • Type LS to see what the "ls" command is

    • Directory Management:

LS, CD, pwd, mkdir, rmdir, tree

    • File Management:

Touch, stat, file, RM, CP, MV, Nano

    • Date Time:

Date, clock, Hwclock, Cal

    • To view text:

Cat, TAC, more, less, head, tail

Tail-f: Check the tail of the file, you can monitor the file dynamics;

You can use man touch to view the options that are unclear for the above commands.



If there are errors in reading can be described in the comments below, verification must be modified, thank you.


This article is from the Computer knowledge blog, so be sure to keep this source http://huagongxiaodi.blog.51cto.com/10605602/1784475

linux--Common Command Usage Introduction

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.