In the previous article, we talked about the basic composition, basic concepts, and basic principles of the disk.So today's article, let's look at how these devices are represented in the Linux system,such as how different types of hard disks are
Badblocks: Check for damaged chunks in the disk device-B: Specify the chunk size of the disk, in bytes-c: Check several chunks at a time-I: The file is always read by the known corrupted chunks, and the check ignores these chunks-o: The result of
Types of variables for LinuxAccording to the lifetime of the variables, the Linux variables can be divided into two categories:1 Permanent: The configuration file needs to be modified, and the variable will take effect permanently.2 Temporary: With
DF View Disk partition usageUsage: DF [options] ... [File] ...Show information about the file system in which each file resides,or all file systems by default.The required parameters are available for both long and long options.-A,--all include
The front says "disk" is located in the entire computer architecture, whereAnd also learned the "hard disk" and "Bus" Connection interface,are divided into many types, specifically "serial" and "parallel" two categories.In general, serial speed is
1. See if Python is already installedCentOS 7.2 installs python2.7.5 by default because some commands use it, like Yum, which uses python2.7.5.Use the PYTHON-V command to see if Python is installedThen use the command which Python to see the
View Nginx version in centos
How to view the Nginx version information, linux is indeed a bit confusing for users who are used to windows, but after getting used to it, you will surely fall in love with it. If you don't talk much about it, simply
At command in CentOSAt command: Schedule a task to execute a job at a specific time.Format: at + timeAt time // The scheduled task Start TimeAt> date>/root/jintian.txt // date: Execute the date command when the system plans to start the
How to view soft and hard raid information in CentOSSoftware raid: You can only view cat/proc/mdstat on the Linux system to view raid level, status, and other information. Hardware raid: the best solution is to use the installed raid vendor's
Linux record-process-related learning
View process commands
Ps
-Aux commonly used combination commands, and Shall | grep queries related process information
-L only view processes related to you
In details, STAT indicates the status of the
Install epel source in centos
EPEL is a software source of yum. It contains software that is not available in many basic sources. After EPEL is installed, the yum software source is extended.
Environment: centos6.5
Installation steps:
Install
Modify the NIC name in CentOS7
The traditional naming methods for Nic devices in Linux are eth0, eth1, and eth2. CentOS7 provides different naming rules, which are allocated by default based on the firmware, topology, and location information. The
Search for a string in all files in linuxCheck whether all files in the directory contain a certain stringFind. | xargs grep-ri "IBM"Check whether all files in the directory contain a certain string and print only the file name.
Find. | xargs
Linux commands recorded by new users
1, pwd: locate the current folder
2. cd: Convert to file
3. mv: Move a file
4 cp; copy files
5 vim: create a file
6 vim. Create a hidden file
7 cd .. back to the upper-level directory
8. Create a
Use of the crontab command for CentOS scheduled tasksIntroduction
Crond is a daemon in linux that is used to periodically execute a task or wait for processing some events. It is similar to a scheduled task in windows. After the operating system is
Memory unit conversion in CentOS1. memory unit conversion
Meaning of Byte bytes
B is the basic unit of computer storage (in bytes );1 English character is 1 byte, that is, 1B;1 Chinese character is 2 characters, that is,
CentOS command -- route
1. Command Format:
route [-f] [-p] [Command [Destination] [mask Netmask] [Gateway] [metric Metric]] [if Interface]]
2. command functions:
The Route command is used to operate the kernel-Based ip Route table. It is mainly
CentOS deletes Multiple folders under a folder.
Delete Multiple folders under a folder in linux
Run the rm command to delete Linux Files. \ rm is not displayed for deletion.1. if you delete multiple files and folders in the current directory
You
Centos7 adds root permissions to users
1. useradd sha
Passwd sha User Creation and password
2. 1. Grant sha root permissions to gpasswd-a sha wheel
Ii. vi/etc/sudoers
Allow root to run any commands anywhereRoot ALL = (ALL) ALL # original rowSha
Private_data, fileprivate_data in file
This is a core data structure between the VFS File System Framework and the underlying implementations of different file/file systems in Linux. Although it is only a pointer, a pointer can solve all problems,
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