April 16, 2016 single-user mode, rescue mode, find command, soft-hard link, three-time

Source: Internet
Author: User

Single-User mode:

    • Free button output within three seconds of startup

    • Middle Row Key E

    • Edit the last line plus 1 or single or size s

    • B

    • Then execute the command runlevel

    • ? reboot

Rescue mode:

    1. Enter BIOS

    2. Tune the CD-ROM to the top.

    3. Enter the interface, mut/sysimage the original system is hanging on this, chroot/mut/sysimage/is in the original operating system

    4. Exit exits

    5. Tune the CD-ROM to the following

Find command:

The main contents of this chapter include:

Whereis

The limitation of locate is that every time you need to update the database (UpdateDB) to find the file, and you cannot search the current TMP directory

WhoAmI is to view the current host

Which find a file you created, add chmod a+x file name to find

Find bin/file name/-name file name

Name after name can be a variety of forms ' ca* ' or ' ca* ' just in the form of a different

find/tmp/-type f |xargs-i mv {} {}.bat

In this section-type F and Xargs and atime, you will learn the following

Soft connections and Hard links:

Soft Connect: Ln-s

Hard Links: Ln

Soft connect: Can be spanned, can save space, can do files and directories, similar to shortcuts

Expression: Ln-s/bin/12.txt/tmp/222.txt

Results achieved: 12.txt-222.txt

If the partition is full, and a directory file is constantly exchanging data, you can use a soft connection

Hard links: Only in the same partition, can only be used for files,

Two expressions that look at the size of a file:

Du-sh

Ls-ih1

To do the experiment: Delete a hard link or delete it together

April 16, 2016 single-user mode, rescue mode, find command, soft-hard link, three-time

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.