Linux System 11 Select 5 Source Build related command line

Source: Internet
Author: User
Tags parent directory
Linux directory structure
(1) Return to parent directory: CD.

 进入你的home目录:cd ~ 使用pwd获取当前路径:pwd

(2) Linux file 11 selected 5 source code to build basic operation: Enterprise E: 217 1793 408
① Create a new blank file Eg:touch test if you switch to your own directory

 ②新建目录:mkdir mydir ③使用cp命令复制一个文件到指定目录:cp test father/son/grandson,复制目录也需要加上-r或者-R ④删除文件eg:rm test,若想删除一些只有读的权限文件,rm会报错,可以使用-f参数强制删除eg:rm -f test ⑤删除目录:也需要加上-r或者-R,eg:rm -r family ⑥移动文件:mv,eg:mv 原目录 目的目录 ⑦重命名文件:mv 旧的文件名 新的文件名

File packaging and compression
(1) Tar

① Pack: TAR-ZCVF Something.tar Something

② Unpacking: TAR-ZXVF Something.tar

③ Specify path:-C parameter

(2) Zip

① Package: Zip something.zip Something (directory please add-r parameter)

② Unpacking: Unzip Something.zip

③ Specify path:-d parameter

Linux System 11 Select 5 Source Build related command line

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.