The Linux device model looks at the device model chapter in LDD3, and it seems a bit confusing. Here we will take a holistic approach. This article summarizes some content from four aspects: 1. underlying data structure: kobject, kset.2.linux device
In linux, we sometimes need to set different IP addresses for a single NIC, which involves binding multiple IP addresses to a single NIC. This method can be used to easily bind multiple IP addresses to a single NIC. The environment used by the
& Hellip; # uname-a # View kernel/OS/CPU information # cat/proc/version # View kernel # cat/etc/issue # View OS version # head-n1/etc/issue # view the operating system version # cat/proc...
Some can also be used under freebsd...
# Uname-a # View
1. check the system load. if your computer is slow, you may want to check whether the workload is too large. In Linux, we generally use the uptime Command to view (w command and top command ). (They also apply to Apple's Mac computers .) You...
1.
Dump [-level #] [-acmMnqSuv] [-Afile] [-Brecords] [-bblocksize] parameter-S: the out-of-instance backup partition has multiple Shard spaces-u: record the DUMP running record to/etc/dumpdates-v: Display process-j: bz2 package-level0 ~ 9 #0 is
Src. rpm is the source package and can be used only after Compilation. after installation, it is the source code. After rebuild, the rpm package will be generated. Example 1: Download completed: [root @ localhostbeinan] # lsunrar *
Use description to create the static library. a file. C/C ++ is often used to develop programs. However, I rarely use ar commands in command lines, which are generally written in makefile and sometimes used in shell scripts. About library files,
When using the linux operating system, you will inevitably encounter some problems with the Software & quot; Shell & quot;. in this case, you need to use the powerful kill command in linux to end related processes. This is extremely easy in linux.
Dd backup mbrddif/dev/sdaof/backup/mbr. imgbs512count1 restore mbrddif/backup/mbr. imgof/dev/sdabs446count1 restore the partition table, skipping the primary boot record ddif/backup/mbr. imgof/dev/sdabs1count64...
Dd
Back up mbr
Dd if
Design a prompt menu for user selection, and perform operations and display based on user selection. Menu: 1. start vi editor 2. start x-windows and enter the GUI 3. start the background printing process. 4. exit ctrl + c #! /Bin/bash // indicates
(1) Linux distribution companies: redhatsuseredflag (2) storage media: the Iide interface is automatically recognized as/dev/hdaScsi interface and/dev/sdaStata (serial hard drive) the soft drive is automatically recognized as/dev/fd0Usb and
When I bought a wireless network card, I specifically found a network card with drivers for both Windows, linux, and mac platforms. However, when the wireless network card is installed in Ubuntu11.04, the code of the driver module cannot be compiled.
1. configure the SERVER address as 192.168.0.10, mount the image to/mnt, and install tftp, dhcp, and nfs services # rpm & amp; ndash; ivhdhcp-* # rpm & amp; ndash; ivhtftp-* # rpm & amp; ndash; ivhnfs-utilsportmap 3. configure to start dhcp SERVER 1
The date usage is quite flexible, with N flexible combinations. [Root @ MT ~] # Date & amp; #39; + % D % n % T & amp; #39; 08/11/1113:52:38 [root @ MT ~] # Date + % Y/% M/% d2011/53/11 [root @ MT ~] # Date & amp; #39; + % Y/% M/% d & amp; #39; 2011/5
Linux kernel is the core of the system, so upgrading the kernel is a basic skill of the Linux system administrator. so I shared an article on system O & M practices, of course, I have added some content to the source file, that is, I have added the
Method 1. add rwsingleinit/bin/bash to the kernel option at startup, and enter key B to enter the single-user mode passwd. enter the password ctrlaltdelete twice to restart. Then, enter passwd in RHEL5, the system did not respond ;...
Method 1. add
In linux, if you want to use the source code package for compilation and installation, you need to use the gcc tool. This tool is usually available by default when installing the system. Run rpm-qa | grepgcc to check whether gcc is installed.
Back up the code uploaded by svn in Ubuntu and name the backup file svn_backup + current time. dump file (for example, svn_backup20100525.dump) 1. write a script file (backup. sh) sudotouchbackup. sh create a script file and edit the file
Kernels2.6.16andnewerprovideamechanismtohavethekerneldropthepagecacheand/orinodeanddentrycachesoncommand, whichcanhelpfreeupalotofmemory ....
Kernels 2.6.16 and newer provide a mechanic to have the kernel drop the page cache and/or inode and dentry
In Linux, there are multiple ways to use the tape drive. the tar command is the most frequently used method. tar is mainly used to directly write data to the tape drive in a single-host environment. The device name of the tape drive in Linux
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