Linux optimization Supplement-directory structure

Source: Internet
Author: User
Tags i18n

1th Chapter Linuxdisplay Chinese garbled how to solve and troubleshoot

1.1garbled Reason

Linux the character set of the system differs from the remote Connection tool character set

1.2Troubleshooting1.2.1viewing the system's character set

#echo $LANG

1.2.2CheckXshellthe character set used

1.3  How to resolve (How to modifyLinuxCharacter Set)1.3.1ModifyXshellCharacter Set

1.3.2modifying the system character set

Temporarily modify character set, expire after login

Workaround: Export. UTF-8

Permanent modification, invalid after re-login

Workaround: Modify the character set inside the/etc/sysconfig/i18n

Lang= "en_US. UTF-8 "

Effective source/etc/sysconfig/i18n

Check

Echo $LANG and view character set files

2nd ChapterOld boy Education-linuxView Chinese garbled resolution process2.1 Linuxdirectory Structure-features

All Documents

2.1.1upside down tree-like structureeverything starts from the root2.1.2Linuxeach directory can be mounted on a different device (disk). Windowsnot easy to do.

/data/bigpian/

2.1.3 LinuxAll devices (disk CD-ROM) is not mounted and cannot be used 3rd ChapterExperiment:

Linux all of the following devices are not directly used by default, to create access to the device, import = = = mount point = = Directory (already exists)

mount/dev/cdrom/mnt/

3.1Disc Insertion System

3.2EnterLinuxDisc File

[Email protected]/oldboy]# ls-l/dev/cdrom

lrwxrwxrwx. 1 root root 3 Jul 14:32/dev/cdrom-sr0

3.3Create an entry for the disc (already present)

[Email protected]/oldboy]# mount/dev/cdrom/mnt/

Mount:block Device/dev/sr0 is write-protected, mounting read-only

[Email protected]/oldboy]# ls-l/mnt/

[Email protected]/oldboy]# ls/mnt/packages/

1th HDD Storage System data/

2nd HDD holds user's own data/usr

[Email protected]/oldboy]# ls-ld/tmp//usr/tmp//bin//usr/bin//sbin//usr/sbin/

Dr-xr-xr-x. 2 root root 4096 Jul 19:43/bin/

Dr-xr-xr-x. 2 root root 12288 Jul 19:43/sbin/

DRWXRWXRWT. 4 root root 4096 Jul 21:42/tmp/

Dr-xr-xr-x. 2 root root 24576 Jul 19:43/usr/bin/

Dr-xr-xr-x. 2 root root 12288 Jul 19:43/usr/sbin/

DRWXRWXRWT. 2 root root 4096 Jul 18:25/usr/tmp/

4th Chapter FHSDirectory hierarchy Standard (/and the/usreach directory function)

4.1 #directory structure under root

1./etc configuration files for the system

2./usr User/unix Software resource User Software

3./var mation) Information

IT Information Technology Information Technology

processor:0 The first few core

Physical id:0 first few CPUs (physical)

[[email protected] ~]# grep processor/proc/cpuinfo

processor:0

Processor:1

Processor:2

Processor:3

[[email protected] ~]# grep physical/proc/cpuinfo

Physical id:0

Physical id:0

Physical Id:1

Physical Id:1

[Email protected] ~]# lscpu

CPU (s): 4 Altogether 4 cores

On-line CPU (s) list:0-3

Socket (s): 2 2 Road

Model Name:intel (R) Core (TM) i5-4440s CPU @ 2.80GHz

4.2/proc/meminfo Memory InfoMemory Information

[Email protected] ~]# cat/proc/meminfo

memtotal:1906256 KB

memfree:1722092 KB

buffers:25796 KB

cached:52816 KB

[Email protected] ~]# free-h

Total used free shared buffers Cached

mem:1.8g 180M 1.6G 224K 25M 51M

-/+ buffers/cache:103m 1.7G

swap:767m 0B 767M

4.3/proc/mountsMount Information

[Email protected] ~]# column-t/proc/mounts

rootfs         /                          rootfs       rw                                                     0  0

proc           /proc                      proc         Rw,relatime                                            0  0

Sysfs/sys Sysfs rw,relatime 0 0

Devtmpfs/dev Devtmpfs rw,relatime,size=938496k,nr_inodes=234624,mode=755 0 0

Devpts/dev/pts devpts rw,relatime,gid=5,mode=620,ptmxmode=000 0 0

Tmpfs/dev/shm Tmpfs rw,relatime 0 0

/DEV/SDA3/EXT4 rw,relatime,barrier=1,data=ordered 0 0

/proc/bus/usb/proc/bus/usb Usbfs rw,relatime 0 0

/dev/sda1/boot ext4 rw,relatime,barrier=1,data=ordered 0 0

None/proc/sys/fs/binfmt_misc Binfmt_misc rw,relatime 0 0


Linux optimization Supplement-directory structure

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.