Linux command line-Quick start of command line 2

Source: Internet
Author: User
Tags clear screen

    1. Touch to create a new file

    2. Clear Clear Screen

    3. MV Renaming files

    4. RM Delete File

    5. Rm-rf-r or-R: recursive processing, all files under the specified directory are processed in conjunction with subdirectories;

-F: Forcibly deleting files or directories;

-I: Ask the user before deleting an existing file or directory;

36. | The pipe command directs the left command output to the right.

Panax Notoginseng. < send the file on the right as input to the program on the left

> Write the output of the left command to the file on the right

>> append the output of the left command to the file on the right

40. * Wildcard characters. *.txt-any file ending in txt

A. Find for example: Find. -name "*.txt"-print | Less looks for all files that end in TXT and prints them to the screen, viewing them in the no-command way. The computer will record all eligible content in the current folder and subfolders.

After the cat > Newfile.txt command executes, the characters you hit on the screen are placed in the new Newfile.txt file, ending with ctrl+d

grep Global Regular expression print: global regular Expressions. Use regular expressions to search for text and print the matching lines.

A. Man finds related usages by command name, such as man find, which shows the parameters of the Find command

45.apropos If you don't know the name of the command you need to complete a particular task, you can use a keyword to search for it through the Linux apropos utility

46.ENV Viewing Environment env | grep huguagnqinenv | Less

47.echo is used to print the value of a shell variable in the shell, or to output the specified string directly

48.export export environment variables, or set global environment variables to take effect

49.xargs find related commands by function

50.sudo allows a user to run a command with Superuser privileges

51.su access to Superuser privileges exit directly back to normal user

52.chmod modify file read and Write permissions

53.chown Modified file Owner

54.exit Exit command Line

55. Shutdown Command Poweroff

Halt

Shutdown-h now (root user)

56.reboot restart


Linux file permissions:

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M02/97/FE/wKiom1k2KL_SeDX3AAI6E9EgRuY262.png "title=" screen shot 2017-06-05 07.14.30.png "alt=" Wkiom1k2kl_sedx3aai6e9egruy262.png "/>

Linux command line-Quick start of command line 2

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.