Linux System Fundamentals (ii)

Source: Internet
Author: User

Linux System Fundamentals (ii)


First, the Linux system structure

1.Linux system structure is inverted tree type

2.

/bin # #二进制可执行文件也就是系统命令

/sbin # #系统管理命令存放位置

/ Boot # #启动分区, responsible for system startup

/ Dev # #设备管理文件

/ etc # #大多数系统管理文件

/Home # #普通用户的家目录

/lib # #32位系统库文件存放位置

/lib64 # #64位系统库文件存放位置

/media # #系统临时设备挂载点

/mnt # #系统临时设备挂载点

/run # #系统临时设备挂载点

/opt # #第三方软件安装位置

/proc # #系统信息

/root # #超级用户家目录

/srv,/var # #系统数据

/sys # #系统管理, mostly about the kernel

/ tmp # #系统临时文件存放位置

/ usr # #系统用户相关信息数据及用户自定义软件存放位置


Second, the System file path


Absolute path

file in the real location of the system, the file name begins with "/"


Relative path

The file relative to the current location of the name of a shorthand, the name does not start with /, and the name will automatically add the value of the PWD display

pwd # #显示但前在系统的位置


ls List # #列出目标文件, or list content in a directory

-A # #列出所有

- L # #列出文件属性

- S # #列出文件大小

- S # #按照文件大小排序

- R # #第归列出

- D # #指定目录本身



CD chage Directory # #进入目标目录中

~ # #回到当前用户家目录

~username # #进入到指定用户家目录

.. # #进入当前目录的上一级

-         # #进入之前所在系统目录


Touch # #新建文件


Mkdir

Make directory # #建立目录

- P # #第归建立目录


CP is copied to the file destination

- R # #第归复制, using and copying directories


MV is moved file Destination

mv Old name New name

MV Test/file. # #把test/file move to the current


rm-f #强制删除文件

rm-fr #强制删除目录


Vim filename

Press The I key to enter insert mode

Press ESC to browse mode when the file is written

: Wq Save Exit


three, wildcard characters (regular expression)

*       #匹配0-Any character

? #匹配任意单个字符

~ #匹配当前用户家目录

~user #匹配到user的家目录

~+ #当前目录

~- #当前目录之前所在的

[ABC] #有a或者有b或者有c

[!ABC] #除了含有a或者b或者c

[^ABC] #除了含有a或者b或者c

[[: Alpha:]] # #单个字母

[[: Lower:]] # #单个小写字母

[[: Upper:]] # #单个大写字母

[[: Alnum:]] # #单个字母或数字

[[:p UNCT:]] # #单个符号, with no numbers, letters and spaces

[[:d igit:]] # #数字

[[: Space:]] # #单个空格


This article is from the "12151283" blog, please be sure to keep this source http://12161283.blog.51cto.com/12151283/1861192

Linux System Fundamentals (ii)

Related Article

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.