Linux automatically switches IP addresses using shell programming

Linux uses shell programming to automatically switch to the IP address Ubuntu system. Because the IP addresses used in commuting are different, it is very troublesome to manually modify each time. Www.2cto.com made a batch processing by referring to

Add and delete swap temporary files

Add and delete swap temporary files. just solved the swap depletion problem. Temporarily added a swap file creation method dd if =/dev/zero of =/tmp/swap_temp bs = 1024 count = 500000 create a M file www.2cto.comThen activate the swap file:

Ubuntu becomes an English language

Sudo nano/var/lib/locales/supported. d/local change to en_US.UTF-8 UTF-8 sudo vim/etc/default/locale change LANG = "zh_CN.UTF-8" LANGUAGE = "zh_CN: zh" to: LANG = "en_US.UTF-8" LANGUAGE = "en_US: after sudo locale-gen www.2cto.com reboot restarts

Simple Linux Command Line notes: write/wall

Write userwall write is used to send information to a user who has logged on to the system, wall can send information to all users logging on to the system. The user parameter www.2cto.com is the user example of the user who needs to send the

Adduser creation in ubuntu

The problem of creating a new user by adduser under ubuntu was encountered yesterday. I used the user's ub and created a new user by using useradd, however, when switching to this user, the terminal does not display as usual [user @ hostname ~] Only

Linux samba configuration problems (unknown user name or Password error)

Linux samba configuration problems (unknown user name or Password error) I will not talk about samba configuration here. baidu and google will check a lot of problems that may occur during the configuration process, after configuring the linux samba

Generation and prevention of zombie processes in linux

The creation and prevention of Zombie processes in linux when a process stops its own life by calling the exit command, it is not actually destroyed, but left a dead process (Zombie) (The system calls exit to exit the process, but it is only limited

Keep CT command in shell

The trusted CT command in shell often needs to jump to different machines, but it is very complicated to input the password every time. Naturally, I thought of the trusted CT command in shell. This command is just a little bit of knowledge, probably

Adjust the alert sending interval of nagios

Every day, due to the same problem, N + alerts are triggered, which wastes Short-Message resources. Therefore, according to the information on the InternetThe alarm frequency is changed by adding the escalations. cfg configuration file

Configuration of a listener in linux

In linux, The Listener Configuration uses the netca command to call the graphical interface for configuration [oracle @ localhost bin] $ netca www.2cto.com Oracle Net Services configuration: Xlib: connection to ": 0.0" refused by serverXlib: no

Xmind workspace conflicts in ubuntu

Recently, xmind workspace conflicts in ubuntu were discovered. After xmind is used in ubuntu, the eclipse perspective is changed to xmind. This made me very depressed. I manually restored the eclipse perspective every time. Www.2cto.com studied it

Iptables getting started

Iptables Entry 1. iptables entry there are many ways for hackers to intrude into computers today, among which port-based intrusions are common. In particular, it is the simplest and most commonly used method to defend against hacker intrusions to

How to execute specific tasks at specific times in Linux

In Linux, how does one execute the program www.2cto.com atd service at required for a specific task at a specific time? 1. start atd # service atd restartatd stop/waitingatd start/running, process 11031 must be executed under root, otherwise the

Rhel5 detection software construction

Building awstats (linux5.4)Attach a cdMount/dev/cdrom/mediaCd/media/ServerRpm-ivh php-pdo-[tab] php-mysql-[tab] php-gd-[tab] php-mbstring-[tab] Modify ftpVi/etc/vsftpd. confAdd chroot_local_user = YESService vsftpd startChkconfig vsftpd onCreate

Common rpm commands

Common rpm commands1. Install a package# Rpm-ivh2. Upgrade a package# Rpm-Uvh3. Remove a package# Rpm-e4. installation parameters-- Force installation even if it overwrites files belonging to other packages-- Nodeps if the installation of this RPM

Basic network configuration in linux

First, use the command to modify the changes (the changes take effect immediately and the restart fails)# Ifconfig eth0 192.168.0.1 netmask 255.255.255.0 upNote:Eth0 is the first Nic, and the others are eth1, eth *192.168.0.1 is the IP address

Change the root password of debian

1. On the Grub boot loader menu, select the entry you want to enter and type "e" to enter the editing mode.2. In the second line (similar to kernel/vmlinuz-2.6.15 ro root =/dev/hda2), Type e to enter edit mode;3. Add "init =/bin/bash" at the end of

Grep search file content

(1) Find the findcontents in the file content of all files in the current directory (case insensitive, listing the row of the file where findcontents is located) -- the number of files and directories in the current directory is relatively small. If

Linux Sed command Application

1. (including the character '22') insert the text koko = "gggggggggggggg" on the current line"Sed-I '/22/I \ koko = "gggggggggggg"'/root/soft/iptables 2. Insert the text koko = "gggggggggggg" under the current line (containing the character '22"Sed-

Linux automatic backup script

#! /Bin/shBackdir = "/backup/mysql_date"Dirname = "$ (date + % Y % m % d )"Dirname_y = "$ (date + % Y )"Dirname_m = "$ (date + % m )"Targz = "_ 192.168.1.6"DIR = "192.168.1.6"For dir in $ DIRDoMkdir-p $ backdir/$ dirname_y/$ dirname_m/$ dirMkdir-p/$

Total Pages: 5467 1 .... 4726 4727 4728 4729 4730 .... 5467 Go to: GO

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.