1. Configure a static Ubuntu IP address for the NICVi/etc/network/interfaces auto eth0 iface eth0 inet static address 192.168.0.5 gateway 192.168.0.254 NETMA SK 255.255.255.0 Dns-nameservers 223.6.6.62. Modify the download
Crontab in Linux is a tool for easy scheduled tasks. such as timed run script processing and so on. The crontab file contains a series of jobs and instructions sent to the cron daemon. Each user can have their own crontab file, while the operating
/root directory/bin storing the necessary commands/boot Store the kernel and the files needed to boot/dev Store device files/etc Store System configuration fileHome directory for normal user, user data is stored in its main directory/lib storing the
Recently encountered shell background boot process, input CTRL + Z is suspended problemDescribed below:1, existing two shell scripts, grandfather.sh and father.sh, two C + + programs Son1 and Son2, where Son1 is a normal program,son2 use Occi to
Processing large files with the strategy of first splitting and merging after LinuxFirst step: Split file splitSplit parameter:-A,--suffix-length=n specifies the suffix of the output file name, which defaults to 2-B,--bytes=size specifies the number
First, Linux view the current state of the firewall1) View firewall status:/etc/init.d/iptables statusTo temporarily turn off the firewall:/etc/init.d/iptables stopPrevent firewalls from starting at system startup/sbin/chkconfig--level 2345 iptables
OverviewBroadcast everywhere in life, like the usual in the street to sell goods merchants, in the promotion of products are often used a loudspeaker to yell: "10 dollars can not buy a loss, 10 dollars can not buy fooled, passed by never miss", this
Method 1:Synchronizing with a known time serverNtpdate time.nist.govWhere time.nist.gov is a time server.Delete local time and set time zone to ShanghaiRm-rf/etc/localtimeLn-s/usr/share/zoneinfo/asia/shanghai/etc/localtimeMethod 2:Linux Auto Sync
The main command-line tool for SYSTEMD is systemctl. Most Linux system administrators should already be familiar with system services and INIT system management, such as the use of Service,chkconfig and Telinit commands. SYSTEMD also accomplishes
# total number of cores = number of physical CPUs X number of cores per physical CPU# Total Logical CPUs = number of physical CPUs x number of cores per physical CPU X number of hyper-threads# View the number of physical CPUscat/proc/cpuinfo| grep
File Archive Compression:Compress, unzip commandCompact format: GZ, bz2, XZ, zip, ZCompression algorithm: Different algorithm, compression ratio will also be differentCompress:filename. ZUncompressgz:gzip. GZGzip/path/to/somefile: The original file
There are several commands for reading files in the Linux system: Head, tail, WC. Let's explain these commands.1. Head: Show Previous linesHead file: Display 1-10 rows (default is 10 rows)Head-n file: Display 1-20 rowsHead-n -20 file: Displays 1-120
How to create a threadThe POSIX line libraries is commonly used under Linux, also called Pthread. It is important to note that the return type of the thread function must be void*; When compiling the program, remember to link the Pthread Library,
Linux strings and linux strings
The strings command is used to search for printable strings in an object or binary file. A string is any sequence of four or more printable strings. It ends with a line break or an empty character.
Strings syntax
Linux Startup Manager-GRUB
[What is GRUB]Gnu grub ("GRUB" for short) is a startup Bootstrap program from the GNU project. GRUB is the implementation of multi-boot specifications. It allows you to have multiple operating systems in your computer and
Variable reference and command replacement in Linux
In bash script writing, we often need to reference variables and replace commands. In order to perform standard operations, we will briefly describe them.
Reference
A reference is to enclose a
Mysql automatic shell backup in linux
#! /Bin/bash # mysql backup script # backup principle: #1 # list all databases; #2 # list each table using each database, in addition to the specified ignored database; #3 # Use mysqldump to export each table to
Detailed steps for quick installation of Soft RAID on Linux
Physical Environment: Virtual Machine CentOS6.4Configuration: 8 GB memory, 2x2 core cpu, 3 virtual hard disks (sda, sdb, sdc, sdb, and sdc are identical) in the actual production
How to fix the failure of apt-get update to add a new CD-ROM
These days I am experiencing Elementary OS Freya, during which I encountered a very common update error: Failed to fetch cdrom Please use apt-cdrom to make this CD-ROM recognized by APT.
Average Unix load average load calculation method
Average load? Indicates the average number of processes in a period of time, that is, the system is busy. The average load and CPU usage are different, which can indicate the system's busy schedule.
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