A shell command for safely deleting files

A shell command for safely deleting files the functions in the following script can be safely used to delete deletexxxx. this command will move the xxx file (or directory (do not add a directory after ~ /Backup, and add a time label at the same time.

Use of git version control tools

Before using the git version control tool, the project has always been using svn for code version control. I am quite familiar with the establishment of the svn repository and the use of svn, but git is a more powerful version control tool, and many

Shared port of parent and child processes in linux

In linux, the parent-child process sharing port nginx uses the parent-child process sharing port, so nginx is fast. this is also a reason # include & lt; unistd. h & gt; # include & lt; stdlib. h & gt; # include & lt; sys/types. h & gt; # include &

How to change IP addresses in linux

In linux, how to change the IP address to permanent effect in the following way vi/etc/sysconfig/network-scripts/ifcfg-eth0 (eth0, the first Nic, if the second is eth1) modify ipDEVICEeth0 as follows (if the second block is just eth1)

Use the taskset command to restrict the CPU of a process

When you use the taskset command to restrict the CPU of a process, you often feel that the system resources are insufficient. one server can run no more than three important services, but every day we have to perform backup compression and other

Linux command: User ??? Management-last

Linux command: User ??? Management -- last name?: Last use? Core? Why is it true? Hell & gt; last [options]? Ming :? Display system ??? C? @ Yes? How can I seek help from an overseas Chinese hacker? ??? R omitting the hostname? Why ?.. Linux command:

Ctrl + r in the linux command line

Linux command line ctrl + rlinux command line history is a well-known but not commonly used command, because to check the number of a command, you need to enter history | grepxxx, and because !? Xxx ,! Xxx is neither running nor running, and ctrl +

How to use quota in linux

In the use of quota in linux tutorial 1, you must first confirm that the directory to be restricted is a separate file system df-h/home test 2 if it is a separate file system. You need to add the quota support for this directory. a: temporary

Linuxawk array operation details

The awk array operation details the use of awk for text processing, which is ultimately its array processing. So what are the features of the awk array? What about common operations. Let's take a look at some of the following introductions. let's

Multiple methods of awk array sorting

Awk array sorting is an associated array because of the awk array. For & hellip; in loop output, unordered arrays are printed by default. [Chengmo @ localhost ~] $ Awk & amp; #39; BEGIN {info & quot; thisisatest & quot; split (info, tA, & quot ;);

A method for automatic time synchronization of CentOS clusters

One way to automatically synchronize time for CentOS clusters is to manually synchronize time logs... centOS cluster automatic synchronization time a method before there is a log is Manual synchronization time http://www.2cto.com/ OS

Postfix: Build a pure mail forwarding server

Postfix to build a pure mail forwarding server 1) install dnsaptitudeinstallbind9dnsutils2) configure dnsa) named. conf. localzone & quot; test.com & quot; {typemaster; file & quot;/etc/bind/test.com & quot ;;... postfix to build a pure mail

Boot. ini modification causes the system to fail to start properly.

Boot. ini modification causes the system to fail to start normally. a few days ago, due to the dual-system installation, the boot was modified. ini, the content is directly copied and pasted online, and later found that the system could not be

Linux: vi replacement command

In linux: vi replacement command vi/vim, you can use the: s command to replace the string. In the past, we used only one format to replace the full text. today we found that there are many ways to write this command (vi is really powerful, and there

Know the mv command in LINUX

In LINUX, the mv command knows that when I was writing a script, I accidentally found that the mv command was not run as expected. after reading the information, I found that the mv command was originally used to perform file or dir rename: www.2cto.

View the number of tcp connections and status in Linux

In Linux, check the number of tcp connections and the status netstat-n | awk & amp; #39;/^ tcp/{++ S [$ NF]} END {for (ainS) printa, S [a]} & amp; #39; TIME_WAIT8947FIN_WAIT115FIN_WAIT21ESTABLISHED55SYN_RECV21CLOSING2LAST _. in Linux, check the

Ubuntufishshell installation and preparation

Ubuntufishshell is a very good shell in ubuntu, because it can check whether the command you entered is correct, install as follows: www.2cto. comsudoapt-getinstallfish: input fish directly from bash to fish to prepare fish ,... ubuntu fish shell

Troubleshooting during linux startup

Troubleshooting during linux startup a fault occurs when the MBR is damaged www.2cto.com. if a CD is available, www.2cto will be directly installed again. comMBR repair (ensure that the system has been installed on the hard disk) 1. first, we need

Linux files cannot be modified or edited by the root user.

Linux files cannot be modified or edited by the root user. Recently, a company's server was maliciously added with some timer tasks to the crond configuration file & quot; /var/spool/cron/root & quot;, I thought that you only need to simply use the

Use Shell in LINUX to automatically monitor tomcat and restart

In LINUX, Shell is used to automatically monitor tomcat and restart the tomcat instance. 01 #! /Bin/sh0203 # func: automatically monitors tomcat scripts and restarts www.2cto. com04 # author: danny05 # date: 02/20/201306 # DEFINE0708 # get the

Total Pages: 2732 1 .... 2079 2080 2081 2082 2083 .... 2732 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.