Linux Essentials Optimization Supplement

Source: Internet
Author: User

1.1 Garbled Reason:
? The character set of Linux differs from the character set of a remote connection
1.2 Troubleshooting
?
1.3 How to fix (how to modify the Linux character set)

? View the garbled structure map URL; https://www.processon.com/view/link/59e978b0e4b0c86d400de71c
2nd Chapter Linux Directory Structure-Features
2.1 Directory structure features
? Upside down tree-like structure everything starts from the root.
? Linux each directory can mount a different device (disk)
? All Linux devices (disk discs) are not mounted and cannot be used
? Linux below all the devices are not directly used by default, to create a portal to the device, import = = = mount point = = Directory (already exists)
? mount/dev/cdrom/mnt/
?
2.2 Enter Command/dev/cdrom "Insert Disc"
[Email protected] ~]#/dev/cdrom
-bash:/dev/cdrom:permission denied
2.3 Query Command Ls–l/dev/cdrom "Enter Linux Disc file"
[Email protected] ~]# ls-l/dev/cdrom
lrwxrwxrwx. 1 root root 3 Jul 16:31/dev/cdrom-sr0
2.4 Mount Mount Command "Create an entry for the disc (already exists)"
[Email protected] ~]# mount/dev/cdrom/mnt/
Mount:block Device/dev/sr0 is write-protected, mounting read-only
Mount:/dev/sr0 already mounted or/mnt/busy
Mount:according to mTAB,/dev/sr0 is already mounted on/mnt
2.4.1 about the ls/mnt/packages/command
2.5 Development of the catalogue
? 1th HDD Storage System data/
? 2nd HDD holds user's own data/usr
?
2.6 FHS Directory hierarchy standard (/and/usr per directory role)
[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/
3rd Chapter root under the directory structure

? View URL: Https://www.processon.com/view/link/5a6a9944e4b0a92b467f03b0
4th Chapter/etc/usr/var/proc Introduction to the root of the
4.1/ Introduction to Proc
4.1.1 Viewing CPU information
? command:/proc/cpuinfo
? lscpu
4.1.2 Querying memory Information
/proc/meminfo Memory info Information
[[ Email protected] ~]# cat/proc/meminfo
memtotal:1906256 KB
memfree:1722092 KB
buffers:25796 KB
cached:52816 KB

[[email protected] ~]# FREE–H display memory information human identifiable
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.1.3 Viewing mount 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.
Cat/proc/mounts This can also be queried

Linux Essentials Optimization Supplement

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.