Common vim operation skills and solutions for problems in linux

Common vim operation skills and solutions to problems in linux 1. common command % jump to pair brackets [[jump to the beginning of the code block (but require '{' in the code block to take a separate line) gD jumps to the definition of a local

Git Unstaged changes after reset

Git Unstaged changes after reset I believe everyone has done this operation, that is, after local modification, we don't want to submit it. If we want to restore the first 1 git reset HEAD, we can go back to the beginning. However, this operation

Log statistical analysis-Shell/Goaccess

Log statistical analysis-Shell/Goaccess performs simple statistical analysis on Nginx or other logs. Shell performs statistical analysis on a column to analyze Statu Code, URL, etc. # cat access. log | awk '{print $9}' | sort | uniq-c | sort-r-n>

Linux network settings 3-notes for using the ssh Tool

Linux network settings 3-ssh tool usage Note 1. ssh tool usage principle ssh (SecureShellClient) is installed on windows, while on linux There is a service called sshd, this service occupies port 22, which is started by default. However, port 22 is

Dual GPT hard drive grub boot Centos + windows8

Dual GPT hard drive grub boot Centos + windows8 two hard disks, one is installed with Centos and one is installed with Windows8, both are installed with uefi. It is very troublesome to select the hard disk during startup. Modify the boot information

Static Network Configuration in archlinux

Archlinux static network configuration today the lab gateway does not know what's wrong, dhcpcd can only be allocated to 192.168.100. * The ip address, but the wired gateway in our lab is 192.168.200.1, so it's so painful that we can't get on the

Common Linux commands (disk management)

Linux Common commands (disk management) ls to view the directory cd to enter the directory .. indicates that the upper-level cd is directly in the working directory. indicates that the current directory pwd displays the current directory

Linux ls statistics file count

Linux ls statistics on the number of files in a folder ls-l | grep "^-" | wc-l statistics on the number of files in a folder ls-l | grep "^ d "| wc-l: count the number of files in the folder, including ls-lR | grep "^-" | wc-l in subfolders, for

Script for automatically connecting multiple machines and searching logs

The script for automatically connecting multiple machines and searching logs is deployed on 10 machines, and the corresponding log files are scattered on these 10 machines. If you want to search for these 10 log files, such as error messages, it is

Basic Shell script operation exercises

Shell script basic operation exercises here are mainly familiar with shell basic operations, including variable value reference modification, function usage, signal acquisition and some judgment methods. For details, see the code :#! /Bin/sh str =

How to create an empty file (0-byte size) in Linux shell

Linux shell to create an empty file (0 byte size) method echo> fileName to create a file is 1 byte. After learning, you can find that the file that creates an empty file (0 byte size) has the following methods: 1. If the file does not exist, touch

Centos6 install sheepdog VM distributed storage

Centos6 sheepdog Virtual Machine distributed storage preface sheepdog is a virtual machine distributed file system specially designed for qemu. It adopts a completely symmetric structure and has no central node for metadata service, this eliminates

Configure local tomcat application port 80 forwarding in linux

Configure local tomcat application port 80 in linux: deploy tomcat locally to port 8080, and expect local access to port 80 to access local tomcat. Conclusion: The iptables tool in linux is used to implement port forwarding. Specifically, the root

Self-taught Linux-3 basic system operations

Learn Linux by yourself-3 basic system operations 1. switch host operation # shutdown command-t sec:-t followed by the number of seconds, that is, "shut down after a few seconds"-k: not to actually shut down, just send a warning message-r: after the

Change the debugging terminal in CodeBlocks under Ubuntu

CodeBlocks under Ubuntu changes the debugging terminal xterm that comes with CodeBlocks under Ubuntu, which cannot be copied or pasted.You can solve the problem by using gnome-terminal in ubuntu as the debugging terminal. The specific operation is

Linux screensaver Cancellation

In linux, If you cancel Screen Saver ubuntu, the screen saver will be enabled in 10 minutes by default. I use ubuntu server12.04, because there is no desktop, only commands can be used. As follows: setterm-blank 0 // disable the screen saver setterm-

Solve the problem of Chinese garbled characters decompressed by zip in ubuntu

Solve the problem of Chinese garbled characters for zip decompression In ubuntu. In ubuntu12.10, I found that Chinese characters are displayed normally. garbled characters only occur when I decompress the windows zip file. So I used another method

Iptables learning 01

Iptables learning 01 1. when the routing forwarding function is enabled, [plain] echo 1>/proc/sys/net/ipv4/ip_forward is temporarily enabled. The default ip_forward value is zero, and forwarding is not allowed. You can change it to 1. The

Correct the misunderstanding of ctime for some Linux beginners

Correct some misunderstandings of ctime for Linux beginners in order to distinguish ctime from mtime when they first come into contact with ctime. The mistake is that ctime only changes when the file or directory permissions change, A big mistake!

How to create a file system for a disk partition in Linux

In Linux, how to create a file system disk partition for a disk partition can only be used after the file system is created is called formatting. Common file systems in Linux are ext3 and ext4. Both file systems support file system logs. The

Total Pages: 5467 1 .... 3374 3375 3376 3377 3378 .... 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.