Linux Command Line (1)

Source: Internet
Author: User

TIPS: I have mentioned more than one tips for Linux, but it is helpful for new users like me.

1. Alias of the command line:

Sudo gedit ~ /. Bashrc

Use the alias short command = "command to replace" in the opened file"

For example, alias L = "LS-L"

Alias install = "sudo apt-Get install"

And so on.

 

2. Linux File Operation commands

Create a folder: mkdir folder path/file name (create a folder in the current directory if no path is specified)

Delete file: RM file name/directory name (the-r option must be used to delete the Directory)

Move file and modify file name: target file name of the MV source file name (if the path is the same, you can modify the name of the master file)

Copy file: the target file of the CP source file (copy and modify the file name)

Show file content: CAT and more

 

These are some simple file operation commands, and the list is also simple usage. The specific options of each command are familiar during use. Other commands about file attributes will be summarized later.

 

 

In fact, these commands are not back-to-back. If you use more commands, you will naturally know!

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.