Linux File upload linux server

Source: Internet
Author: User
Tags scp command

Go to command line
Before the graphical desktop appears, the only way to interact with UNIX systems is with the command line INTERFACE,CLI provided by the shell. The CLI can only accept text input, and only text and basic graphics output can be displayed. As we all know, today's Linux environment has changed dramatically, and all Linux distributions are equipped with some kind of graphical desktop environment. However, if you enter a shell command, you still need to use text display to access the shell's CLI.

Linux distributions typically use the Ctrl+alt key combination with F1 or F7 to enter the graphical interface. Ubuntu uses F7, while Rhel uses F1. It's a good idea to test how the distribution you're using is going into the graphical interface.

You can enter text mode with the CTRL+ALT+F2 key combination as follows:

TTY stands for Telex typewriter (teletypewriter), an ancient noun referring to a machine for sending messages. Not all Linux distributions will display the TTY number of the Virtual Console on the login screen.
After logging in, you can use the following command to modify the terminal background color, such as setting the terminal background to white, the text is set to black, this can make the eyes easier:

setterm -inversescreen on

If you want to turn off the Inversescreen feature, you can use the following command:

setterm -inversescreen off

Common ways to upload files to Linux:

    • SCP command;
    • XFTP Program of Xshell Software;
    • USB stick mount;
    • The server comes with the LRZSZ program;

1, SCP use description:
1. Pass the file to the destination server:

scp get66.pcap [email protected]:/super

Note: to copy this machine get66.pcap to the Super directory of 147 this server, you need to provide 147 password.
2. Perform SCP on this machine and copy remote server files to this machine:

scp [email protected]:/super/dns.pcap /

Note: Perform SCP on this machine to copy the Dns.pcap file of the remote server to the root directory of the machine
3. Copy all files under the directory:

scp -r /super/ [email protected]:/

Note: Copy all files under the/super/directory to the 145 server root directory

2, Xshell software in the XFTP program:
Xshell This software is very good, highly recommended. Xshell inside has a xftp small plug-in, can support files in the host and the server, the small plug-in needs to be downloaded separately on the internet.
1. Click on the Xftp icon on the Xshell software (prerequisite xftp has been downloaded)

2. The documents can then be transmitted to each other;

3. USB Stick Mount
File on the USB stick, directly plug it into the server, and then mount, you can copy the files on the USB stick to the server:
1. Perform fdisk-l view:

fdisk -l

2. Mount to the custom directory:

mount /dev/sdc1 /upan/

Mount the USB stick to the newly created directory:

cd /upan/ls

You can see all the files in the USB stick.
3. Copy the file to the server home:

cp autorun.inf /home/

4. Unmount the USB drive:

cd /umount /dev/sdc1

Note: After the file is copied to the server, it is recommended to manually execute the command before unplugging the USB flash drive to prevent damage. now, unplug the USB drive.

4, the server comes with the LRZSZ program
Most Linux servers now have their own LRZSZ program, which facilitates file upload and download, if not directly installed.
1.rz (native file upload server)

rz        # 选择本机上的文件上传给服务器

2.SZ (Copy the files on the server to this machine)

sz test.tar

RZ combined with Xshell (no xftp plugin installed): Drag the native file directly to the Xshell window or upload the native file to the server.

Linux File upload linux server

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.