Usage of find and exec in CentOS

Find is a commonly used Linux command, but we generally look for it not only, but also further operations. at this time, the role of exec becomes apparent. Example: find. /-name & quot ;*. txt & quot;-execls-l & quot ;{}& quot ;\; search for the txt

The uname command in CentOS obtains the instance of the system details.

In console mode, you cannot use "right-click & gt; about" to obtain information about the operating system. In Linux, you can use the uname command to help you complete these tasks. Uname is the abbreviation of unixname. In the console, you only

Use the top command in CentOS to view CPU loads

CentOS is the product of source code re-compilation of RHEL (RedHatEnterpriseLinux), and many known bugs have been fixed on the basis of RHEL. compared with other Linux releases, CentOS has reliable stability. During system maintenance, you may need

10 most dangerous Linux Commands

Linux command line? Are you sure you want to know? ?? How can I bits in the baking environment? What is the lesser? When about when? Which of the following keywords can be used to bake U images? Are you angry? Z Leng? Inux or linux command line

Several useful device files in the CentOS system

As we all know, linux devices are very special. The system always reads the device in the same way, and the difference between devices is done by the device driver. Because of this, it is very easy to manage devices. Linux also provides virtual

CentOS6.3 dual Nic binding tutorial

In fact, I have also written a blog post about bind dual NICs in Linux. Today, I conducted another binding experiment and found that it is much simpler than the original binding. It may be caused by different system or system versions. A series of

Restrict ssh login users in CentOS

A long time ago, an ftp server was installed with vsftpd, but the user data source was not modified. by default, users in the system were used. The ssh port is enabled without any restrictions. after a user logs on to the server, most of the content

How to restrict ip addresses for ssh logon in CentOS

Linux ssh logon restriction ip method vi/etc/hosts. allowsshd: 192.168.0.100: allow // allow IP192.168.0.100 to log on to sshd: 192.168.0.: allow // allow IP192.168.0 How to restrict ip addresses for ssh logon in linux Vi/etc/hosts. allowSshd: 192.16

How to create an image file to load ramdisk using mkinitrd in CentOS

Mkinitrd (makeinitialramdiskimages) function description: creates an image file to load ramdisk. Syntax: mkinitrd [-fv] [-- omit-scsi-modules] [-- version] [-- preload = & lt; Module Name & gt;] [-- with = & lt; module Name & gt;] [image file]

How to use rsync to delete massive files in CentOS

Yesterday, we encountered a situation where we wanted to delete a large number of files in Linux. we needed to delete several 100,000 files. This is the log written by the previous program, which is growing fast and useless. At this time, the common

Detailed explanation of tail commands in CentOS

Tail name: tail-outputthelastpartoffiles function description of the last part of the output file: The tail command writes the file to the standard output from a specified point, you can use the-f option to conveniently view the changing log files,

Detailed explanation of alias commands in CentOS

Alias command function description: some of the commands that we often use but are very long at system management. Then we can create an alias for these long strings of commands. This long string of commands can be directly replaced by an alias. The

CentOS system backup script

#! /Bin/sh # set the variable bak_path =/root/bak_linuxdate = $ (date + % Y % m % d) log_file = $ bak_path/$ date # log. log # write the execution result to the log: exec1 & gt; $ log_file2 & gt; & amp; 1 # package the directory to be backed up in

Centos6.2 mount a new hard disk, partition, format, and Mount

1. first, check the number of hard disks on the machine: $ fdisk-lDisk/dev/sdd: 1000.2 GB, 1000204886016bytes255heads, 63 sectors/track, 121601 cylindersUnits = cylindersof16065 * 512 = 8225280 bytesSectorsize (logical/physical): 5 1. first, check

CentOS shutdown command shutdownreboothaltpoweroff

Disable the ctrl + alt + del key combination & #8226; by default, ctrl + alt + del is a delay of 3 seconds to restart the system. the delay between sending an alarm message to the process and killing the process signal is 3 seconds. & #8226;

Inittab analysis in CentOS

After Linux completes Kernel boot, the init initialization process will call the/etc/inittab configuration file (ps-aux | less, the init process number is always 1, is the starting point of all system processes. the init process also has a parent

Free command in CentOS

Explain the output of the free command on Linux. The following is the free running result. There are 4 rows in total. For convenience, I added the column number. In this way, we can regard the free output as a two-dimensional array FO (FreeOutput ).

Find and delete large files on the hard disk in CentOS

Overview when linux has been running for a long time and some partitions do not have available space, you need to delete some files. of course, you are preferred to delete large files. Check the usage of df-lh to find the large file that is larger

Mount the windows shared folder with the mount command in CentOS

This method is useful in learning and work. The method is as follows: 1. first share the windows folder 2. use the following command in linux to mount the shared folder. Mount-tcifs // 192.168.1.102/studyshare/mnt-ousername = chocoleecifs indicates

Set ssh password-less key login in CentOS

If we manage enough servers, it is not difficult to enter the password every time. here we have a proxy method ssh-agent, the ssh-agent is actually a key manager. It can also be understood as a butler. we hand over the key to the butler to keep it.

Total Pages: 2732 1 .... 2016 2017 2018 2019 2020 .... 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.