Linux first week study notes (11)

Source: Internet
Author: User
Tags system log

Linux first week study notes (one)


2.1 system directory structure (top)

2.2 System directory structure (bottom)

The following lessons begin to be explained commands and specific uses of Linux systems

(1) ls (list) command : used to list the system directory or file, you can also determine the properties of various files, you can view the current working directory contains a series of files and subdirectories.

[[email protected] ~]# LS/

Bin Boot Dev etc home lib lib64 media mnt opt proc root run sbin SRV sys tmp usr var

you can see the directory in the root directory after you type the command

Useradd command: Create a normal user

[Email protected] ~]# Useradd Daizhihong

[[email protected] ~]# LS/

Bin Boot Dev etc home lib lib64 media mnt opt proc root run sbin SRV sys tmp usr var

[Email protected] ~]# ls/home/

Daizhihong

[Email protected] ~]#

Tree Command: Displays the directory's structure

installing the Yum install–y tree

type:terr–l 1/

[Email protected] ~]# tree-l 1/

/

├── Bin--Usr/bin

├── Boot

├── Dev

├── etc

├── Home

├── Lib--usr/lib

├── lib64-usr/lib64

├── Media

├── mnt

├── opt

├── proc

├── Root

├── Run

├── sbin-Usr/sbin

├── SRV

├── Sys

├── tmp

├── usr

└── var

Directories, 0 files

[Email protected] ~]#

type:terr–l 2/(2 show level 2 catalog )

More content does not copy the displayed content

Man command: Displays a file's Help document

(2). Introduction to common catalogs

[[email protected] ~]# LS/

Bin Boot Dev etc home lib lib64 media mnt opt proc root run sbin SRV sys tmp usr var

1.       bin: included /bin / /sbin/  usr/bin/  usr/sbin/ ls, Tree, VI mkdir All common commands are in this directory

/sbin/: The commands under the root(super) User are used, the normal user does not have permission to use the command under this directory

/bin/: Normal User use

2. boot: The key file storage directory used by the system to boot

3. dve: The contents of the device files stored in the system, the hard disk, the CD-ROM, the mouse, the keyboard and other related files are stored in this directory .

4. etc: directory where the system configuration file is stored

5. Home: User's add-on directory, storing some of the user's additional directory files

6. Lib and lib64: Storage System Library files directory, many commands will depend on these library files

LDD Command: Query command depends on that library

[Email protected] ~]# Ldd/bin/ls

Linux-vdso.so.1 = (0x00007ffd2048e000)

Libselinux.so.1 =/lib64/libselinux.so.1 (0x00007ff393cb0000)

libcap.so.2 =/lib64/libcap.so.2 (0x00007ff393aab000)

Libacl.so.1 =/lib64/libacl.so.1 (0x00007ff3938a1000)

libc.so.6 =/lib64/libc.so.6 (0x00007ff3934de000)

Libpcre.so.1 =/lib64/libpcre.so.1 (0x00007ff39327c000)

libdl.so.2 =/lib64/libdl.so.2 (0x00007ff393077000)

/lib64/ld-linux-x86-64.so.2 (0x00005593899b9000)

Libattr.so.1 =/lib64/libattr.so.1 (0x00007ff392e72000)

libpthread.so.0 =/lib64/libpthread.so.0 (0x00007ff392c56000)

[Email protected] ~]#

7.       media : Is the storage directory of the media (default null), such as: Insert u After the disk will be u

8. mnt: Temporary mount directory (default null), can be temporarily used CD-ROM or newly added hard disk mounted in the mnt directory and then go to use

9. opt: A directory for the host to install additional software, such as: Install oracl database files

proc: System-initiated process directory with one directory per process

root: add directory for root super user

rnu: The directory where the temporary files are generated by the process, as long as they have been shut down or all files have disappeared since the start

srv: Some files produced by the Storage system service (default NULL)

. sys: Related files for the storage system kernel

tmp: System temporary root directory

(usr ): Some of the user's files store the shower gel, and the commands used by the user are in this directory .

. var: Directory of storage System log files

(3). Common directory:/usr/bin,/usr/sbin,/bin/,/sbin/,/etc/,/var/,/usr/locall/


Linux first week study notes (11)

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.