Linux deletes files based on time filter

#!/bin/bash forFileNameinch* Do Echo $filenamey=$ (date-r$filename+%y)Echo $y if["$y"==" the"] Then Echo ' rm-r $filename 'Rm- F $filename fi Done According to time filter delete file,

How do I copy a directory under Linux?

Cp-af newadmin/movie/. uploadfile/mallvideo/How do I copy a directory under Linux? It seems to be a simple question.For example, to copy/home/usera to/mnt/temp, the first thing to think about isCp-r/home/usera/*/mnt/tempHowever, there is a problem,

Problems needing attention in constructor string under Linux

/* In the following program, two constructors are set in the named class, and strings are received as string and char*, and when the setting shown in n is constructed as a string, the constructor of the string argument is invoked, and the string is

Linux Nic Renaming

Sometimes the name of the network card that is added in the installation server is not in order, the following is the name of the network card defined by the manual method;/ETC/UDEV/RULES.D / 70-persistent-net.rules     Here you can modify MAC the

Linux Kernel Learning Summary

Linux Kernel Learning Summary20125101 Song YumengThrough this period of time on the Linux learning, I have a relatively simple knowledge of Linux, and a lot of gains. From the outset, the assembly knowledge and data structure knowledge can not be

"Linux system Optimization" User Management Basics

1) View Current user[[Email protected] ~] #whoamiroot 2) Add user[[Email protected] ~] #useradd xpleafOr[[Email protected] ~] #adduser xpleaf 3) Create a password for the user[Email protected] ~]# passwd xpleafchangingpassword for user

Useful Linux Commands

How to view multi-core load on Linux?# top #  Press the number  1 .  to display multiple cputop - 18:05:48 up 1 day after the   2:05,  1 user,  load average: 0.00, 0.00, 0.00tasks:  174 total,   1 running, 173 sleeping,   0 stopped ,    0 zombiecpu0 

How Linux modifies the root user's password

The root account of the Linux system is a very important account, but also the most privileged account, but sometimes forget the root password to do? Can not re-install the system, this is the next worst, in fact, Linux system, if you forget the

Brief analysis of Linux shutdown restart command

Linux Shutdown restart commandToday we introduce the shutdown Restart commands commonly used in Linux systems-shutdown, Halt, reboot, Poweroff, and init.Shutdown commandShut down the system in a secure manner or restart the system. It prompts a

View Linux system versions

# getostype.sh#!/bin/bash#author:         #CreateDate:     2014-08-26#environment:   linux + bashfunction successful () {     [ $? -eq 0 ] && return 0    return 1 }function getosname () {    local l_osname= "Unknown"     local

Common Linux Network Management commands (bottom)

IP: Change or display information such as routing, IP, protocol     ip link: interface Management              show [device]: Display NIC interface information              set [DEVICE]                      [up | down]: Turn network interface on or

Linux disk and File System Management (note)

First, the simple operation of the file system1, DF: Disk and directory capacity DF [-ahikhtm] directory or file name-H: Display in GB, MB, KB and other formats that are easier for people to read-I: No hard disk capacity, and the number of Inode is

Fix Linux (ubuntu), Windows dual system reload after restore boot menu

1 re-installed after the Ubuntu Restore boot menu is very simple. To update grub directly, you can:sudo update-grub2 It's a bit cumbersome to reload windows. Use the U disk to write the Ubuntu image restart to start the computer from the U disk, and

Linux ps command, linuxps

Linux ps command, linuxps The ps command in Linux is short for Process Status. The ps command is used to list the processes currently running in the system. The ps command lists the snapshots of the current processes, that is, those processes that

Linux entry-user operation interface and linux entry-level user operation

Linux entry-user operation interface and linux entry-level user operation The Linux system provides two basic interfaces for users to perform operations: Command Line and desktop. I. Command Line The command line in Linux usually refers to Shell.

Use the linuxps command

Use the linuxps command The ps command in Linux is short for Process Status. The ps command is used to list the processes currently running in the system. The ps command lists the snapshots of the current processes, that is, those processes that run

(1) Linux environment deployment (Centos + Nginx + Tomcat + Mysql)-FTP Installation

(1) Linux environment deployment (Centos + Nginx + Tomcat + Mysql)-FTP Installation In my local testing practice, the following is a complete operating document for Centos + Nginx + Tomcat + Mysql on Linux. The record is as follows, we hope to give

First kvm experience 6: Clone, first kvm experience 6

First kvm experience 6: Clone, first kvm experience 6 Target: Clone vm1 to vm1-clone 1. virsh suspend vm1 2. virt-clone -- connect qemu: // system -- original vm1 -- name vm1-clone -- file/vm/vm1-clone Or virt-clone -- connect qemu: // system-o

Ubuntu system update-rc.d commands, ubuntuupdate-rc.d

Ubuntu system update-rc.d commands, ubuntuupdate-rc.d Update-rc.d commands in Ubuntu or Debian systems are scripts used to update system startup items. The links of these scripts are located in the/etc/rcN. d/directory, and the corresponding

Use yum to install mysql in centos7

Use yum to install mysql in centos7 By default, mysql does not exist in the yum source of CentOS7. To solve this problem, we need to download the mysql repo source first. 1. Download the mysql repo

Total Pages: 5467 1 .... 5162 5163 5164 5165 5166 .... 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.