Virtual machine inside Linux generate soft link file share

Source: Internet
Author: User
Tags parent directory disk usage

Installing Virtual machines VMware Tools

VMware Tools is an enhanced tool that comes with VMware virtual machines, equivalent to the enhancements in VirtualBox (Sun VirtualBox Guest additions), which VMware offers to enhance virtual graphics and hard disk performance, And a driver that synchronizes the virtual machine with the host clock.

Sync the directories from SVN to wamp inside the virtual machine.

Look at the mounting situation.

Linux DF command

DF command parameter function in Linux: Check the disk space consumption of the file system. You can use this command to get information about how much space the hard disk is taking up, and how much space is left.

Syntax: DF [Options]

Description: The DF command in Linux displays the use of all file systems for I nodes and disk blocks.

The various options for this command have the following meanings:

-a displays disk usage for all file systems, including 0 blocks of file systems, such as the/proc file system.

-k is displayed in bytes.

-I displays the I node information, not the disk block.

-T displays disk space usage for each of the specified types of file systems.

-x lists disk space usage that is not a specified type of file system (as opposed to the T option).

-T displays the file system type.

function: Check the disk space consumption of the file system. You can use this command to get information about how much space the hard disk is taking up, and how much space is left.

Folder sharing

Example: Ln-s/mnt/hgfs/www/home/wwwroot/www

Soft links under Linux are similar to shortcuts under Windows

Ln-s a B in a is the source file, B is the link file name, its role is when entering the B directory, is actually a link into the A directory

As the above example, when we execute the command cd/home/wwwroot/www/, we actually enter the/MNT/HGFS/WWW

It should be noted that when the command is executed, it should be a directory has been established, directory B is not established. The first thing I did was set up the B catalogue, and the result was wrong.

To delete a soft link:

RM-RF b Note not rm-rf

Ln A B is to establish a hard link

The following methods are used to establish links:

[Email protected] ~]# LN--help
USAGE:LN [OPTION] ... [-T] TARGET link_name (1st form)
OR:LN [OPTION] ... TARGET (2nd form)
OR:LN [OPTION] ... TARGET ... DIRECTORY (3rd form)
OR:LN [OPTION] ...-t DIRECTORY TARGET ... (4th form)
In the 1st form, create a link to TARGET with the name Link_name.
In the 2nd form, create a link to TARGET in the current directory.
In the 3rd and 4th forms, create links to each TARGET in DIRECTORY.
Create hard links By default, symbolic links with--symbolic.
When creating hard links, each TARGET must exist. Symbolic Links
can hold arbitrary text; If later resolved, a relative link is
interpreted in relation to its parent directory.

Mandatory arguments to long options is Mandatory for short options too.
--backup[=control] Make a backup of each existing destination file
-B like--backup but does don't accept an argument
-D,-F,--directory allow the superuser to attempt-hard link
Directories (Note:will probably fail due to
System restrictions, even for the superuser)
-F,--force remove existing destination files
-I,--interactive prompt whether to remove destinations
-L,--logical make hard links to symbolic link references
-N,--no-dereference treat destination, a symlink to a
Directory as if it were a normal file
-P,--physical make hard links directly to symbolic links
-S,--symbolic make symbolic links instead of hard links
-S,--suffix=suffix override the usual backup suffix
-T,--target-directory=directory specify the directory in which to create
The links
-T,--no-target-directory treat link_name as a normal file
-V,--verbose print name of each linked file
--help Display this Help and exit
--version output version information and exit

Virtual machine inside Linux generate soft link file share

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.