My Linux Learning path-creation of files in delete

Source: Internet
Author: User

I learned about environment variables yesterday! But I don't know what the results are. The LS command is written into the/tmp directory! The result is the help of Zhengzhou Li Xin! Find by command Find/-name ls (space before-name) This command is only found! Then through the command: Mv/tmp/ls/bin this command to put LS back into the/bin!

Today's learning command for mkdir command and RM command!

mkdir can create a directory under a path, or you can create a directory under a relative path (an absolute path is the path that starts with a/, relative path is the current path);

MkDir can create multi-level catalogs such as MKDIR/1/2/3 but this command cannot be executed! Because mkdir/1/2/these two directories do not exist! So we can do it by mkdir-p/1/2/3 this command! Mkdir-p translated into Chinese is not a full parent directory command!

With tree we can view the directory structure! If the tree operation is not installed on the system, we can use the Yum-install y tree command to install the tree first!

The last thing to learn is to delete the command! RM is delete command via which RM we can know the RM command is actually an abbreviated form of the RM command in fact Rm-i! The Rm-i command is a prompt to confirm that you want to delete this file before deleting it!

Similar to the rm-f is to delete the time do not prompt us! It was removed directly.

Directly execute/BIN/RM We can directly delete Rm-v can see the process of deletion!

These commands can also be strung together for example: rm-fv!

This is what I learned today in Amin Linux! That's it! Thank you!

My Linux Learning path-creation of files in delete

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.