Example of bash read and write files in Linux

#!/bin/bash#读取文件内容到变量中 Filecontent= ' Cat ~/file.txt ' is the TAB key on thatEcho $filecontent#取得文件内容的每一行 For Fileline in $filecontentTodoEcho $filelineDone#写内容到文件中 echo $filecontent >> test.txt Bash built-in UNIX command .: Executes the

Solve Linux compile kernel nic driver problem

bz2

As a result of the project, the need to compile the kernel, modify the TUN source support sharing mode, compile the kernel encountered the network card driver lost problem, nonsense, said directly to solve the problem, I understand the bottom of the

Linux Configuration PXE server unattended installation example

Part2: Unattended installation of the PXE service configuration [Root@pxe ~]# yum groupinstall "X window System"[Root@pxe ~]# Yum Groupinstall Desktop[Root@pxe ~]# Yum Install System-config-kickstart[Root@pxe ~]# reboot Ks.cfg: [Root@pxe ~]#

Configure PROFTPD in Linux system to build FTP server steps

The actual use of FTP tools, need to do in the Linux configuration, the original use of VSFTPD, the results of a variety of problems, finally selected PROFTPD This tool, configuration is directly available. All of the following actions need to be

Linux compile and install PHP7 parameters

fpm

Today in a new Tencent cloud Server installed PHP7, now PHP7 's stable version has been removed, the expansion of MySQL has been replaced, you can use mysqli or pdo-mysql to replace. Below I will compile and install the Linux PHP7 to do the

Linux screen to solve the problem of LNMP when the VPS is installed

vps

When the installation of LNMP through Putty or SECURECRT, the network suddenly dropped or accidentally putty turned off, and so on, causing LNMP installation process was interrupted, in fact, to prevent this phenomenon is very simple, as long as the

Floating-point verification in Linux

/> Cat > test29.sh#!/bin/sh#1. An earlier entry already describes the function of the match function in awk, and returns 0 if the match returns a matching location value.#2. For a function in the shell, the return of 0 indicates success, and the

Yum in Linux has incomplete transaction prompt removal method

When you use Yum to install something, if you have a forced exit Yum or Yum exception end, the next time you use the Yum command, you will be prompted: There are unfinished transactions. You might consider running yum-complete-transaction A to

How to add swap for VPS in Linux

vps

I had this problem today when I was installing subversion for my friends. Internal compiler error:killed (program Cc1plus) Google later learned that due to insufficient memory, the compilation was interrupted. A friend's Aliyun host would have

Example of a umount forced uninstall device under Linux

Umount command Unpack the file system. Umount [-ahnrvv][-t ][file system] Umount can dismount a file system currently attached to a Linux directory. There was a problem with NFS access on the line, which caused the/data1 directory LS to be out of

Linux Common commands Summary of SSH

Directory Operations:RM-RF Mydir/* Delete Mydir directory * *mkdir dirname/* Create directory named DirName * *CD mydir/* Enter Mydir directory * *CD-*/* Back to the previous directory */Cd.. /* Back to the parent directory, with space in the middle

Linux directory Structure 2

Linux directory structure 2 1./etc/rc.local: The file that holds the boot-up content:File type: theWindows is distinguished by its extension, such as png,txtLinux file types are not related to extensionsto make it easy to differentiate and be

How to install WIN10 and Linux dual systems

How to install WIN10 and Linux dual system a lot of getting started small partners want to experience a Linux pleasure, but the data on the windows on the deletion must not, helpless had to give up. Small series through some online tutorials, a

Iptables rules for preventing PHPDDOS in LINUX

Iptables rules of PHPDDOS The code is as follows:Copy code Iptables-I OUTPUT-p udp -- dport 53-d 202.103.44.150-j ACCEPT Iptables-I OUTPUT-p udp -- dport 53-d 202.103.24.68-j ACCEPT Iptables-a output-p tcp-m tcp -- sport 1024: 65535-d 202.103.44.

How to use the Linux eject command

If the device has been mounted, the eject disconnects the device and then exits.SyntaxEject [-dfhnqrstv] [-a ] [-c ] [device]Parameter description: The [device] device can be the driver name or the Mount point. -A or -- auto controls the

Linux uupick command details how to use Linux uupick command

When other hosts transmit files through UUCP, you can use the uupick command to retrieve these files.SyntaxUupick [-v] [-I ] [-s ] [-x ] [-- help]Parameters: -I or -- config specifies the configuration file. -S or -- system processes files

How to use Linux uuto commands

Uuto is a script file. It will actually execute uucp to send the file to the remote UUCP host, and notify users on the remote host by email after the work is completed.SyntaxUuto [file] [purpose]Parameters:For more information about the parameters,

Linux lpd command details how to use Linux lpd command

Each printer defined in/etc/printcap must have a corresponding directory in/var/lpd. Files starting with cf in the directory indicate a print table waiting to be sent to the appropriate device. This file is usually generated by lpr.Lpr and lpd

How to use the Linux mmove command

How to use Linux cmp commands

When the two files to be compared are identical, the command does not display any information. If the difference is found, the first character and number of columns in the difference are displayed by default. If no file name is specified or the

Total Pages: 5467 1 .... 3264 3265 3266 3267 3268 .... 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.