Linux backup and compression commands, brief introduction, detailed BaiduTar backup files (tar is used to create, restore backup files of the utility program, can be added, to unlock files within the backup file)Tar "Options" "File"-A add tar file
Always encounter the problem of processing files, such as file suffix modification, was written before the shell, and later found that there is an easier wayRename1, under CentOS is written in C renameUsage:A.txt modified to a.ccRename txt cc *.txt
Requirement: Replace the contents of all. sh files in the directoryRealize:Ls/dataA.txt b.sh c.sh D.infoMethod 1-----------------------------------------------------------See the pre-replacement content firstFind-type f-name "*.sh" |xargs
After the Linux susu download installation is complete.The first step is to set the root user passwordsudo root input passwordThe second step of setting up an SSH connection is to turn on the sshd serviceSearch Permitrootlogin Remove Comment set to
Ethernet ConnectionSuch as.Practice:1. View NIC hardware information via LSPCI command2, view network card information through Ifconfig eth03. Enable the NIC via Ifup eth0Configure Network InformationPractice:Network-related configuration
First, the Authority directiveNormal users need to use sudo or root super Administrator to execute permission commands.Second, the Linux system init program (1) Run the INIT program (reference runoob.com)The init process is the starting point for
In the previous command, we knew we could use cat to view the contents of a text file, but sometimes we didn't need to look at everything, but we needed to see a line that contained some information, such as in infiltration we need to see if some of
Linux Server dual network card or multi-network card to execute the next routing script to refresh the routing table, otherwise it will cause the network card ping does not pass;Note: You also need to perform route.sh after restarting the
Reprint: http://www.th7.cn/system/lin/201311/46742.shtmlObjectiveYou often want to see information about the process, including whether the process has died out, and pgrep to get information about the process being dispatched. Pgrep finds a matching
Linux System for UbuntuFirst, launch Apache service#/etc/init.d/apache2 StartOr$ sudo/etc/init.d/apache2 Startor service apache2 restart//often use thisSecond, restart Apache service#/etc/init.d/apache2 RestartOr$ sudo/etc/init.d/apache2
LinuxSystem Troubleshooting1.ForgetRootPasswordwhen you reach the following boot interface, press E to enter the citation edit face. 650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M00/9E/15/wKiom1mK8eGBtYlsAAASU9ZkJ1Q638.png "title=" 1.png "
Pre-condition: Know the normal user name to toggle (set to test)1. Current status is root user, switch to test userEnter Su-test, enter, and then input the test user's password2. Current status is test user, switch to root userSuOrSu-User name root
Directory structure1.1 CatalogFeatures of the 1.1.1 catalogue1. Everything starts from the root2.linux The following device you have to open a portal (mount) to use1.1.2 Relative pathM relative path: In relation to the path under the current path
A detailed description of the TAR compression decompression command under LinuxTar-C: Create compressed archives-X: Unzip-T: View content-r: Append files to the end of a compressed archive file-U: Update files in original compressed packageThese
1. Common commands in LinuxDate: View datetimeCal: View calendar of the monthReprint Please specify source: Ninghechuan (Ning River)Personal Subscription Number: Open Source FpganinghechuanIf you want to receive a personal blog post in time, you can
Vi Undo command, viundo command
I. Overview
Vi Undo command: u and U. Here, u is the last command to undo, and U is to undo all operations of this row when the cursor is in the current row. (Derived from Learning the vi and Vim)
Ii. Example
Step 4:
Switch root,Chenwx @ chenwx-virtual-machine :~ $ SuPassword: su: Authentication failure // The switchover fails. chenwx @ chenwx-virtual-machine :~ $ Sudo passwd root // change the password [sudo] password for chenwx: // user password, that is, your
Set virtual memory in Linux-create and enable Swap zone and linuxswap
If your server always reports insufficient memory and the service is forced to kill due to insufficient memory, enabling the swap area is a good choice for virtual memory. If it
Linux shell basic programming 2, linuxshell BASIC Programming
While Loop
Syntax 1:
While [condition]
Do
Command Sequence
Done
Syntax 2:
While read-r line
Do
Command Sequence
Done
(Remember that while and left brackets must have spaces)
Example
1
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