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