Some basic commands about Linux systems

Source: Internet
Author: User

I've written several articles about how to use the command line interface to manage files on your system, and here are a few basic commands that are common to all distributions.

To copy a file or directory to a new location:

    1. CP Path_of_file_1 path_of_the_directory_where_you_want_to_copy/

Copy all files from a directory to a new location (note the slash and asterisk, which indicates all files in the directory):

    1. CP path_of_files/* path_of_the_directory_where_you_want_to_copy/

Move the file from one location to another (the trailing slash means the directory):

    1. Mvâpath_of_file_1 path_of_the_directory_where_you_want_to_move/

To move all files from one location to another:

    1. mvâpath_of_directory_where_files_are/* path_of_the_directory_where_you_want_to_move/

To delete a file:

    1. RM Path_of_file

To delete a directory:

    1. Rm-r path_of_directory

Clear all contents of the directory, leaving only the directory folder:

      1. Rm-r path_of_directory/* for details, please contact qq:2881064157

Some basic commands about Linux systems

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.