Linux 03 Basic Commands

Source: Internet
Author: User

Upload and download

The support package is not installed in the Dial-up Networking supports option and can be

1, yum install lrzsz-y2, yum Groupinstall "dial-up Networking support"-y
Download file:    sz-y install.log (-y means overwrite) uploaded    to server rz-y found content can only upload download file Upload file can be any file

On Remote Tools: The root user's command is marked with a # number, while the average user is $

Some basic commands

Ls-ld                                =    Display directory in long directory touch file.txt +    new file, change file access time if file exists pwd                                   =    View current path CP    a.txt/usr/                     =    Copy file a.txt to/usr/path cp-a/etc/aaa/    /tmp/              =  Copy directory to tmp folder Cp-r                                 = =    recursive copy of the directory cp-p ~                                 =  Copy the past with the document properties, rather than using the default properties mv    /data/root/                    =  Move the data directory under root to the directory under root

Cat command

Cat    Aa.txt                            =    View File contents

Advanced

The input overwrites the file, note that this is a line to enter, and then type CTRL + D, especially on Mac not command + d!!!!

cat > Dandy.txt 123^c [email protected] ~]$ Cat Dandy.txt 123

Append to File;>> represents append;<< representative input

cat >> dandy.txt << 11>   elina> dandy> taylor>

Another simple way to add: the same is CTRL + D

Cat >> Dandy.txt time1time2
# Return to blank line Ctrl + D

echo command

echo "Hello"   Hello  # Screen Printing

Advanced:

Append redirect, single line text overwrite file, all contents lost

echo "Write your words" > Dandy.txt Cat  Write  your words  

Linux 03 Basic Commands

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.