How to operate a folder with a blank folder name under Linux system

Source: Internet
Author: User

Http://www.2cto.com/os/201409/335119.html can easily create \ Move \ Remove folder names with spaces in the Windows operating system, while Linux requires some special processing to achieve the above functions. (1) Create folder mkdir my\ First This command creates the folder "My first", there is a space between my and first in the folder name, a "\" symbol is added to the command line and a combination of spaces mkdir my\ \ Tow This command creates a folder " My tow ", there are two spaces between my and tow in the folder name, you need to add two" \ "and a combination of spaces in the command line (2) Move folder MV my\ first/tmp This command moves the folder" My first "to the folder tmp under MV my\ \ tow/ TMP This command moves the folder "My tow" to the folder TMP (3) to delete the folder Rm-r my\ First This command removes the folder "my\ first" delete rm-r my\ \ Tow This command removes the folder "my\ \ Tow" (4) into the folder CD my \ First This command can go to the folder "my first" CD my\ \ Tow This command can go to the folder "My Tow" (5) Create a compressed file tar czf my\ first.tar.gz my\ First create a compressed file "my First.tar. GZ "tar czf my\ \ tow.tar.gz my\ \ Tow Create a compressed file" My tow.tar.gz "tar cjf my\ first.tar.bz2 my\ First create a compressed file" My first.tar.bz2 "tar C JF my\ \ tow.tar.bz2 my\ \ Tow Create compressed file "my\ \ Tow" (6) Unzip compressed file tar xzf my\ first.tar.gz Unzip compressed file "My first.tar.gz" tar xzf my\ \ tow.t AR.GZ Unzip the compressed file "My tow.tar.gz" tar xjf my\ first.tar.bz2 Unzip the compressed file "My first.tar.bz2" tar xjf my\ \ tow.tar.bz2 Unzip the compressed file "my TOW.TAR.BZ2 "Summary: This article implements the folder name has spaces in the file to create \ move \ delete \ enter \ compression \ Decompression operations, relative to the folder name is emptyfolder, you need to insert a "\" and a combination of spaces between the folder names when you enter the command, and a few spaces in the folder name add several combinations. 

  

How to operate a folder with a blank folder name under Linux system

Related Article

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.